Problem
An LLM knows only its training data, which ends at a fixed date (the author notes ChatGPT's knowledge stopped at January 2022 at the time of writing). When a fact is missing, it extrapolates and states false but plausible answers with confidence. A team that builds an assistant over its own documentation, records or recent events gets mixed or wrong answers. Retraining for every change is too slow and costly, and a model cannot be made to forget bad content.
Example from the article: asked "What is RAG?", an LLM without retrieval lists unrelated meanings (Red, Amber, Green status, resource allocation graph), while the same model with retrieved context gives the correct definition.
Solution in brief
Retrieve relevant passages from an external knowledge store at query time and put them into the prompt, so the model answers from that context. The store is updated in place when documents change.
Questions this case answers
- How to make a language model answer from a private, changing document collection when its training data is static and it invents facts to fill gaps
- How to move a retrieval-augmented prototype to production when the default loaders, splitters and prompts lose context
- How to make an LLM answer from current, private documents instead of its stale training data?
- How to build the ingestion pipeline that turns documents into a searchable vector store?
Tools and methods
- Retrieval augmented generation (RAG) — ground the answer in retrieved, current context
- LangChain, LlamaIndex, Semantic Kernel — orchestration, loaders, text splitters
- Unstructured, document loaders — read text, PDF, spreadsheet, web and repo content
- Sentence Transformers, OpenAI embeddings — turn chunks into vectors
- Vector store (Pinecone, Weaviate, FAISS, Chroma) — similarity search over chunks
- tiktoken — count tokens before inference
Google or a one-time email code. No password.