An external knowledge base supplies retrieved information to a model at inference time so generation is grounded in source material. section 2.2 section 13.2
Here it appears as the retrieval source in retrieval-augmented generation, where retrieved context is fed to a pretrained LLM to improve accuracy and freshness. section 2.2 section 13.2
The treatment breaks the workflow into two phases:
- Offline, document corpora are chunked, embedded, and stored in a vector database with indexes for search. section 13.2
- Online, a user query is embedded, similar chunks are retrieved, and the generator model answers with that context. section 13.2
- The pipeline can also check outputs against sources to improve transparency and accuracy. section 2.2
PDF-based retrieval
A single PDF is parsed, split into sentence chunks, embedded with a sentence transformer, searched by cosine similarity, and passed as context to a chat model. section 13.2









