deep-searcher
Route DeepSearcher workflows for provider setup, data ingestion, RAG querying, CLI and service operation, and evaluation.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- deep-searcher
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route DeepSearcher workflows for provider setup, data ingestion, RAG querying, CLI and service operation, and evaluation.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/installation-and-compatibility.md2.1 KB
- 参考文档references/repo-provenance.md1.4 KB
- 参考文档references/repo-routing-metadata.json499 B
- 参考文档references/troubleshooting.md2.8 KB
- 脚本scripts/check_deepsearcher_environment.py6.1 KB
03 SKILL.md 正文
DeepSearcher
Use this repo skill when a task mentions the DeepSearcher package, its deepsearcher console command, document loading, website crawling, retrieval-augmented querying, the HTTP service, or the evaluation workflow. The skill is split into focused sub-skills so future agents can jump straight to the right workflow without reopening the original checkout.
Start here
| User intent | Read |
|---|---|
| Pick LLM, embedding, loader, crawler, or vector DB providers; diagnose missing SDKs or credentials | sub-skills/provider-configuration/SKILL.md |
| Load local files/directories or websites into a collection | sub-skills/data-ingestion/SKILL.md |
| Ask questions over loaded data, choose DeepSearch vs ChainOfRAG vs NaiveRAG, or inspect retrieved references | sub-skills/rag-query/SKILL.md |
Use the deepsearcher CLI or the bundled FastAPI service helper |
sub-skills/cli-and-service/SKILL.md |
| Validate or run the 2WikiMultiHopQA retrieval evaluation workflow | sub-skills/evaluation/SKILL.md |
Package facts to keep in mind
- Distribution:
deepsearcher. - Version inspected for this skill:
0.0.2. - Import module:
deepsearcher. - Console script:
deepsearcher = deepsearcher.cli:main. - Python requirement from package metadata:
>=3.10. - The default configuration constructs providers during
init_config(config), so provider and vector DB readiness matter even before query/load workflows run. - The inspected default config uses OpenAI, OpenAIEmbedding, PDFLoader, FireCrawlCrawler, and Milvus with a local
./milvus.dbURI.
Install and sanity check
-
Install the package in an environment with Python 3.10+:
pip install deepsearcher -
For this checkout's inspected default local stack, also ensure a Milvus Lite-compatible set and a FireCrawl version that exports
ScrapeOptions:pip install "pymilvus==2.5.8" "milvus-lite==2.5.1" "setuptools<81" "firecrawl-py==2.16.5"These pins were needed in the inspected environment to keep the default Milvus/FireCrawl paths usable.
-
Run the bundled environment check before deeper work:
python scripts/check_deepsearcher_environment.pyAdd
--check-cli-helpif you want a temp-cwd CLI probe with a dummy OpenAI key. -
If you only need to verify the installed package identity, the helper's version/import output is enough. If the installed package is missing optional provider SDKs, route to the provider sub-skill before assuming the repo skill is incomplete.
How to route requests
- Configuration, provider names, credentials, and optional extras:
provider-configuration. - Loading files, crawling websites, chunking, and collection creation:
data-ingestion. - Querying loaded data and interpreting references:
rag-query. - CLI help,
deepsearcher load/query, FastAPI endpoints, and deployment checks:cli-and-service. - 2WikiMultiHopQA recall evaluation and report outputs:
evaluation.
Cross-cutting cautions
init_config(config)creates every configured provider, not just the one you care about. A bad default provider can fail before the workflow begins.- The default local Milvus URI is relative to the current working directory, so repeated runs in the same directory can lock
./milvus.db. - CLI help and service startup can expose provider initialization problems early; use the dedicated CLI/service sub-skill for those failure modes.
- Do not point future agents back to the original repository checkout. Read the bundled references and scripts in this skill tree instead.
Skill metadata for future refreshes
- Read references/repo-provenance.md when checking whether this skill still matches the current checkout.
- Use references/repo-routing-metadata.json as the structured router metadata consumed by the managed repo-skill importer.
- Read references/installation-and-compatibility.md and references/troubleshooting.md when the default install or import path fails.
- Run scripts/check_deepsearcher_environment.py for a read-only environment sanity check before deeper routing.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).