-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Question]: How are citations generated in the response of CitationQueryEngine? #13536
Comments
Hey there @mw19930312! Great to see you diving into the intricacies of the CitationQueryEngine again. 😄 I remember our last brainstorming session here; always a pleasure to assist a fellow knowledge seeker. I'm on it - gonna unravel the citation generation mystery for you in just a jiffy! |
The nodes are labeled as |
Would you mind referring me where the LLM is prompted? I just wonder how to pass the citation URLs if there are any. Also, if I understand it correctly, the nodes are formatted as the following through a metadata conversion template, right? [source 1] |
In the
This approach ensures that the final response from the LLM is not only informative but also accurately cites the sources it used, providing a clear and traceable path back to the original information.
|
prompt: llama_index/llama-index-core/llama_index/core/query_engine/citation_query_engine.py Line 32 in 287c3df
code entry point: llama_index/llama-index-core/llama_index/core/query_engine/citation_query_engine.py Line 266 in 287c3df
|
Question Validation
Question
I understand that in a CitationQueryEngine, we retrieve a couple of reference nodes from a vector index. Then, these nodes are passed into a synthesizer to generate a final response.
The text was updated successfully, but these errors were encountered: