R2R icon indicating copy to clipboard operation
R2R copied to clipboard

How to explicitly indicate the references.

Open gdudek opened this issue 1 year ago • 2 comments
trafficstars

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.

gdudek avatar Jun 09 '24 21:06 gdudek

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 "{"id":"004ae2e3-c042-50f2-8c03-d4c282651fba","sc ... From the sources. ..

emrgnt-cmplxty avatar Jun 27 '24 08:06 emrgnt-cmplxty

This is now on the dev branch, will merge within a day or two.

emrgnt-cmplxty avatar Jun 28 '24 00:06 emrgnt-cmplxty