본문으로 건너뛰기
cccskills
무료GitHub에 공개

bm25s

Use bm25s for sparse lexical retrieval: tokenize text, build and query BM25 indexes, persist or memory-map them, run the high-level or bm25 CLI workflows, and diagnose optional acceleration and integrations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Hugging Face
설치 방법 보기

포함된 파일(38)

  • SKILL.md4.3 KB
  • references/repo-provenance.md1.8 KB
  • references/repo-routing-metadata.json320 B
  • references/troubleshooting.md4.6 KB
  • scripts/check_environment.py2.5 KB
  • sub-skills/acceleration-and-selection/references/api-reference.md6.3 KB
  • sub-skills/acceleration-and-selection/references/numba-workflows.md5.7 KB
  • sub-skills/acceleration-and-selection/references/troubleshooting.md7.5 KB
  • sub-skills/acceleration-and-selection/scripts/numba_smoke.py4.9 KB
  • sub-skills/acceleration-and-selection/SKILL.md6.1 KB
  • sub-skills/core-indexing-retrieval/references/api-reference.md9.5 KB
  • sub-skills/core-indexing-retrieval/references/troubleshooting.md7.1 KB
  • sub-skills/core-indexing-retrieval/references/workflows.md6.0 KB
  • sub-skills/core-indexing-retrieval/scripts/metadata_retrieval.py2.4 KB
  • sub-skills/core-indexing-retrieval/SKILL.md7.9 KB
  • sub-skills/high-level-and-cli/references/api-reference.md6.5 KB
  • sub-skills/high-level-and-cli/references/cli-reference.md5.0 KB
  • sub-skills/high-level-and-cli/references/troubleshooting.md6.3 KB
  • sub-skills/high-level-and-cli/scripts/simple_file_search.py2.6 KB
  • sub-skills/high-level-and-cli/SKILL.md6.6 KB
  • sub-skills/hub-mcp-and-evaluation/references/evaluation.md6.5 KB
  • sub-skills/hub-mcp-and-evaluation/references/huggingface.md6.7 KB
  • sub-skills/hub-mcp-and-evaluation/references/mcp.md5.3 KB
  • sub-skills/hub-mcp-and-evaluation/references/troubleshooting.md7.8 KB
  • sub-skills/hub-mcp-and-evaluation/scripts/create_mcp_fixture.py2.4 KB
  • sub-skills/hub-mcp-and-evaluation/scripts/verify_mcp_fixture.py4.8 KB
  • sub-skills/hub-mcp-and-evaluation/SKILL.md7.0 KB
  • sub-skills/persistence-and-corpus-io/references/file-format-and-api.md7.0 KB
  • sub-skills/persistence-and-corpus-io/references/large-corpus.md5.3 KB
  • sub-skills/persistence-and-corpus-io/references/troubleshooting.md6.2 KB
  • sub-skills/persistence-and-corpus-io/scripts/save_reload_smoke.py2.8 KB
  • sub-skills/persistence-and-corpus-io/SKILL.md7.1 KB
  • sub-skills/tokenization-and-stopwords/references/api-reference.md7.2 KB
  • sub-skills/tokenization-and-stopwords/references/stemming-and-stopwords.md5.1 KB
  • sub-skills/tokenization-and-stopwords/references/streaming-and-parallelism.md5.3 KB
  • sub-skills/tokenization-and-stopwords/references/troubleshooting.md5.9 KB
  • sub-skills/tokenization-and-stopwords/scripts/tokenizer_persistence_smoke.py2.5 KB
  • sub-skills/tokenization-and-stopwords/SKILL.md6.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

bm25s

bm25s is a NumPy-backed, eager sparse BM25 implementation for lexical search. Use this root as the routing map; keep detailed signatures, file contracts, CLI flags, and troubleshooting in the linked sub-skills.

Install and verify

Start with the smallest dependency set that matches the route:

pip install bm25s
python -c "import bm25s; print(bm25s.__version__)"

Optional extras are independent choices: bm25s[core] adds progress/JSON, PyStemmer, and Numba; bm25s[indexing] adds SciPy CSC construction; bm25s[selection] adds CPU JAX top-k; bm25s[hf] adds Hugging Face Hub; bm25s[mcp] adds MCP; bm25s[cli] adds Rich; and bm25s[evaluation] adds pytrec_eval. The full extra combines the package extras but is not required for ordinary CPU retrieval. Check optional imports with scripts/check_environment.py.

The required operating path is CPU/NumPy. Numba, SciPy, and JAX are optional CPU choices, not CUDA claims. Hub operations require network/credentials and MCP is a local or separately deployed service; do not perform remote writes or start a listener without explicit user intent.

Choose a route

  • Construct or query a low-level BM25 index, score variants, return IDs or metadata, or apply a mask: read core-indexing-retrieval.
  • Tokenize corpus and queries, configure stopwords/stemming, share a vocabulary, stream text, or persist tokenizer state: read tokenization-and-stopwords.
  • Save/load an index, restore a JSONL corpus, use mmap, inspect files, or plan a large-index workflow: read persistence-and-corpus-io.
  • Load CSV/TXT/JSON/JSONL, use BM25Search, or run bm25 index/search: read high-level-and-cli.
  • Choose Numba, SciPy, NumPy/JAX top-k, compile JIT code, or diagnose an optional backend: read acceleration-and-selection.
  • Exchange indexes with Hugging Face, expose a local index through MCP, or compute bounded BEIR-style metrics: read hub-mcp-and-evaluation.

Common low-level contract

A normal low-level flow is: produce one corpus vocabulary with bm25s.tokenize(...) or Tokenizer, call BM25.index(...), tokenize queries with the same vocabulary strategy, and call retrieve(..., k=...). The default result is a Results named tuple with two-dimensional .documents and .scores arrays. Without a display corpus, document values are positional indices; a supplied corpus must have exactly the indexed document count and order.

Use show_progress=False for bounded automation. Keep k no larger than the number of documents in low-level retrieval; the high-level wrapper instead clamps oversized positive k. Use return_as="documents" only when scores are not needed. Record the model method, vocabulary strategy, result shape, and optional backend in experiment metadata.

Handoff and safety

Route across sub-skills rather than reopening the original package checkout. For a saved index, record the exact directory, filenames, corpus count, mmap, and vocabulary state. For a CLI or Hub task, record the input format, column/key, resolved paths, revision, token/authorization boundary, and result artifact. Keep allow_pickle=False for untrusted indexes, validate corpus alignment before document-returning retrieval, and stop on missing or incompatible optional dependencies instead of silently changing the experiment.

Read references/troubleshooting.md for cross-cutting install/import, data alignment, optional dependency, CLI, and integration failures. Read references/repo-provenance.md before deciding whether this skill matches a changed repository; refresh the skill when the recorded commit, package entry points, or major evidence paths no longer match.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고