anythingllm_update_pin
Pin or unpin a document in an AnythingLLM workspace to force its inclusion in every LLM query context, regardless of vector similarity results.
Instructions
Pin or unpin a document in a workspace.
Pinned documents are always included in the LLM context for every query, regardless of vector similarity results.
Args: slug: Workspace slug. doc_path: Document path as returned by list_documents (e.g. 'custom-documents/myfile.pdf-abc123.json'). pinned: True to pin, False to unpin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| pinned | Yes | ||
| doc_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |