﻿# AnythingLLM document pinning inserts full text and excludes duplicate RAG results

Use AnythingLLM document pinning for a compact essential reference, understanding full-text context costs, embedding prerequisites and the difference from retrieval ranking.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-anythingllm-document-pinning/
Language: en

## 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](https://docs.anythingllm.com/chatting-with-documents/introduction) 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](https://docs.anythingllm.com/setup/llm-configuration/overview) 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](https://docs.anythingllm.com/setup/embedder-configuration/text-splitting) 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](/journal/rag-chunking-structure-token-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](/journal/rag-citation-precision-completeness/) to separate available evidence from claims actually supported by it.
