技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
evaluation【数据与研究】Evaluate FlagEmbedding embedders and optional rerankers on local retrieval data or supported benchmarks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs FlagEmbedding evaluation commands, custom retrieval JSONL preparation, metric/output selection, or benchmark routing for MTEB, BEIR, MSMARCO, MIRACL, MLDR, MKQA, AIR-Bench, or BRIGHT.
Do not use this sub-skill for low-level embedder or reranker API details; route those to sibling inference. Do not use it for training or fine-tuning data preparation; route those to sibling fine-tuning. Broad package install, backend, or import troubleshooting belongs to the root troubleshooting reference.
corpus.jsonl, <split>_queries.jsonl, and <split>_qrels.jsonl, prefer python -m FlagEmbedding.evaluation.custom.--dataset_dir, --output_dir, --corpus_embd_save_dir, and --eval_output_path. The custom loader reports no dataset names, so do not use --dataset_names for this case.references/cli-reference.md and confirm network, model-cache, and compute approval before running.scripts/create_tiny_retrieval_dataset.py before building a model command.faiss and pytrec_eval; the focused CPU dependency set is faiss-cpu plus pytrec_eval.references/data-formats.md. For custom evaluation, use the generic IR schema with corpus id, optional title, text; query id, text; qrels qid, docid, relevance.references/cli-reference.md. Always make output paths explicit: --output_dir, --eval_output_path, and, when reusing corpus embeddings, --corpus_embd_save_dir.--ignore_identical_ids deliberately. Use it when query ids and document ids share an id namespace and self-hits are invalid; leave it false for datasets where identical ids are meaningful or when unsure.--reranker_name_or_path, choose --reranker_model_class for custom checkpoints, and keep --rerank_top_k no larger than --search_top_k.--output_dir and the aggregate file at --eval_output_path.python -m FlagEmbedding.evaluation.custom --help.CustomEvalDataLoader.available_dataset_names() returns []; available_splits() returns ["test"].python scripts/create_tiny_retrieval_dataset.py --help and a run that writes corpus.jsonl, test_queries.jsonl, and test_qrels.jsonl.references/cli-reference.md: module commands, shared arguments, and benchmark-specific notes.references/data-formats.md: local JSONL schema and output structure.references/troubleshooting.md: dependency, layout, cache, metrics, reranker, and identical-id issues.scripts/create_tiny_retrieval_dataset.py: tiny self-contained custom retrieval fixture generator.