Document questions, general conversation, and tool-assisted requests need different answer sources. An AnythingLLM workspace's chat mode determines how prompts use documents, model knowledge, or agent tools, allowing the workspace to match the kind of answers you need.

The mode belongs to the workspace and affects subsequent prompts across its threads. Changing it leaves the provider and model selection in place; a new thread avoids carrying an earlier conversation into a mode test.

Begin with a working chat provider and a workspace containing an embedded document whose contents you know. A question outside that document's subject can distinguish Query's refusal from Chat's general-knowledge answer, while a document question checks whether retrieval still works.

Steps to select a chat mode in AnythingLLM:

  1. Click the gear beside your workspace's name in the sidebar.

    The pictured Kettle Help workspace contains a fictional returns FAQ. Your own workspace and an approved document with known facts serve the same purpose. A working provider is required before testing replies.
    Related: How to set the Ollama provider in AnythingLLM

  2. Open the Chat Settings tab.

    Query answers only when document context is found and refuses when none is found. It suits document-focused questions, but retrieved text does not guarantee that every generated claim is accurate.
    Chat uses retrieved documents and the model's general knowledge, so it suits conversation that can go beyond the files.
    Agent can invoke enabled tools automatically when the provider and model support native tool calling. Otherwise, tool use requires @agent; the chat input's @ control indicates that manual invocation is needed. New workspaces start in Agent mode.

    Agent mode can run the workspace's configured tools in response to prompts. Their access and effects depend on the enabled tools, so the selection should fit the workspace's intended use.

  3. Select Query, Chat, or Agent under Chat mode for the behavior you need.

    The selected button is highlighted. The pictured change selects Query for document-focused answers; the setting saves automatically without a separate Save button.

  4. Reload the Chat Settings page.

    Your chosen mode should remain highlighted after the reload. A reverted value means the change did not persist.

  5. Click New Thread beneath the workspace in the sidebar.
  6. Enter a question outside the embedded document's subject in Send a message.
    What is the boiling point of water at sea level in Celsius?

    This question is outside the pictured returns FAQ. A document about boiling water needs a different unrelated question for the same comparison. In Agent mode without native tool support, a prompt beginning with @agent starts the agent session.

  7. Send the question with the upward-arrow button.
  8. Confirm that the completed response follows your selected mode.

    In Query, a question with no matching document context produces the refusal shown, or the workspace's custom Query mode refusal response. A factual answer to that question needs investigation before relying on document-only behavior. In Chat, the model can answer from general knowledge; the boiling-point reply should give about 100 degrees Celsius. In Agent, native tool calling removes the input's @ control and sends the prompt through the agent automatically; without native support, @agent starts the session. A tool request needs an actual tool result before it counts as completed. An error or empty reply is a failed test in any mode.

    A new-thread question about a known fact in the embedded document provides a second check for Query or Chat. The answer should agree with the file, and Sources beneath it should identify that document. A refusal to both an on-document and an off-document question points to missing retrieval rather than a successful document-answering setup.

Share this guide