data-ingestion
Load local files, directories, and websites into DeepSearcher collections while validating inputs, loader choices, chunking, and vector database implications.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-ingestion
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Load local files, directories, and websites into DeepSearcher collections while validating inputs, loader choices, chunking, and vector database implications.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/data-formats-and-chunking.md7.2 KB
- 参考文档references/local-loading.md6.8 KB
- 参考文档references/troubleshooting.md7.9 KB
- 参考文档references/web-loading.md6.3 KB
- 脚本scripts/validate_ingestion_inputs.py13.3 KB
03 SKILL.md 正文
Data Ingestion
Use this sub-skill when the user needs to load documents or web pages into a DeepSearcher collection, choose an ingestion loader or crawler, tune chunking and batching, prevent collection overwrite mistakes, or validate ingestion inputs before indexing.
Prefer DeepSearcher's Python APIs for ingestion workflows:
- Local files and directories:
deepsearcher.offline_loading.load_from_local_files(...) - Websites and web-readable documents:
deepsearcher.offline_loading.load_from_website(...) - Configuration:
deepsearcher.configuration.Configurationanddeepsearcher.configuration.init_config(...)
For command-line deepsearcher load ... syntax, route to cli-and-service. For provider credentials and model/provider selection, route to provider-configuration. For querying or retrieval after ingestion, route to rag-query. For evaluation dataset loading, route to evaluation.
Fast Routing
| User intent | Read |
|---|---|
| Load PDFs, Markdown, text, JSON/JSONL, or a directory | references/local-loading.md |
| Crawl or scrape websites into a collection | references/web-loading.md |
| Pick PDF/Text/JSON/Unstructured/Docling loaders or tune chunks | references/data-formats-and-chunking.md |
| Diagnose missing files, empty chunks, FireCrawl key errors, Milvus Lite locks, or version incompatibilities | references/troubleshooting.md |
| Validate paths, URLs, chunk parameters, and collection-name normalization without indexing | scripts/validate_ingestion_inputs.py |
Operating Checklist
- Confirm the ingestion source type: local path(s), directory, URL(s), or a mix that should be split into separate local and web ingestion calls.
- Confirm the intended collection name and overwrite policy. For local loading, names are normalized by replacing spaces and hyphens with underscores; set
force_new_collection=Trueonly when the existing collection should be dropped. - Choose the configured file loader or web crawler before calling
init_config(config). Do not initialize configuration just to validate user input. - Validate local paths, URL shape, chunk parameters, and optional JSON text key with the bundled helper when practical. The helper performs no indexing, no network calls, and no provider initialization.
- Initialize DeepSearcher only after credentials, optional dependencies, and vector DB readiness are accounted for.
- Load data, then route post-load search, retrieval, answer generation, and token accounting to
rag-query.
Minimal API Pattern
from deepsearcher.configuration import Configuration, init_config
from deepsearcher.offline_loading import load_from_local_files
config = Configuration()
config.set_provider_config("file_loader", "PDFLoader", {})
config.set_provider_config("vector_db", "Milvus", {"uri": "./milvus.db", "token": ""})
init_config(config)
load_from_local_files(
paths_or_directory=["docs/guide.pdf", "notes/summary.md", "notes/plain.txt"],
collection_name="project_knowledge",
collection_description="Project PDFs, Markdown, and text notes",
force_new_collection=False,
chunk_size=1500,
chunk_overlap=100,
batch_size=256,
)
Treat credentialed, networked, remote-service, and expensive ingestion as optional unless the user explicitly asks to run it and the required provider configuration is ready.
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).