Replies: 3 comments 5 replies
-
|
I had to modified the code (operate.py and prompt.py) to add support for citation on modes other than Mix. |
Beta Was this translation helpful? Give feedback.
-
|
Citations (currently down to the chunk id, I suppose?) are needed inline with the text from the LightRAG response, i.e. at the end of each sentense/paragraph, so that the information can be cross-checked/validated. Citations should also refer to the relevant chapter/section/numbered_paragraph of a document, so that they are easy to find. To implement these, we need to add the relevant fields/columns in the chunk records, and build a parser that is capable of extracting this information from the document. I need to look into the code, to better understand what's needed; I wonder if Apache Tika can help. |
Beta Was this translation helpful? Give feedback.
-
|
The more I tinker and bang on the LightRAG Server, the more I appreciate how little meaning we can get from citations. That's because there isn't all that much direct correspondence between the response and the material it comes from. Better to ask for an audit trail of how LightRAG forms responses. By putting a question into the retrieval tab and checking the Only Need Context option and then running the query once for each of the following options: (mix, hybrid, global, local, naive), I get the source material back in several ways that make it possible to understand where the answers are coming from. A lot of looking through the data and thinking about it is required to make sense of what LightRAG is doing but the information is there. More interesting to me is the idea of automating the audit so that less time and effort is required to see how the responses are formed. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
We are considering adding a citation feature to LightRAG. Does anyone have any good ideas or suggestions on how to implement this?
Beta Was this translation helpful? Give feedback.
All reactions