协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
encoding-retrieval【开发与工程】Encode Tevatron queries and corpora, run FAISS retrieval, merge shard rankings, and plan retrieval evaluation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a Tevatron workflow needs embedding files, FAISS search, shard-result merging, or a BEIR/MS MARCO/TREC evaluation plan after data is already in Tevatron-compatible query/corpus form.
This sub-skill owns:
python -m tevatron.retriever.driver.encode.python -m tevatron.retriever.driver.vllm_encode when the vLLM stack is installed and the model supports embedding mode.This sub-skill does not create dataset schemas, train retriever checkpoints, mine hard negatives, or run cross-encoder reranking. Use sibling sub-skills for data preparation, training, multimodal/LLM-specific setup, or reranking.
--encode_is_query; omit it for corpus/passages.--dataset_number_of_shards and --dataset_shard_index for large corpus fan-out; do not rely on Tevatron multi-GPU encoding because the standard encoder guards against multi-GPU evaluation.--save_text for downstream evaluation or shard merging; omit it only when a Python consumer explicitly expects the ranking pickle (scores, passage_ids).faiss, torch, vllm, CUDA, Pyserini, benchmark datasets, and model downloads as optional runtime requirements, not base Tevatron import guarantees.scripts/reduce_results.py: self-contained deterministic reducer for per-shard text rankings shaped as qid pid score.scripts/tiny_faiss_search_smoke.py: synthetic FAISS smoke test that skips with guidance when optional FAISS/Tevatron search dependencies are unavailable.