Document search in a retrieval setup reads from a vector database, the store that keeps every embedded passage as a list of numbers and returns the passages closest to a question. AnythingLLM writes those vectors to its built-in LanceDB files unless the instance is set to use a separate server such as Qdrant, which then holds the vectors for every workspace.
Choosing the store is an instance-wide decision that migrates nothing. Saving a different vector database removes every embedded document from every workspace and copies none of their vectors to the new store, while the uploaded files stay in the My Documents library for embedding again. The switch costs least before workspaces hold documents, or after a backup of the AnythingLLM data when they already do.
AnythingLLM reaches Qdrant from inside its own container on Qdrant's REST port 6333, so the two containers need a shared Docker network, such as the one created when setting Ollama as the chat provider. Leaving Qdrant's ports unpublished keeps it off other machines, but a Qdrant server without an API key accepts reads and writes from every container on that network. Asking about the re-embedded documents afterwards also needs a working chat model.
Steps to set the vector database in AnythingLLM to Qdrant:
- Start a Qdrant container on the Docker network that AnythingLLM shares with Ollama.
This Qdrant server has no API key, so any container attached to anythingllm-ollama can read, change or delete the stored vectors. Without a -p option, none of its ports are published on the host's network interfaces, so other machines cannot connect to it.
$ docker run -d \ --name qdrant \ --network anythingllm-ollama \ --cpus 2 --memory 2g \ -v qdrant_storage:/qdrant/storage \ qdrant/qdrant:v1.18.0 2d6a258188210dfa92261d4ec97a210bccba61315d02456a8887ebb880400cd6
anythingllm-ollama is the network from the Ollama provider setup, and the container name qdrant becomes the server's address on it. On an installation without a shared network, connecting both containers to a new Docker network serves the same purpose. The qdrant_storage volume keeps the vectors when the container is replaced, and Qdrant 1.18.0 matches the Qdrant client that ships with AnythingLLM 1.19.0.
- Check that the AnythingLLM container reaches Qdrant at
http://qdrant:6333.$ docker exec anythingllm curl -s http://qdrant:6333/ {"title":"qdrant - vector search engine","version":"1.18.0","commit":"db3fca327851e360c521065649e0f65a57fe7d3c"}Here anythingllm is the AnythingLLM container's name from its Docker installation. A JSON reply from Qdrant shows that AnythingLLM can use this address before the switch resets any workspace. Empty output means the request failed, either because Qdrant is still starting or because the two containers do not share a network.
- Open the document list with the upload icon beside each existing workspace before changing providers.
If no workspace holds documents yet, the record and close actions do not apply.
- Record each workspace name and the filenames in its workspace document list.
The workspace list, below My Documents, shows which files belong to that workspace. A note such as Dispatch Notes — cedar-lantern-dispatch.txt preserves the assignment after the reset. The library alone cannot recover these assignments.
- Press Esc to close the Documents dialog after recording the workspace's files.

- Click the wrench icon beneath the workspace list.

- Click AI Providers under INSTANCE SETTINGS.

- Click Vector Database under AI Providers.

- Click the LanceDB box under Vector Database Provider to open the provider list.
LanceDB is the built-in default and keeps its files inside the AnythingLLM storage directory.
- Type
Qdrantin Search all vector database providers.
- Select QDrant in the filtered provider list.

- Type
http://qdrant:6333into the QDrant API Endpoint field.
The grey http://localhost:6633 text is only a placeholder, and its port is not one Qdrant listens on. Inside the AnythingLLM container, localhost would point at AnythingLLM itself. API Key stays empty for a Qdrant server started without a key, and its grey value is also a placeholder.
- Click Save changes.
Saving a different vector database removes every embedded document from every workspace and copies none of their vectors to Qdrant. The uploaded files remain in My Documents, but document questions find nothing until each workspace's documents are embedded again using the assignments recorded earlier.
- Click Confirm in the WARNING - This action is irreversible dialog if it appears.
An installation with no embedded documents saves the setting directly without this dialog. When documents are embedded, the dialog confirms the reset described above.
- Click the back arrow at the bottom of the settings sidebar.
Vector database preferences saved successfully confirms that QDrant and its endpoint are stored for the whole instance.
- Click the New Workspace plus icon at the top of the sidebar if no workspace exists yet.
An existing workspace can be reused for the document test, so workspace creation is unnecessary in that case.
- Enter
Dispatch Notesin Workspace Name if creating a new workspace.
- Click Save if creating the Dispatch Notes workspace.

- Create a small test file named cedar-lantern-dispatch.txt in your text editor if no suitable document is already in the library.
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 document with a fact you can check independently serves the same purpose. An existing library document needs no new upload; its filename and question replace the Cedar Lantern values.
- Click the upload icon beside the workspace name in the sidebar.
Dispatch Notes is the test workspace. For an existing installation, the recorded assignments identify the documents to restore to each workspace.
- Upload cedar-lantern-dispatch.txt through the dashed upload area if it is not already in My Documents.
The processed file appears in custom-documents when the upload finishes. A copy already in the library needs no second upload.
- Expand custom-documents in My Documents if its file list is hidden.
After a provider reset, the workspace list is empty while the uploaded documents remain in this library. On a fresh installation, the newly uploaded test file is here instead.
- Mark the checkbox of cedar-lantern-dispatch.txt in custom-documents if it is not already selected.

- Click Move to Workspace to add the selected document to Dispatch Notes.

- Click Save and Embed to store the document's vectors in Qdrant.
On a narrow window, the workspace list sits below the upload area. First use of the built-in embedder can take longer while its model downloads.
- Press Esc to close the Documents dialog once embedding has finished and cedar-lantern-dispatch.txt is listed under Dispatch Notes.
The pin icon on the row is the Pin to workspace control, which places the whole document into every prompt, so it stays unselected. The recorded assignments identify the files that need the same re-embedding in every other affected workspace.
- Count the points stored in the workspace's Qdrant collection.
$ docker exec anythingllm curl -s -X POST \ -H 'Content-Type: application/json' -d '{"exact": true}' \ http://qdrant:6333/collections/dispatch-notes/points/count {"result":{"count":1},"status":"ok","time":0.000413}AnythingLLM names each Qdrant collection after the workspace's slug, which is the dispatch-notes part of the workspace's address in the browser. A count above zero shows the document's passages stored in Qdrant, and a longer file produces more points. Not found: Collection `dispatch-notes` doesn't exist! means nothing from that workspace has reached Qdrant.
- Click the gear beside Dispatch Notes in the sidebar.

- Open the Chat Settings tab.

- Select Query under Chat mode.
A new workspace starts in Agent mode, where a chat model with tool support can reply through the agent without searching the workspace's documents. Query mode answers only from passages that the search returns from Qdrant, and the choice is saved as soon as it is clicked.
- Click New Thread under Dispatch Notes to start a conversation with no earlier history.

- Enter a question that only the embedded document can answer 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.
- Send the question with the arrow button at the right of the message box.

- Click Sources beneath the completed reply.

- Confirm that cedar-lantern-dispatch.txt appears in the Sources panel.
The reply's LANTERN-47 dispatch code and Tuesday collection day come from the passage that Qdrant returned for the question, and the wording of the reply can vary. There is no relevant information in this workspace to answer your query with no Sources means the search found no passage, and the point count and the workspace's Documents list show whether the document reached Qdrant.