TECHNOLOGY

AnythingLLM document pinning inserts full text and excludes duplicate RAG results

In this article
THE QUICK TAKE

Pinning changes how an embedded document enters model context; it is not a search-score bonus or a guarantee that unlimited text fits.

Choose a reference that needs complete coverage

A workspace containing a short release checklist and a large technical archive has different reading needs. The checklist may need to accompany every relevant question, including clauses with weak semantic similarity to the wording of the prompt. AnythingLLM document pinning addresses this context-delivery problem. It is useful when completeness of a compact reference matters more than selective retrieval.

Embed before pinning

The document guide says only an already embedded document can be pinned. The pushpin toggles its state. First verify that the intended file appears in the workspace’s embedded documents, rather than assuming a chat attachment is already eligible. Check the filename and actual contents before choosing a similarly named revision.

Expect full text instead of a ranking boost

A pinned document is inserted as full text and excluded from RAG results to avoid duplicate delivery. Consequently, a search-results list that omits the pinned file does not prove its text was absent from the prompt. Diagnose the configured delivery mechanism. Adding more retrieval results is a different action and does not describe what pinning does.

Budget for the selected answer model

Full-text insertion consumes context alongside instructions, conversation history, and the current question. The model-configuration guide distinguishes default, workspace, and agent models. Confirm which model actually handles the request before assuming its context capacity. Pinning a growing archive can defeat the reason selective retrieval was used in the first place; start with a short authoritative document.

Keep the ordinary archive independently searchable

The text-splitting reference explains that normal embedded material is returned as chunks, and new splitting settings do not rewrite existing documents. Keep a note of which reference is pinned and which archive is searched. This makes a missing exception easier to diagnose without confusing full-text delivery with an old chunking configuration. See chunk boundaries for the underlying tradeoff.

Test a clause that retrieval previously missed

Ask a precise question about a checklist condition, inspect the answer against the original passage, and compare with the unpinned workflow. This is a coverage check, not a universal quality benchmark. Full text still requires correct interpretation; use citation precision and completeness to separate available evidence from claims actually supported by it.

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