Based on official documentation. Steps were checked against the linked official docs on November 15, 2026. They have not been run on a real computer.

All guides

Chat with my documents

Ask questions about your PDFs and files, and keep those files on your computer.

Who this is for. You have notes, PDFs, or other files, and you want answers that come from those files. A plain chat model has not read them.

What you will have at the end. An app where you can drop in a short file and ask a question that only that file can answer.

A document chat is more than a chat model. Something has to read the file, and for a long file something has to search it. That search piece is an embedding model. The chat model then writes the answer. This guide names both.

Pick the models

The chat model is the same kind of model as a private chat. Open the checker for Chat & Q&A. The embedding model is a different list: the checker’s Embedding filter. The examples under each list include graphics cards and Apple Silicon Macs. If you do not know your hardware, use How do I find my specs? on that page. Open the checker for your exact Mac.

Chat models by memory

Loading chat examples… If this stays empty, use the checker.

Embedding models

Loading embedding examples… If this stays empty, use the Embedding filter.

The recommended app below brings its own small English embedding model, so you can finish the first test without picking one of these. Use the list when you choose Ollama as the embedder, which the flexible setup does.

The setup to follow

AnythingLLM Desktop · easiestOne install: chat model, embedding model, and a place to drop files. Ollama + Open WebUI · most flexibleYou pick both the chat model and the embedding model. A knowledge base holds the files. LM Studio · fewest extra appsAttach a file in the same chat app. Short files are read in full. Long files use search.

First useful task

Make a text file, note.txt, that contains only this line:

The archive code word is yellow lantern.

Drag it into the AnythingLLM chat, or use the + button. Then ask: What is the archive code word?

You are done when the reply says yellow lantern. That phrase is not a famous fact. If the reply is a guess that never mentions it, the file was not attached. Attach it again. If the app says the file is too long for the chat, choose embed, wait until it finishes, and ask again. The documents page explains that choice.

Alternative: Ollama and Open WebUI

Most flexible

You choose the chat model and the embedding model from the checker. Open WebUI stores the files as a knowledge base and searches them when you attach that knowledge with #. The RAG page and the knowledge page are the source for those steps. This is the same Ollama and Open WebUI install as the private chat alternative, plus the embedding model. Pages were opened on November 15, 2026.

Ollama Required

What it does. Runs both models. Chat tags are pulled with ollama pull. Embedding tags are pulled the same way.

Why you need it. Open WebUI has no models until a runner is connected.

A chat model Required

What it does. Writes the answer, using the pieces of the file the search returns.

Why you need it. The embedding model does not write replies.

An embedding model Required

What it does. Numbers the file so search can find a paragraph.

Why you need it. The RAG page says the embedding engine can be the built-in one or Ollama. For a model you picked, set Settings, then Documents, to Ollama, and choose the embedding tag you pulled. Do not pick the chat model there.

Open WebUI Required

What it does. The browser chat, the knowledge base, and the setting for the embedding engine.

Why you need it. Ollama alone does not search your files.

Docker Desktop or Python Required

What it does. Installs Open WebUI. Docker is the quick start. Python 3.11 or 3.12 is the other documented install: pip install open-webui then open-webui serve.

Why it is here. Open WebUI is not part of Ollama. One of those two installs has to put it on the computer. The quick start also links a desktop app and says production installs should use Docker or Python.

  1. On a Mac, follow the macOS page: macOS 14 or newer, drag the disk image's app to Applications, and open it. Apple silicon uses the GPU. An Intel Mac is CPU only. Download from ollama.com/download.
  2. In Terminal, ollama pull the chat tag from the checker, then ollama pull the embedding tag.
  3. Install Docker Desktop and run the Open WebUI quick start command. Generate the key with openssl rand -hex 32 and put it in place of your-secret-key:
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=your-secret-key --name open-webui --restart always ghcr.io/open-webui/open-webui:main
  1. Open http://localhost:3000, create the admin account, and confirm the chat model appears.
  2. In Settings, then Documents, set the embedding engine to Ollama and choose the embedding tag. The RAG page is the reference.
  3. The RAG page also says Ollama may pick a 4096-token context on a GPU with under 24 GiB, which is short for documents. Its fix is Settings, then Models, edit the model, Advanced Params, and a longer context such as 8192. Do that if answers ignore the file.
  4. Add the note file under Workspace, then Knowledge, or drop it in the chat. Type # and choose the file, which is the RAG page's attach step. Ask for the archive code word.

Alternative: LM Studio

Fewest extra apps

If you already followed the private chat guide, stay in LM Studio and attach the file. The Chat with Documents page says you can attach .docx, .pdf, and .txt. A short file is added in full. A long file uses retrieval, which that page calls RAG. It does not ask you to install a separate embedding model, and this guide will not invent one. The page's tip is to use words in your question that also appear in the file. The offline page says document chat is processed on the computer.

A chat model Required

What it does. Reads the attached text and writes the answer.

Why you need it. Load one that fits before you attach the file. A longer context helps a short file fit in full. The checker shows the context the model was published with, on the model page.

Your file Required

What it does. The .txt, .pdf, or .docx you attach to the chat.

Why you need it. Nothing else in this setup points LM Studio at a folder of documents. You attach the file you want read.

Install LM Studio with the Mac or Windows steps in the private chat guide. On a Mac, that page includes the MLX choice: the app docs say Apple Silicon can run MLX or a GGUF, and that runtimes open with ⌘ Shift R. Load the model. Attach note.txt. Ask: what is the archive code word? Mention "archive code word" in the question so the words match the file, which is the tip on LM Studio's document page.

If it does not work

The answer ignores the file

The file is not attached, or the search picked the wrong piece. For a short test, keep the file to one line so it can sit in the chat in full. In AnythingLLM, drag it in again. In Open WebUI, type # and select it, and raise the context if the RAG page's 4096-token warning applies. In LM Studio, use words from the file in the question.

The model is too big, or the computer runs out of memory

The chat model and the embedding model are both in memory when you use Ollama for both. Pick a smaller chat model in the checker. Embedding models in the list above are much smaller than a chat model. Close other apps before the first download.

The embedder never downloads

AnythingLLM's fetch-failed page says the built-in embedder is downloaded from Hugging Face or their CDN on first use. If a firewall blocks that, the embed fails. On Windows, the same page says a missing Visual C++ Redistributable can cause it. The chat model can still answer without search. The long-file path cannot.

Ollama is not running, or a port is taken

Open the Ollama app. http://127.0.0.1:11434 should respond. AnythingLLM's connection page says Desktop looks for http://127.0.0.1:11434. Open WebUI in Docker looks for http://host.docker.internal:11434. If that list is empty, use Connection to Ollama Server. Port 3000 is Open WebUI's Docker port. Change the left side of -p 3000:8080 if something else already uses 3000. The Python install uses 8080.

English embedder, non-English file

The built-in AnythingLLM embedder page says all-MiniLM-L6-v2 is primarily trained on English. For another language, switch the embedder to an Ollama embedding model from the checker and re-embed the files. The embedder overview says you should re-embed after a change, or search gets worse.

The plain chat, without files, is the private chat guide. Help inside an editor is Help me code.

Building an app or agent? LocalAI is the option for an OpenAI-style API on this computer. The quickstart (checked November 16, 2026) says Linux and Apple Silicon install with curl -sSL https://localai.io/install.sh | sh, then local-ai run and a gallery model name. The API and the web UI are at http://localhost:8080. Windows and Intel Macs use the Docker command on that page. The checker shows a LocalAI command only when that model and quant are in the LocalAI gallery. Based on official documentation.