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.
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.
AnythingLLM’s own install overview says the desktop app is the easiest way to use it, and that it is meant for one person, on the computer, with documents staying there. You do not start with Docker. Official pages were opened on November 15, 2026.
AnythingLLM Desktop Required
What it does. The window where you chat, plus the place your files are stored.
Why you need it. It is the app that ties the model, the file search, and the chat together.
What it does. Writes the answers. The built-in model page says Desktop downloads a local model, and that the engine is Lemonade running llama.cpp. On a Mac it uses Metal for Apple Silicon, and the CPU for an Intel Mac.
Why you need it. Without a model, the file has nobody to ask. The built-in one is the path with nothing else to install.
What it does. Turns the file into numbers so a long document can be searched. The built-in embedder page says this is all-MiniLM-L6-v2, it downloads about 25 MB the first time you embed, it runs on the CPU, and it is primarily trained on English. Have about 2 GB of memory free for that job.
Why you need it. A long file does not fit in the chat. Search is how the app pulls out the relevant part. A short test file may not need it. The first embed is when this download happens.
Your file Required
What it does. The text you want answers from.
Why you need it. The model cannot see a file you have not given it. The documents page says to drag a file into the chat or use the + button. A short file is inserted in full. If it does not fit, the app asks you to embed it, and an embedded file is then available across chats in that workspace.
Your own Ollama model Optional
What it does. Replaces the built-in chat model, or the built-in embedder, with one you picked in the checker.
Why you would add it. You want a specific model, or an embedding model that is not the built-in English one. The Ollama embedder page says to use an embedding model, not a chat model, and to connect to http://127.0.0.1:11434.
Open the Mac install page and download the disk image it links. The page says Apple Silicon (it names M1, M2, and M3) uses AnythingLLMDesktop-AppleSilicon.dmg, and Intel uses AnythingLLMDesktop.dmg. If About This Mac shows an Apple chip, use the Apple Silicon file. If it shows Intel, use the other one.
Open the disk image and drag AnythingLLM to Applications. Open it from Applications, or with Spotlight. The page says the first open can take a minute.
When it asks you to download a local model, let the built-in download finish. That is the chat model.
Do the test below with a short text file. If the app asks to embed it, agree. That is when the embedding model downloads.
Open the Windows install page and download the installer for your PC. The page lists Windows 10 or newer, Home or Professional, x64 or ARM. It says the target is Windows 11, and that you should install for the current user, not for all users.
Run the installer. The page says the GPU support files are installed during setup. If that part fails, the app warns you and the model runs on the CPU, which is slower.
Open AnythingLLM from the desktop icon. Let the built-in model download finish.
Do the test below. If embedding fails on Windows, the fetch-failed page says to install the Visual C++ Redistributable, and to allow downloads from Hugging Face, because the embedding model is not bundled in the installer.
The Linux install page has the desktop package. The overview says desktop is still the easiest path. Use the same first-run model download and the same file test.
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.
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.
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.
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.
In Terminal, ollama pull the chat tag from the checker, then ollama pull the embedding tag.
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:
Open http://localhost:3000, create the admin account, and confirm the chat model appears.
In Settings, then Documents, set the embedding engine to Ollama and choose the embedding tag. The RAG page is the reference.
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.
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.
Same steps as Mac, with two differences from the official pages. Ollama's Windows page says Windows 10 22H2 or newer, and NVIDIA driver 551.61 or newer for an NVIDIA card. Use PowerShell for ollama pull. Install Docker Desktop for Windows with the WSL 2 backend, which the Open WebUI quick start asks for, and run the same docker run command there. Then use the same Settings, Documents, and # steps.
Install Ollama with the Linux command, pull both tags, and run the same Docker command. The quick start's Python section is the other install, and it warns that a Linux machine without an NVIDIA GPU should install the CPU build of PyTorch first. Follow that section rather than guessing the command.
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.
LM Studio Required
What it does. The chat window and the file attachment.
Why you need it. The file is attached inside this app. There is no second program in this setup.
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.
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 ⌘ShiftR. 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.
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.