Yeda AI Tips · #048

Chat With Your Own Files, Locally: RAG in Plain Terms

Ask a general local model "what did I do in Tokyo?" and it has nothing to say — it has never seen your notes, your journal, or your files. That's expected: a model only knows what it was trained on. The fix isn't retraining the model. It's giving it your files to search before it answers — a technique called RAG.

The problem: models don't know your stuff

An A.I. model's knowledge is frozen at training time and limited to public data. It has no idea what's in your personal notes, your team's internal docs, or your project files unless you put that content in front of it. Pasting a document into every chat works for one question, but it doesn't scale to a folder of hundreds of files, and it doesn't persist across sessions.

Why RAG works

RAG stands for Retrieval-Augmented Generation. Instead of retraining the model on your documents (slow, expensive, and not what most people need), your files get indexed — broken into chunks and stored so they can be searched. When you ask a question, the app first searches that index for the most relevant chunks of your own files, then hands those chunks to the model along with your question. The model answers using what it just retrieved, not from memory. That's the whole idea: look it up, then answer, every time.

How to do it

  1. Pick a local chat UI that supports documents. Open WebUI (commonly paired with Ollama) is a widely used option that adds a document/RAG layer on top of a local model.
  2. Add your documents. Upload a folder of notes, PDFs, or text files into the app. It indexes them in the background — a one-time step per document, not something you repeat per question.
  3. Ask a real question about your own content. For example: "What did I do in Tokyo?" The app searches your indexed files for anything relevant, pulls the matching passages, and feeds them to the model along with your question.
  4. Get a grounded answer. Because the model is answering from your actual notes rather than guessing, the response reflects what you actually wrote — not a generic, made-up answer.
  5. No retraining, no fine-tuning needed. Add or remove documents anytime; the index updates, and the next question searches the current set of files.

Where this fits

Pitfalls

Power tricks

Resources

Building an AI feature? Yeda AI designs, audits, and ships production LLM systems.

Talk to us · Read the blog