TECHNOLOGY

AnythingLLM snippet count and similarity threshold remove evidence differently

In this article
THE QUICK TAKE

A count cap limits how many chunks are supplied, while a similarity threshold can reject a chunk regardless of spare context capacity.

Name the missing evidence precisely

Suppose a workspace answers the main procedure but omits a separately documented exception. Before changing settings, identify the exact passage that should support the answer. Its absence may arise during extraction, splitting, filtering, selection, or final interpretation. A precise expected passage lets you test the relevant stage instead of repeatedly asking the model to be more careful.

Separate the count from the admission gate

The retrieval settings expose Max Context Snippets and Document similarity threshold. The count determines how many relevant chunks are supplied; the threshold filters chunks by similarity score. Raising the count cannot admit a passage excluded by the threshold. Relaxing the threshold cannot ensure that every remaining passage fits within a limited result count.

Remember what shares the context window

Selected snippets compete with instructions, chat history, and the user’s question. A higher count is therefore not a promise of proportionally more useful source text. Long chunks consume more space than short ones, and unrelated material can distract generation. Keep a short conversation when comparing retrieval settings so an expanding history does not become an unnoticed second variable.

Interpret refusal according to the active mode

The chat-mode guide associates Query-mode refusal with wording, restrictive similarity settings, and splitting. Use a source-specific query and inspect the evidence when available. Temporarily relaxing a filter is a diagnostic choice, not a claim that unrestricted similarity is correct for every corpus. Chat mode’s general knowledge can conceal a retrieval miss by producing a plausible answer anyway.

Check the actual stored chunk boundaries

The splitter reference measures chunk size in characters and applies changed settings only to later embeddings. A file already in the workspace keeps its existing boundaries. If the exception is detached from its heading, altering retrieval count does not reconstruct that missing relationship. The chunking guide develops this coverage problem independently of the interface controls.

Compare changes against known passages

Keep the corpus, question, and answer model fixed while changing a single retrieval control. Record whether the expected exception appears and whether unrelated snippets increase. The faithfulness evaluation boundaries help separate passage availability from the model’s use of it. Accept a setting because it handles your evidence cases, rather than because its numeric value looks more permissive.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles