视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
retrieval-and-rag【文档与办公】Index documents, query document stores, configure retrievers/rankers/joiners/writers/readers, and assemble local or provider-backed Haystack RAG pipelines.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about making Haystack return the right Document objects before generation or reading: document stores, writers, metadata filters, retrievers, rankers, joiners, readers, and RAG pipeline wiring.
InMemoryDocumentStore, write Document objects, choose duplicate policies, or inspect document counts.DocumentWriter, InMemoryBM25Retriever, InMemoryEmbeddingRetriever, FilterRetriever, MultiQueryTextRetriever, MultiQueryEmbeddingRetriever, SentenceWindowRetriever, or AutoMergingRetriever.DocumentJoiner, MetaFieldRanker, LostInTheMiddleRanker, or similarity rankers.Pipeline or AsyncPipeline for RAG, including local smoke tests before adding provider-backed generators.../data-ingestion/SKILL.md.../generation-and-model-components/SKILL.md.../evaluation-and-observability/SKILL.md.../agents-tools-and-hitl/SKILL.md.DocumentWriter(document_store=store, policy=DuplicatePolicy.SKIP|OVERWRITE|FAIL) or store.write_documents(...).{"field": "meta.lang", "operator": "==", "value": "en"} for nested metadata, or simple field names where the store supports them.count_documents(), output length, top document content/id, and score behavior.Run the bundled smoke check from this sub-skill directory to validate a local BM25 RAG skeleton without network credentials:
python scripts/rag_smoke_check.py
If working in the Haystack repository checkout, follow the repository’s Hatch policy for execution, for example:
hatch -e test run python skills/disco/haystack/sub-skills/retrieval-and-rag/scripts/rag_smoke_check.py
references/api-reference.md lists public imports, constructor parameters, run inputs/outputs, and metric-selection guidance.references/workflows.md gives copyable local BM25, embedding, hybrid, multi-query, sentence-window, auto-merging, ranker, reader, and RAG wiring patterns.references/troubleshooting.md maps common import, optional dependency, credential/backend, API misuse, data/config, and workflow failures to checks and fixes.