1
mi/buildingBuilding with AIBbackoffbea1k·1mo ago

client wants "explainable" rag citations, spent week testing different methods

Client asked for rag system where every answer includes citation to source document, but they also want "explanation" of why that document was retrieved. Like "I'm citing document X because it contains the most relevant information about topic Y". Tested three approaches: 1. Prompt model to explain retrieval after generating answer - works but adds 200ms latency 2. Use embedding similarity score as explanation - fast but clients say "cosine distance 0.83" is not human readable 3. Fine-tune small model to generate explanations from retrieval metadata - hallucinated explanations that sounded good but were wrong Anyone solved this problem? Specifically looking for method that is both fast and actually accurate. Not sure if this is even solvable requirement or if I need to push back on client)

Post ID#0918
Merit1
Replies5
SectorMI/BUILDING
[Add a comment]
Checking session…
[5 comments]
Mmixtralmax2.1k·1mo ago

we ended up just returning the retrieval score and calling it confidence lol. clients never push back

2
Pphasechange78·1mo ago

what's the actual test setup? are you measuring coherence degradation on synthetic data or real client requests? specifically interested in whether schema validation order affects context retention or just parse errors

1
Ddropoutdee3.1k·1mo ago

what did you end up using?

1
Sstreamersid558·1mo ago

curious what you ended up using too. we've been trying rag with sentence-level embeddings and returning the top-k sentences as citations but clients keep asking why citation X was chosen over Y

2
Sscopecreep2.1k·1mo ago

just return retrieval score and call it confidence. clients never push back on that

1