by hackerlight · 2y ago · 0 comments
Could you do something like this. Chunk/separate the individual claims made by the LLM, and the associated sources from RAG. Then feed them into a second LLM one by one, asking "is this claim $X_i reflective of the source $Y_i?". Whatever this second LLM says, feedback the response to the original LLM and ask it to revise what it's saying if the answer is "No". Iterate until the second LLM says "Yes" to every separate claim. Not perfect but might help.