AIToday
Large Language ModelsOpen-Source AIZenn AI/MLPublished: Nov 29, 2026, 22:00 JST

AnythingLLM: query mode blocks answers without sources

Send on LINE
AnythingLLM: query mode blocks answers without sources

3 Key Points

  1. What happened

    In AnythingLLM's query Chat Mode, when retrieval returns zero chunks the LLM is skipped and a Query Refusal Response is returned, blocking answers from general knowledge.

  2. Why it matters

    Teams that need answers grounded only in internal primary documents can structurally prevent the model from improvising, rather than relying on prompt instructions alone.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

A familiar wall is the starting point: once real documents go into an AnythingLLM workspace, answers often feel less accurate than expected. Its explanation is that documents are vectorized for retrieval and the LLM's internal parameters do not change, so accuracy depends on design rather than model power. That framing leads directly to the six-stage flow from collection through chunking, embedding, storage, retrieval and generation, where the embedding model and the threshold and Top N settings do most of the work.

The retrieval mechanics explain why the refusal behavior matters. In default mode AnythingLLM takes the Top N nearest chunks first and only then drops those below the Similarity Threshold, so raising the threshold can leave fewer chunks in context than Top N. Rerank mode widens the candidate pool before narrowing, trading latency for order accuracy; the code comments cite about 5.2 seconds to rerank 20 items on a 2.6 GHz 6-core Intel Core i7. When the context ends up empty, query mode returns its refusal response instead of calling the LLM.

The surrounding design choices reinforce that boundary. Workspaces separate topics so retrieval stays narrow, and that same split doubles as the access-control and publication boundary, since widget chats reuse the workspace's retrieval settings. Pinned documents are injected in full and excluded from vector search to avoid duplication. The recommended starting point is deliberately plain: default chunking of 1,000 and 20, built-in embeddings, a threshold of 0.25, Top N of 4 and automatic mode, changing one setting at a time against a 20–30 question evaluation sheet.

FAQ
How is query mode different from chat mode?
Query mode ignores conversation history and answers only from documents. Chat mode keeps history and uses surrounding context. Automatic mode switches between the two based on the question.
Why would I use rerank mode instead of default?
Rerank first pulls roughly 10% of total embeddings (minimum 10, maximum 50), filters them, then a built-in reranker reorders for Top N. It is less sensitive to the Similarity Threshold but slower.
Do settings changes apply to past conversations?
No. Changes apply to new questions from the moment they are saved; they do not retroactively affect existing conversation history.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleClaude Fable 5.2 gives up fast when tasks look rigged, Goodhart Labs finds