~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
docs(rag): document documents pagination contract (#7642)
Chanhyo Jungc90d50e0b7db
diff --git a/changelog.d/7603.misc.md b/changelog.d/7603.misc.mdnew file mode 100644index 0000000000..cddda5475b--- /dev/null+++ b/changelog.d/7603.misc.md@@ -0,0 +1 @@+Document the existing `page` and `per_page` defaults, non-numeric input fallbacks, and bounds for `/library/api/rag/documents`.diff --git a/src/local_deep_research/web/routers/rag.py b/src/local_deep_research/web/routers/rag.pyindex cceb64de47..fb11993207 100644--- a/src/local_deep_research/web/routers/rag.py+++ b/src/local_deep_research/web/routers/rag.py@@ -1760,7 +1760,14 @@ async def configure_rag(def get_documents(request: Request, username: Annotated[str, Depends(require_auth)]):- """Get library documents with their RAG status for the default Library collection (paginated)."""+ """Get library documents with their RAG status for the default Library collection (paginated).++ Query parameters:+ page (int): 1-indexed page number, clamped to 1-10000 (default 1;+ non-numeric input falls back to 1).+ per_page (int): rows per page, clamped to 1-100 (default 50;+ non-numeric input falls back to 50).+ """from ...database.session_context import get_user_db_sessionfrom ...database.library_init import get_default_library_id