← Back to Work
Generative AI (K-Bot) Metadata-Based Document Source Tracking
An end-to-end grounding system that traces inline LLM citations back to chunk metadata and the exact source
All retrieved documents appeared as sources, while the cited answer text was difficult to connect to an exact document location.
02 / Constraints
LLM citation formatting varied between responses.
PDF pages, Excel rows, and text documents used different location models.
Text and provenance could not separate during retrieval and reranking.
03 / Decisions & approach
Chunk-level provenance model
File, page, sheet, and row locations were normalized into shared metadata.
Resilient matching
Citation text is normalized before exact and fallback matching run in sequence.
Show only cited evidence
Users see the sources actually referenced by the answer, not every retrieval candidate.
04 / System flow
Citation trace flow
-
Retrieve
-
Rerank
-
Generate
-
Match
-
Verify
05 / Outcome
- Inline citations connect to exact PDF pages, Excel rows, and text evidence.
- Users can inspect only the evidence actually used in the answer.
RAG trust comes from the accuracy of the answer-to-evidence link, not the number of sources displayed.