Chat With Your Documents in AnythingLLM

AnythingLLM does not send your whole library to a model. It finds the few passages that answer the question, sends only those, and shows you where they came from. Knowing how that works is the fastest way to better answers.

What happens when you add a document

AnythingLLM extracts the text, splits it into chunks of about a thousand characters, and turns each chunk into a vector with the embedder. The vectors go into the workspace's LanceDB collection. A document is processed once: added to a second workspace, it is taken from the vector cache instead of being embedded again.

What happens when you ask

The question is turned into a vector too, and the workspace's collection is searched for the closest chunks. By default the four most similar chunks above a similarity of 0.25 are sent to the model, together with the workspace's system prompt and recent chat history. The model writes the answer, and AnythingLLM lists the source documents under it. Click Sources to see each document and the passage used.

Chat, Query and Agent modes

  • Chat answers from your documents and from the model's general knowledge.
  • Query answers only from your documents and says so when nothing relevant is found. Use it for support desks and policies.
  • Agent lets the model use tools: search the web, read a page, summarise a document, save a file, or call your MCP servers.

Settings that improve answers

  • Max context snippets (Vector Database settings of the workspace): send more passages for broad questions.
  • Document similarity threshold: lower it when relevant passages are missed, raise it when unrelated ones creep in.
  • Pin a document in the document manager to send its full text with every question, for a short policy or a price list that must never be missed.
  • The system prompt: tell the workspace who it is answering and how, for example "answer as the support team, in two short paragraphs".
  • One workspace per subject: a smaller, focused library gives better matches than one workspace with everything.

Try it with your own files on Hosting for AnythingLLM on Flux.

Frequently Asked Questions

Which file types can I add?

PDF, Word, PowerPoint, Excel and CSV, plain text and Markdown, e-books, audio and video (transcribed), web pages and whole websites, GitHub and GitLab repositories, YouTube transcripts, and Confluence and Obsidian content through data connectors.

Why did the answer miss something that is in my document?

Only the passages most similar to the question are sent to the model, four by default. Ask more precisely, raise the number of context snippets, lower the similarity threshold, or pin the document so it is always included.

How do I stop it from making things up?

Switch the workspace to Query mode. It then answers only when it finds relevant passages in your documents, and says so when it does not.

Are my documents sent to the model provider?

Only the passages selected for a question, together with the question. The documents themselves, and their vectors, stay on your server.

AnythingLLM is open-source software (MIT) and a trademark of Mintplex Labs (https://github.com/Mintplex-Labs/anything-llm). Flux is not affiliated with or endorsed by Mintplex Labs.

Hosting for AnythingLLM on the decentralized cloud

Dedicated resources, a standby server, model keys encrypted at rest, HTTPS and your own domain. From $3.49/month.

Hosting for AnythingLLM on Flux

Chat with your documents, on your own server.

A product of Flux

AnythingLLM is open-source software (MIT) and a trademark of Mintplex Labs. Flux is not affiliated with or endorsed by Mintplex Labs.

© 2026 InFlux Technologies. All rights reserved. v1.22.0