An LLM only knows what it was trained on — not your notes, your school handbook, or last week’s news. Today you give an agent the power to look things up in your own documents, using embeddings and a vector database. You’ll leave saying: “It answered from MY documents, with a citation.”
Begin →Turn sentences into vectors, so “meaning” becomes math you can search.
Chunk a document, index it in FAISS/Chroma, and retrieve by similarity.
Feed retrieved chunks to the LLM so every answer cites where it came from.

Here’s a tiny “vector store” of 6 chunks from a school handbook. Choose a question and slide k — the number of chunks retrieved. Watch which chunks the agent would hand to the LLM, ranked by similarity.
Why does RAG reduce hallucination?
Two chunks both mention “the deadline” but only one is about your question. What decides which ranks higher?
Retrieval beats hallucination. Ground answers in real documents — and cite them.
You built a RAG agent over your own documents that answers with a real citation.