计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
ragatouille【效率与协作】Use RAGatouille to train, index, search, rerank, integrate, and export ColBERT-style late-interaction retrieval models in RAG pipelines.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task mentions RAGatouille, RAGPretrainedModel, RAGTrainer, ColBERT indexing/search, RAG reranking, RAGatouille LangChain adapters, or exporting RAGatouille-trained ColBERT checkpoints.
RAGatouille 0.0.9post2 focuses on making ColBERT-style late-interaction retrieval usable from Python. It has four main surfaces:
RAGPretrainedModel;RAGTrainer;python scripts/check_ragatouille_environment.py --json
import ragatouille fails, read references/troubleshooting.md before changing code; RAGatouille 0.0.9post2 has known loose dependency pins.sub-skills/pretrained-indexing-search/SKILL.md for RAGPretrainedModel.from_pretrained, from_index, index, search, add_to_index, delete_from_index, document IDs, metadata, result schemas, and input validation.sub-skills/training-data-finetuning/SKILL.md for raw pair/labeled pair/triplet formats, TrainingDataProcessor, CorpusProcessor, hard negative mining, exported training files, and RAGTrainer.train.sub-skills/index-free-reranking/SKILL.md for rerank, encode, search_encoded_docs, clear_encoded_docs, metadata propagation, and result-shape checks.sub-skills/integrations-export/SKILL.md for LangChain retriever/compressor adapters, LlamaIndex/LlamaHub-style loader patterns, Hugging Face Hub upload planning, and Vespa ONNX export.document_id/metadata filtering matters, or query latency must be optimized.TrainingDataProcessor or the bundled training validator for safe data checks before initializing RAGTrainer, because trainer construction can load model dependencies.Typical user install:
pip install ragatouille
python -c "import ragatouille; print(ragatouille.__version__)"
For this repo version, be prepared to pin a legacy-compatible LangChain line if top-level import fails on langchain.retrievers.document_compressors.base. A known-good inspection combination used langchain==0.1.20 and langchain-core==0.1.53; current environments may need equivalent versions that still expose the legacy retriever/compressor path.
If import then fails through fast_pytorch_kmeans on psutil, install psutil in the active environment. See references/troubleshooting.md for the full decision tree.
references/evidence-summary.md: source files, docs, examples, tests, and installed-package facts distilled into this skill.references/repo-provenance.md: public source snapshot and evidence paths for future staleness checks.references/repo-routing-metadata.json: structured scenario metadata used by DisCo's repo-skills router.references/troubleshooting.md: cross-cutting installation, import, backend, network, and workflow safety guidance.scripts/check_ragatouille_environment.py: safe import/signature/backend checker that does not load models, download checkpoints, train, or upload artifacts.export_to_huggingface_hub during validation unless the user authorizes upload side effects and credentials are configured.if __name__ == "__main__": as recommended by the upstream README.