计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
text2vec【效率与协作】Operate text2vec for text embeddings, similarity search, model fine-tuning, evaluation, and serving without reopening the source repository.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves the text2vec Python package, Chinese or multilingual sentence embeddings, text similarity, BM25 fallback retrieval, CoSENT/Sentence-BERT/BGE fine-tuning, or text2vec service templates.
text2vec and run a no-download import check:python -c "from text2vec import SentenceModel, Similarity, BM25; print('text2vec ok')"
text2vec -h
python scripts/check_text2vec_env.py
Read references/installation.md for optional dependency and backend decisions. Read references/troubleshooting.md for cross-cutting install, model download, CUDA, data, CLI, and service failures.
| User task | Read |
|---|---|
Generate sentence embeddings, use SentenceModel, run the text2vec CLI, choose EncoderType, preserve batch output rows, use Word2Vec, or understand NGram caveats | sub-skills/embeddings/SKILL.md |
Score sentence pairs, use Similarity, call cos_sim / semantic_search, run dense top-k retrieval, or use BM25 as a no-network lexical fallback | sub-skills/similarity-search/SKILL.md |
Validate fine-tuning data, construct CoSENT/Sentence-BERT/BERT-match/BGE training commands, understand train_model parameters, or handle multi-GPU/bf16 training boundaries | sub-skills/training-finetuning/SKILL.md |
| Choose among released models, interpret Spearman/QPS tables, summarize local score files, or plan MTEB/C-MTEB-style evaluation without running large downloads by default | sub-skills/evaluation-benchmarks/SKILL.md |
| Build a FastAPI endpoint, compare FastAPI/Jina/Gradio service patterns, or avoid blocking forever-server verification | sub-skills/serving-deployment/SKILL.md |
import text2vec.SentenceModel, SBert, EncoderType, Word2Vec, BM25, Similarity, SimilarityType, EmbeddingType, cos_sim, semantic_search.CosentModel, SentenceBertModel, BertMatchModel, BgeModel, plus text-matching and BGE dataset loaders.text2vec, with required --input_file and optional --output_file, --model_type, --model_name, --encoder_type, --batch_size, --max_seq_length, --chunk_size, --device, --show_progress_bar, --normalize_embeddings, and --multi_gpu.gensim and either a local vector file or the built-in Tencent lightweight vector download.torch note, optional dependencies, backend choices, and environment checks.cos_sim, and semantic_search.