Your project files can supply facts that a language model has never learned. In AnythingLLM, an embedded document becomes a searchable source for answers across the threads in its workspace.
Uploading a file adds its processed text to My Documents. Workspace retrieval requires the separate Move to Workspace and Save and Embed actions, while the chat attachment button adds context to an individual conversation. Retrieval supplies relevant passages rather than the entire document library.
The browser interface needs a working chat provider, such as Ollama, on an AnythingLLM Docker installation. The built-in embedder and default LanceDB store are sufficient for a small text document; no separate vector database service is required.
Steps to embed a document in an AnythingLLM workspace:
- Create a file named cedar-lantern-dispatch.txt in your text editor with the following contents.
Cedar Lantern dispatch note The Cedar Lantern project uses dispatch code LANTERN-47. Cedar Lantern collections take place on Tuesday at the east reception desk. The approved parcel label is amber triangle. This synthetic note applies only to Cedar Lantern.
A small document with known facts makes it possible to compare the answer with its source. An approved document of your own can serve the same purpose with a question about its contents.
- Click the New Workspace plus button beside Search in the sidebar.
If a suitable workspace already exists, the upload control beside its name is the starting point.
- Enter Cedar Lantern in the Workspace Name field.

- Click Save to create the workspace.

- Click the upload icon beside Cedar Lantern in the sidebar.
An embedded document is available to every thread and every user with access to this workspace. Retrieved passages go to the configured chat provider, so confidential material needs appropriate approval before upload.
- Upload cedar-lantern-dispatch.txt using the dashed upload area.
Processing adds the file to the custom-documents folder of the document library; it does not yet make the file searchable in the workspace.
- Clear the checkbox beside the custom-documents folder.
After an upload, AnythingLLM selects the whole folder, including any documents uploaded there earlier. Moving that selection would embed every listed file and share it with the workspace's users.
- Select the checkbox beside cedar-lantern-dispatch.txt.

- Click Move to Workspace beneath the document list.

- Click Save and Embed beneath the Cedar Lantern document list.
On a narrow window, the workspace list is below the upload area. The built-in embedder downloads its model from the internet on first use, which can delay the first embedding.
- Confirm that cedar-lantern-dispatch.txt shows a pin icon in the Cedar Lantern list.
A Status column tracks the file while it is embedded. The pin icon appears and the Save and Embed button disappears once the document is stored in the workspace; a file that stays queued or reports an error is not ready for document questions.
- Close the Documents dialog with its upper-right X.

- Click the gear beside Cedar Lantern to open its workspace settings.

- Select the Chat Settings tab.

- Select Query under Chat mode.
Query mode answers only when document context is found. The selection saves automatically and keeps the reply from relying on the model's general knowledge or agent tools.
- Click + New Thread beneath Cedar Lantern in the sidebar.

- Enter the following question in Send a message.
For Cedar Lantern, what is the dispatch code and collection day? Answer only from the supplied documents and cite the source.
- Click the send arrow to submit the question.

- Open Sources beneath the completed answer.

- Click cedar-lantern-dispatch.txt in the Sources panel.

- Verify that the retrieved passage supports the answer's LANTERN-47 dispatch code and Tuesday collection day.
The wording of the reply can vary, but both facts must agree with the document. A reply without the expected source or facts does not establish that the document was used.