-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: prompt_template in Citation query #17517
Comments
Hey @Aradina25! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together! I found a similar discussion that might be relevant to your issue: Does CitationQueryEngine need a prompt template when running a .query?. However, it is currently unsolved [1]. To address your issue, it seems like the discrepancy in results might be due to how the When using a custom If the custom template is not yielding the expected results, you might want to verify that the template's structure aligns with the requirements of the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
What is the "prompt" variable holding? That's likely having a large influence on the performance? This is the default llama_index/llama-index-core/llama_index/core/query_engine/citation_query_engine.py Line 28 in 3f7e66e
If you want a system prompt, use a ChatPromptTemplate
|
But I am still confused how to use this with citation query. |
@Aradina25 yea exactly |
Bug Description
I wanted to add system prompt to my code in llama index along with Citation query. None of the dcoumentation explains how to do it. (I am not talking about citation prompt but system prompt)
So i tried the following
And this is giving completely wrong answers even for a simple question like
what is the title of the document
But the below code works instead
Version
0.10.52
Steps to Reproduce
Relevant Logs/Tracbacks
The text was updated successfully, but these errors were encountered: