Integrating in-line citations with sqlautovectorqueryengine
Integrating in-line citations with sqlautovectorqueryengine
At a glance
The community member is using SQLAutoVectorQueryEngine and is curious if there is a supported method to return in-line citations with this implementation. They note that CitationQueryEngine seems to be standalone and separate from SQLAutoVectorQueryEngine, and they are unsure if it can be integrated. The community member also asks for a recommended approach to provide in-line citations with functionality similar to SQLAutoVectorQueryEngine, such as breaking it into separate workflows.
In the comments, another community member suggests breaking this into separate workflows and notes that the citation query engine code is simple, just adding numbers to source nodes and prompting the language model to cite its sources.
I'm using SQLAutoVectorQueryEngine and am curious to know if there is a supported method to return in-line citations with this implementation. CitationQueryEngine seems to be standalone and separate from SQLAutoVectorQueryEngine and unable to be integrated with this module. But I could be wrong. Also, if in-line citation support does not exist for this module, what would be a recommended approach to provide in-line citations with functionality similar to SQLAutoVectorQueryEngine? Break this into separate workflows? Any assistance would be appreciated. Thanks!
yea I would break this into separate workflows. If you look at the citation query engine code, its very simple, just adding numbers to source nodes and prompting the llm to cite its sources