mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-01 21:00:48 +08:00
commit
0f7d4ac32f
@ -132,10 +132,12 @@ We can also pass a model instance for the chat model and the embedding model. Fo
|
||||
azure_deployment="AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME",
|
||||
openai_api_version="AZURE_OPENAI_API_VERSION",
|
||||
)
|
||||
|
||||
# Supposing model_tokens are 100K
|
||||
model_tokens_count = 100000
|
||||
graph_config = {
|
||||
"llm": {
|
||||
"model_instance": llm_model_instance
|
||||
"model_instance": llm_model_instance,
|
||||
"model_tokens": model_tokens_count,
|
||||
},
|
||||
"embeddings": {
|
||||
"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
|
||||
"embeddings": {
|
||||
"model_instance": embedder_model_instance
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,4 +11,6 @@ You should return only the query string without any additional sentences. \n
|
||||
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
|
||||
Don't just return a small part of the prompt, unless that is sufficient. \n
|
||||
USER PROMPT: {user_prompt}"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user