# Repository Briefing: zilliztech/deep-searcher
> Source: https://repoforai.com/repo/zilliztech/deep-searcher (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/zilliztech/deep-searcher
- **Official Docs / Website**: https://zilliztech.github.io/deep-searcher/
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: B+ (66/100 · Maintenance 20/35 · Adoption 20/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 8,414 ★ total (+2 24h / +7 7d) · 823 forks
- **Topics**: `agent`, `agentic-rag`, `claude`, `deep-research`, `deepseek`, `deepseek-r1`, `grok`, `grok3`, `llama4`, `llm`, `milvus`, `openai`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Research workflow: Separate ingestion from retrieval, reasoning, and report generation over indexed documents.
- Provider configuration: Swap LLM, embedding, vector store, file loader, and crawler settings through Configuration.set_provider_config.
- Vector storage: Milvus is the concrete adapter, with a local ./milvus.db example and Milvus or Zilliz Cloud as deployment choices.
- Ingestion: Load local PDF or text files and optionally URLs; the CLI accepts --collection_name and --collection_desc.
- Integration: The Python SDK, deepsearcher load/query CLI, and FastAPI service on port 8000 cover embedded, scripted, and service use.
- Container operations: The Dockerfile uses Python 3.10 and uv, enables CORS at startup, and probes /docs rather than a full research query.
```

## Quick Start / Clone
```bash
pip install deepsearcher
```
