executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
hnswlibUse hnswlib 0.9.0 for CPU approximate nearest-neighbor search through its Python bindings or C++11 header-only API, including indexing, filtering, persistence, mutation, and recall checks.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this repo skill when a task needs hnswlib for approximate nearest-neighbor
(ANN) indexing, querying, filtering, persistence, updates, deletion/replacement,
parameter tuning, or exact-recall comparison. The source contract is hnswlib
0.9.0. It exposes a CPU-native Python extension and a header-only C++11 API; it
does not expose CUDA, ROCm, MPS, or a service/CLI.
hnswlib.Index, hnswlib.BFIndex, knn_query, Python
callbacks, pickle, or Python persistence, read
sub-skills/python-bindings/SKILL.md.HierarchicalNSW, BruteforceSearch, searchKnn, filters,
stop conditions, multivector/epsilon search, CMake, or thread ownership,
read sub-skills/cpp-header-api/SKILL.md.M, ef_construction, ef, capacity, or a recall target.l2, ip, or cosine), vector dimension, capacity,
label type/policy, query k, target recall, and whether deletion, replacement,
filtering, resizing, or persistence is required.pip install hnswlib) when a compatible
wheel exists. A source build needs NumPy, pybind11, a C++11 compiler, and the
platform's native threading/OpenMP handling; use the installation reference.k <= the eligible live population and set ef >= k. ANN quality and
speed depend on both construction and search parameters; validate material
recall claims against BFIndex or another exact oracle.ef again after file-based loading because file
persistence resets it to the default; pickle preserves Python index state.Python users should run the relevant bundled helper with --help and then a
small default invocation from an environment where hnswlib is installed:
sub-skills/python-bindings/scripts/python_lifecycle_smoke.py,
python_filter_smoke.py, python_mutation_smoke.py, or python_pickle_smoke.py.
C++ users should run
sub-skills/cpp-header-api/scripts/run_cpp_smoke.sh --help, then provide an
include root containing hnswlib/hnswlib.h.
Read references/repo-provenance.md when checking whether this skill matches a repository revision. Read references/repo-routing-metadata.json only as structured routing metadata; it is not an API manual.