R2R
R2R copied to clipboard
How to explicitly indicate the references.
When returning RAG results, references like [5] or [6c] are used. It is not clear how to convert these to an explicit user-friendly form and the numbers to not seem to match the index values in document_info. Sometimes they refer to the internal sub-queries that were generated.
It would be good to have an interface to explicitly return the document associated with reference number, what that is what is being referred to.
Hey gudedk,
This is an oversight on our part for the RAG endpoint, we will be adding this shortly.
If you are streaming responses then the results come immediately in between search tags
This is now on the dev branch, will merge within a day or two.