协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
sparse-encoder-search【开发与工程】Use SparseEncoder for SPLADE-style sparse embeddings, sparse similarity/search, sparsity diagnostics, and optional sparse search-service integration in sentence-transformers.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about SparseEncoder, SPLADE-style sparse embeddings, lexical expansion, sparse similarity, sparse IR evaluation, sparse losses, or sparse search backends such as Qdrant, Elasticsearch, OpenSearch, or Seismic.
references/api-reference.md and the safe CLI in scripts/sparse_encoder_smoke.py.references/workflows.md.references/troubleshooting.md.SentenceTransformer semantic search utilities, route to ../retrieval-and-utilities/SKILL.md; use this sub-skill only for sparse embeddings and sparse search adapters.../evaluation-and-training/SKILL.md; keep this sub-skill focused on sparse-specific losses, evaluators, and diagnostics.../backend-export-optimization/SKILL.md.Run help without loading a model:
python scripts/sparse_encoder_smoke.py --help
Run a local/cached model only when the model files are already available or downloads are allowed:
python scripts/sparse_encoder_smoke.py --model naver/splade-cocondenser-ensembledistil --sentences "weather today" "sunny outside" --max-active-dims 32
Add --local-files-only in offline environments.
SparseEncoder.encode_query and SparseEncoder.encode_document for information retrieval when the model has query/document prompts or routes.SparseEncoder.encode for generic sparse embedding and similarity experiments.convert_to_sparse_tensor=False only when dense tensors are required by downstream code.max_active_dims to cap non-zero dimensions when memory, latency, or service payload size is too high.SparseEncoder.sparsity before and after tuning or training; sparse models should usually have very high sparsity and a manageable number of active dimensions.