Merge pull request #563 from portoaj/main

Fixed search prompt
This commit is contained in:
Federico Aguzzi 2024-08-20 11:18:01 +02:00 committed by GitHub
commit 0f7d4ac32f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -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
}
}
}

View File

@ -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}"""