인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

index-selection-and-search

index-selection-and-search

Guides dense-vector metric selection, index construction, approximate search tuning, and CPU search validation in Faiss.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: index-selection-and-search description: "Guides dense-vector metric selection, index construction, approximate search tuning, and CPU search validation in Faiss." disable-model-invocation: true metadata: disco-role: operating license: MIT

Index selection and search

Use this route when the task is to choose or operate a CPU dense-vector index, compare exact and approximate nearest-neighbor search, or diagnose distance semantics, result contracts, search tuning, or OpenMP behavior. It covers float32 dense vectors, L2, inner product, cosine-as-normalized-inner-product, Flat, IVF-Flat, and graph indexes.

Route the workflow

  1. Normalize the data to a contiguous float32 matrix of shape (n, d) and keep database and query dimensions identical. Read the API contract before calling an index.
  2. Choose the smallest index that meets the latency, recall, and memory target. Use the selection and tuning workflows for the decision, including the 64D memory-conscious factory case.
  3. Build with the lifecycle in the workflow reference: create, train when is_trained is false, add, then search. Validate against an exact Flat baseline before increasing approximation.
  4. Use the bundled deterministic helper for a local CPU smoke check: python path/to/skills/disco/faiss/sub-skills/index-selection-and-search/scripts/smoke_search.py --help. It has no downloads and is safe to run from any working directory.
  5. For malformed arrays, unavailable methods, empty result ranges, or poor recall, follow troubleshooting.

Boundaries

저장한 Skills