[GH-ISSUE #5413] [FEAT]: Priority Document Retrieval - Mandatory inclusion of specific documents in RAG results #5076

Open
opened 2026-06-05 14:51:52 -04:00 by yindo · 1 comment
Owner

Originally created by @vfp9 on GitHub (Apr 12, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5413

What would you like to see?

Propose adding "Priority Document Retrieval" to RAG: allows users to specify critical documents (e.g., large manuals) that must be included in search results. By splitting the retrieval quota (reserving slots for priority documents), it guarantees these documents are always consulted while retaining flexibility for other documents. This solves the problem where pinning is infeasible for large docs and vector search may miss critical documents.

Originally created by @vfp9 on GitHub (Apr 12, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5413 ### What would you like to see? Propose adding "Priority Document Retrieval" to RAG: allows users to specify critical documents (e.g., large manuals) that must be included in search results. By splitting the retrieval quota (reserving slots for priority documents), it guarantees these documents are always consulted while retaining flexibility for other documents. This solves the problem where pinning is infeasible for large docs and vector search may miss critical documents.
yindo added the enhancementfeature request labels 2026-06-05 14:51:52 -04:00
Author
Owner

@akhils24 commented on GitHub (May 7, 2026):

i am facing the same issue here , i am handling regualtion documents so the documents get updated very fastly , when i upload the new updated one , i need a priority retrieval so to include the these new documents along with the older ones in rag , i am currently using lightrag

<!-- gh-comment-id:4394604514 --> @akhils24 commented on GitHub (May 7, 2026): i am facing the same issue here , i am handling regualtion documents so the documents get updated very fastly , when i upload the new updated one , i need a priority retrieval so to include the these new documents along with the older ones in rag , i am currently using lightrag
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5076