New Tool Radar

Local AI

How to Chat with Your Own Documents in an AnythingLLM Workspace

Upload a document to an AnythingLLM workspace, embed it, and ask a question in Query mode so the answer comes only from your documents.

Schematic diagram with three steps: upload a document to a workspace, embed it with Save and Embed, then ask a question in Query mode and get an answer from the document.

AnythingLLM organises everything into workspaces — separate rooms with their own documents, settings, and chat history. Chatting with your own documents means getting a file into a workspace, embedding it so the app can search it, and then asking about it. There are two ways to use a document: attach it, which inserts its full text into the chat, or embed it, which splits it into chunks and stores them for retrieval (RAG). For a document you will ask about more than once, embedding is the way.

Upload and embed a practice document

Make a small practice file, practice-harbour.txt, with three lines:

The harbour office opens at 8am.
The ferry leaves at 9am.
Mara checks the lamp at noon.

Upload it to your workspace, select it, and click “Move to Workspace”, then “Save and Embed”. At that point AnythingLLM reads the text, splits it into chunks, and the embedding model computes the vectors. AnythingLLM’s own docs describe the same choice from the other side: if a document you attach is too large for the model’s context window, it will ask whether to chunk it into smaller pieces — that is, embed it.

Ask in Query mode

Each workspace has a chat mode. In Query mode the model answers only from your documents and refuses when the answer is not there, instead of guessing. In Chat mode it blends your documents with its general knowledge. For a check you can verify, use Query mode and ask:

When does the ferry leave?

The answer should be 9am, drawn from the practice file. Attached documents, by contrast, are uploaded to the workspace and the model can use their full text — accurate, but slower and heavier on context, and limited to that one thread.

Check What you should see If you do not see it
Uploaded practice-harbour.txt appears in the workspace’s documents Upload it again — it must be in the workspace, not just on your computer
Embedded The file is listed as embedded after Save and Embed Select it and use Move to Workspace, then Save and Embed
Mode The workspace is in Query mode Switch the mode toggle — Chat mode may answer from general knowledge instead
Answer The reply says the ferry leaves at 9am The document was not embedded — the model has nothing to retrieve from

Expected result. We checked AnythingLLM’s own documents docs for attaching versus embedding and a third-party guide for the upload, Move to Workspace, and Save and Embed steps. We did not run AnythingLLM.

Limits

Embedding splits a document into chunks and only retrieves the most relevant ones, so a very long document may not have its full text available to the model — that is the trade-off the docs describe. Query mode refuses when the facts are not in the documents, which is the point, but it means a badly worded question can come back unanswered. The practice file is fictional, and its three lines are the whole test. We did not run AnythingLLM, so no reply here is a recorded result.

Sources

See all