Skip to content

Python scraper based on AI

Fixed search prompt

Andrew Masekcb5ca90d73f4
diff --git a/scrapegraphai/nodes/search_internet_node.py b/scrapegraphai/nodes/search_internet_node.py
index 61b11995..80c68139 100644
--- a/scrapegraphai/nodes/search_internet_node.py
+++ b/scrapegraphai/nodes/search_internet_node.py
@@ -82,6 +82,8 @@ class SearchInternetNode(BaseNode):
For example, if the user prompt is "What is the capital of France?",
you should return "capital of France". \n
If you return something else, you will get a really bad grade. \n
+ What you return should be sufficient to get the answer from the internet. \n
+ I.E. don't just return a small part of the prompt. \n
USER PROMPT: {user_prompt}"""
search_prompt = PromptTemplate(