zilliztech/deep-searcher
Python research SDK for turning private documents into reports with Milvus-backed RAG
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
DeepSearcher is a Python SDK that separates document ingestion from research queries. deepsearcher.offline_loading exposes local-file and website ingestion. The stack includes pdfplumber for PDF extraction, langchain-text-splitters for chunking, and pymilvus for vector storage and retrieval. The online entry point, deepsearcher.online_query.query, combines retrieval with model-based evaluation, reasoning, and answer or report synthesis rather than stopping at a list of matching passages.
Configuration.set_provider_config selects the LLM, embedding model, vector database, file loader, and crawler independently; this is component-level configurability, not evidence of universal backend compatibility. The manifest maps the deepsearcher executable to deepsearcher.cli:main; main.py exposes a FastAPI service, with Uvicorn listed as a dependency. Keeping ingestion separate lets teams refresh the index without making a document-processing job part of each research request.
Key Capabilities & Differentiators
The ingestion interfaces accept local files such as PDFs and text, and the CLI can target a collection using --collection_name and --collection_desc. Unstructured and Docling are optional loader paths that require additional packages. Website ingestion can bring external sources into the corpus through Firecrawl, Crawl4AI, or Jina; Firecrawl requires credentials, whereas Crawl4AI adds browser setup. Collection selection helps organize a corpus, but it does not establish an access-control boundary.
LLM options include OpenAI, DeepSeek, xAI, Aliyun, and Ollama, with an OpenAI-compatible base_url path illustrated by OpenRouter. Embeddings can use options such as MilvusEmbedding, OpenAIEmbedding, or VoyageEmbedding. Milvus is the concrete vector database adapter: a local ./milvus.db is a practical starting point, while remote Milvus and Zilliz Cloud are options when storage needs to be shared. Switching the embedding model generally calls for re-embedding the corpus rather than mixing incompatible vectors in one index.
Trade-offs & Limitations
The adoption question is whether report synthesis warrants more model and retrieval work than a single-pass RAG pipeline. DeepSearcher gives teams a research-oriented query entry point without requiring them to assemble that flow in a general toolkit such as LlamaIndex. In return, Milvus is the concrete storage choice, and additional reasoning and retrieval can increase response time and API spend. Small models can also fail to produce the output format the pipeline expects. Test structured-output reliability and report quality on representative documents before committing to a provider.
Self-hosting gives you control of the application process, not automatic data residency. Hosted LLM, embedding, vector, parsing, and crawl services each create a potential external data path. For sensitive deployments, review those paths, keep web ingestion disabled unless needed, and put authentication and collection-level authorization in front of exposed APIs. Apache-2.0 covers the repository code; model licenses and provider terms need their own review.
Hardware & Deployment Guide
Use Python 3.10 or newer; install with pip install deepsearcher or use uv sync from a checkout. python main.py serves FastAPI on localhost:8000 by default, with interactive API documentation at /docs. The Dockerfile uses ghcr.io/astral-sh/uv:python3.10-bookworm-slim, creates /app/data and /app/logs, exposes port 8000, and starts with --enable-cors true. Before publishing it, verify the bind address, restrict CORS as appropriate, and confirm that curl is available for the health check. Persist the actual vector database path; creating a directory in the image does not make its contents durable.
A hosted LLM and embedding backend let the service start on CPU; size it against document parsing, ingestion volume, and concurrent queries. With Ollama or local embeddings, size the model runtime separately and pre-stage model artifacts for offline operation. The /docs probe checks the HTTP surface, not model credentials or retrieval readiness. The package manifest reports 0.0.2; the dated embedding_model entry on 2025-02-20 concerns a GPTCache-based Milvus default embedding model. Pin and test the chosen revision rather than treating that entry as a service release.
Python teams that use or can adopt Milvus and need cross-document research reports rather than just matching passages, with control over model and embedding providers.
Single-pass Q&A is enough, a non-Milvus backend is mandatory, or you need verified air-gapped operation and tenant isolation without additional integration work.
Quick Start & Installation
pip install deepsearcherComparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| deep-searcher ★ | 8.4k | +7 | Python | Apache-2.0 | Python research SDK for turning private documents into reports with Milvus-backe |
| auto-ontology | 19.1k | +3.7k | Python | Apache-2.0 | An ontology framework that grounds agent-generated SQL in reviewed business defi |
| llama_index | 53.1k | +104 | Python | MIT | A modular Python SDK for document ingestion, indexing, and RAG |
| langextract | 39.5k | +85 | Python | Apache-2.0 | Python SDK for extracting structured data with traceable source spans |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/zilliztech/deep-searcher.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about deep-searcher
How do I integrate DeepSearcher into an existing application?
Do I need a GPU, and how should I size the service?
Can we use it commercially and keep sensitive data on-premises?
When should I use it instead of a direct RAG pipeline or LlamaIndex?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy