AnythingLLM: chat with your files on a local model without sending the folder to the cloud

Point AnythingLLM at Ollama for both the chat model and the embedder, use Query mode for answers that must come from the files, and delete from My Documents when you need the text gone.

chat · Published 2026-11-14 · Website · Translation: VI

AnythingLLM is a desktop and self-hosted app for asking questions about your own files. It parses PDF, DOCX, and text, splits them into chunks, and stores the vectors in a database on the machine. The default database is LanceDB. The docs say that with that default, document text and embeddings do not leave the application.

The chat model is a separate choice. If you pick a cloud model, the question and the retrieved snippets go to that provider. If you pick Ollama for the chat model and for the embedder, that round trip stays on the computer. This note is the setup that keeps it there, and the three switches that quietly undo it.

When AnythingLLM is the right layer

Paste-into-ChatGPT is fine for a paragraph you are willing to upload. Open WebUI is the right layer when several people need a general chat window on a shared local model. AnythingLLM earns the install when the job is a folder: policies, a manual, a set of notes, with a citation back to the passage.

Three jobs: a single paragraph you can upload goes to a cloud chat; a shared local chat window goes to Open WebUI; a folder of files with citations goes to AnythingLLM on Ollama.

AnythingLLM does not download a model for you. Ollama, or another provider you select, still has to be running.

Stay on the Desktop app if you are one person and the files live on that computer. The configuration docs tell Desktop users not to hand-edit the .env file. Use Docker when the app should run on a server you administer. The image is mintplexlabs/anythingllm, and the UI is http://localhost:3001.

What actually leaves the machine

“Local app” is not the same sentence as “local model.” Three hops matter.

  1. Vectors. Default LanceDB keeps document text and embeddings inside AnythingLLM. No extra setup.
  2. Embedder. Something has to turn chunks into vectors. The built-in default is all-MiniLM-L6-v2. The docs use it as the example of an English embedder that may do poorly on other languages (their example is Mandarin). For Ollama, the model list mixes chat models and embedding models. Their warning is explicit: llama2 is a chat model, not an embedder. Pick an embedding model in Settings before you upload a pile of files.
  3. Chat model. Query mode still sends the retrieved snippets to whatever LLM you selected. A cloud LLM means those snippets leave. Ollama at http://127.0.0.1:11434 on the Desktop app keeps them on the machine.

Two paths from the same file: Ollama as both embedder and chat model stays on the computer; a cloud chat model or a cloud embedder sends the text that provider needs.

A vector built by one embedder is not a vector from another. After you change the embedder, embed the workspace again before you trust a search.

The settings page lets you swap the model name at any time. That swap does not rebuild what you already embedded. Run embed again, then ask one question you can check by opening the cited passage. A citation is the chunk the search returned. Open it. A citation is not proof that the sentence above it is fully supported.

Anonymous telemetry is on unless you turn it off. The privacy page says it does not include your documents, and the switch is in the app if you want it off anyway.

Install so the files survive a restart

On Desktop, connect Ollama with http://127.0.0.1:11434, choose a chat model you have already pulled, and choose an embedding model in the embedder slot. Create a workspace, add the files, and embed them into that workspace.

Docker is stricter. The install doc says that without a storage volume, a restart deletes your data. Mount a host folder onto /app/server/storage. The published image runs as UID/GID 1000. If the container exits because it cannot open anythingllm.db, the storage folder is not writable by that user. The docs say to chown the folder to 1000:1000, and they tell you not to chmod 777 it: that mode makes the database, the documents, and any API keys in the .env writable by every account on the machine.

Two hardware notes from the same page. The default vector database needs AVX2. A container that dies with Illegal instruction is an old CPU, or a virtual machine hiding AVX2. And localhost inside the container is the container. The localhost doc says 127.0.0.1 never reaches Ollama on the host. Use http://host.docker.internal:11434. On Linux, that same page says to use http://172.17.0.1:11434 instead. If the address does not connect, follow that page rather than opening port 11434 on the public internet. Ollama has no password of its own.

There is an optional built-in LLM via -e ENABLE_BUILT_IN_LLM=true on the Docker image, including GPU builds. Use it only if you are not already running Ollama. Two model servers on one GPU is how the machine falls over.

Ask in Query mode, and delete from the right place

Workspaces created on versions after v1.11.1 start in Agent mode. Agent mode can call tools and MCP servers, which is the wrong default for a folder of private files. Open the workspace gear, Chat Settings, and switch to Query when the answer must come from the documents. Query mode is supposed to say when it cannot find a relevant passage. Chat mode mixes the documents with the model’s general knowledge, which is how a policy answer grows a paragraph that was never in the PDF.

If Query mode keeps saying nothing is relevant, the docs’ first fix is Vector Database Settings → Document similarity threshold → No restriction. The default minimum score is 20%, and a chunk that holds the answer can fall under it, especially when the embedder is a poor fit for the language. They also suggest keeping max context snippets around 4–6 so the prompt is not stuffed with neighboring chunks. Ask with words that appear in the document, not a paraphrase of the title.

Attaching a file to one chat is different from embedding it. An attachment is for that thread, and by default the full text is inserted. If it does not fit the context window, Continue Anyway trims the text and the docs tell you not to: answers get worse. Embed puts the document on the workspace, where every thread can use it. In multi-user mode, everyone who can open the workspace can use an embedded document.

Query mode for answers that must come from the files; Chat mode when you want general knowledge mixed in; Agent mode only when tools are the point. Deleting from the workspace is not the same as deleting from My Documents.

Pinned documents are forced into the prompt in full. Pin a short policy you always need. Do not pin the whole archive.

Removing a document from a workspace deletes that workspace’s vectors and leaves the parsed file in My Documents, so another workspace can reuse it. Deleting it from My Documents removes the parsed file, the cached embeddings, and every workspace copy. The privacy page is explicit: a right-to-erasure request is the My Documents delete, not the workspace remove.

Before you paste a customer folder in, run one question you can check by hand. If the citation chunk does not contain the answer, fix the embedder or the threshold before you trust the next ten questions. For a shared chat that is not about a folder, use Open WebUI. For the model host itself, start with Ollama or LM Studio. Meeting audio is a different problem: transcribe locally, then embed the redacted extract, as in the meeting-notes guide.

  • Ollama — context length and who can reach port 11434
  • Open WebUI — shared chat window when you do not need per-folder citations
  • LM Studio — another local host AnythingLLM can point at

Share

X Facebook LinkedIn