技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-ingestion【数据与研究】Load local files, directories, and websites into DeepSearcher collections while validating inputs, loader choices, chunking, and vector database implications.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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:
deepsearcher.offline_loading.load_from_local_files(...)deepsearcher.offline_loading.load_from_website(...)deepsearcher.configuration.Configuration and deepsearcher.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.
| 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 |
force_new_collection=True only when the existing collection should be dropped.init_config(config). Do not initialize configuration just to validate user input.rag-query.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.