Skip to content

Commit 0f7d4ac

Browse files
authored
Merge pull request #563 from portoaj/main
Fixed search prompt
2 parents d617750 + 052f7d5 commit 0f7d4ac

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/source/scrapers/llm.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,12 @@ We can also pass a model instance for the chat model and the embedding model. Fo
132132
azure_deployment="AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME",
133133
openai_api_version="AZURE_OPENAI_API_VERSION",
134134
)
135-
135+
# Supposing model_tokens are 100K
136+
model_tokens_count = 100000
136137
graph_config = {
137138
"llm": {
138-
"model_instance": llm_model_instance
139+
"model_instance": llm_model_instance,
140+
"model_tokens": model_tokens_count,
139141
},
140142
"embeddings": {
141143
"model_instance": embedder_model_instance
@@ -191,4 +193,4 @@ We can also pass a model instance for the chat model and the embedding model. Fo
191193
"embeddings": {
192194
"model_instance": embedder_model_instance
193195
}
194-
}
196+
}

scrapegraphai/prompts/search_internet_node_prompts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@
1111
For example, if the user prompt is "What is the capital of France?",
1212
you should return "capital of France". \n
1313
If you return something else, you will get a really bad grade. \n
14+
What you return should be sufficient to get the answer from the internet. \n
15+
Don't just return a small part of the prompt, unless that is sufficient. \n
1416
USER PROMPT: {user_prompt}"""

0 commit comments

Comments
 (0)