计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
rag-retrieval【效率与协作】Use RAG-Retrieval for RAG reranker inference plus bundled preparation for embedding, reranker, and ColBERT retrieval-model training workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a user asks about RAG-Retrieval, rag_retrieval, RAG passage reranking, retrieval-model fine-tuning, BGE/BCE reranker scoring, embedding training, reranker distillation, or ColBERT-style late-interaction training.
RAG-Retrieval has two important surfaces:
rag_retrieval package exposes a lightweight reranker inference API centered on Reranker.sub-skills/inference/SKILL.md for Reranker, compute_score, rerank, RankedResults, model type selection, long-document handling, and no-download API checks.sub-skills/embedding-training/SKILL.md for pair/triplet/pair-score JSONL, MRL, training_embedding.yaml, FSDP/DeepSpeed choices, bundled training snapshots, and preflight validation.sub-skills/embedding-training/SKILL.md for teacher text JSONL, float32 memmap shape checks, teacher embedding merge helpers, and distill_embedding.yaml validation.sub-skills/reranker-training/SKILL.md for pointwise/grouped JSONL, loss_type, BERT vs LLM decoder configs, RankNet/listwise losses, and LLM-to-BERT distillation planning.sub-skills/colbert-training/SKILL.md for triplet JSONL, neg_nums, colbert_dim, FSDP layer choices, and the current package ColBERT inference limitation.references/research-benchmarks.md; those scripts are research evidence and usually require external datasets, optional packages, credentials, or long benchmark runs.pip install rag-retrieval
python scripts/check_rag_retrieval_install.py
accelerate.Reranker(model_type="colbert") is not a working installed-package inference path in the inspected version: the mapping name exists, but the available ranker registry contains cross-encoder and LLM rankers only.CorssEncoderRanker; use the public model_type="cross-encoder" route in user-facing code.rerank inputs can return a legacy dict instead of RankedResults; callers should handle that edge case.references/package-overview.md: Project surfaces, dependency notes, public APIs, and bundled training split.references/troubleshooting.md: Cross-cutting install/import, model download, optional dependency, data/config, GPU/backend, and routing failures.references/research-benchmarks.md: MyopicTrap and other benchmark/data-generation evidence that should usually stay reference-only.references/repo-provenance.md: Source commit, package version, evidence paths, and refresh baseline.references/repo-routing-metadata.json: Structured router metadata for managed import.scripts/check_rag_retrieval_install.py: Safe package/import/API surface check.--help output.inference owns installed-package Reranker behavior and result interpretation.embedding-training owns embedding fine-tuning, teacher embedding distillation, MRL, bundled training snapshots, and teacher-array helpers.reranker-training owns BERT/LLM reranker fine-tuning, ranking losses, pointwise/grouped data, bundled training snapshots, and LLM-to-BERT distillation planning.colbert-training owns bundled ColBERT training snapshots and explicitly routes packaged ColBERT inference questions back to the current inference limitation.