~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
{% extends "base.html" %}
{% from "components/help_macros.html" import tooltip, help_panel, help_step, help_tip with context %}
{% block title %}Document Collections - Deep Research System{% endblock %}
{% block extra_head %}
<link rel="stylesheet" href="/static/css/collections.css">
{% endblock %}
{% block content %}
<div class="ldr-rag-manager-container">
<div class="ldr-rag-header">
<h1><i aria-hidden="true" class="fas fa-folder-open"></i> Document Collections</h1>
<p class="ldr-subtitle">Manage your document collections for {{ tooltip("RAG-enabled searches", "Upload your documents, index them, then select a collection as 'search engine' when researching. AI will search YOUR files instead of the web.") }}</p>
</div>
{% include "components/embedding_performance_hint.html" %}
<!-- How Collections Work Help Panel -->
{% call help_panel('collections-how', 'Understanding Document Collections', icon='folder-open', collapsed=true, dismissible=true) %}
<div class="ldr-help-steps">
{{ help_step(1, "Create Collections", "Collections are folders for organizing your documents by topic, project, or any criteria you choose.") }}
{{ help_step(2, "Upload Documents", "Add PDF, TXT, MD, or HTML files. Text is extracted and stored securely in your database.") }}
{{ help_step(3, "Index for Search", "Indexing converts documents into searchable embeddings. This enables semantic search by meaning, not just keywords.") }}
{{ help_step(4, "Use in Research", "Select a collection as your search engine when starting research to search your own documents instead of the web.") }}
</div>
{{ help_tip("<strong>Tip:</strong> The default 'Library' collection automatically contains all documents. Create custom collections for specific topics.") }}
{% endcall %}
<!-- Collections Section -->
<div class="ldr-rag-section">
<div class="ldr-section-header">
<h2><i aria-hidden="true" class="fas fa-folder"></i> My Collections</h2>
<a href="/library/collections/create" id="create-collection-btn" class="ldr-btn-collections ldr-btn-collections-primary">
<i aria-hidden="true" class="fas fa-plus"></i> Create Collection
</a>
<div class="ldr-collection-settings">
<!-- Auto-Index Toggle -->
<label class="ldr-checkbox-label">
<input type="checkbox"
id="auto-index-toggle"
class="ldr-settings-checkbox">
<span><i aria-hidden="true" class="fas fa-magic"></i> {{ tooltip("Auto-index new documents", "When enabled, documents uploaded or downloaded to any collection are automatically indexed for semantic search.") }}</span>
</label>
<!-- Background-Sweep Toggle (scheduled reconciler, #4627).
Hidden until the backend setting is registered (see
loadBackgroundSweepSetting): the wrapper starts hidden and
is only revealed once the GET confirms the setting exists. -->
<label id="background-sweep-toggle-row" class="ldr-checkbox-label" style="display: none;">
<input type="checkbox"
id="background-sweep-toggle"
class="ldr-settings-checkbox"
aria-describedby="background-sweep-disabled-note">
<span><i aria-hidden="true" class="fas fa-clock-rotate-left"></i> {{ tooltip("Index documents in the background (scheduled)", "When enabled, a scheduled background job periodically scans your collections and indexes any documents that weren't indexed immediately (e.g. when the immediate auto-index queue was full). Requires the document scheduler to be enabled. Off by default.") }}
<span id="background-sweep-disabled-note" class="ldr-text-muted" hidden>Enable the document scheduler first.</span>
</span>
</label>
</div>
</div>
<div id="collections-container" class="ldr-collections-grid">
<!-- Collections will be loaded here -->
</div>
<div id="no-collections-message" class="ldr-empty-state" style="display: none;">
<i aria-hidden="true" class="fas fa-folder-open fa-3x"></i>
<p>No collections yet</p>
<p class="ldr-text-muted">Create your first collection to organize your documents</p>
</div>
</div>
</div>
<script defer src="/static/js/collections_manager.js"></script>
{% endblock %}
{% block page_scripts %}
<script defer src="/static/js/embedding_performance_hint.js"></script>
{% endblock %}