Turbovec

From akillness/jeo-skills · View interactive version

Turbovec is an AI agent skill from the GitHub repository akillness/jeo-skills. Use the RyanCodrai/turbovec project when integrating its in-process Python or Rust TurboQuant vector index: create an index, quantize/search vectors, persist/load a file, apply ID filters, or choose its framework adapters. Trigger on turbovec or TurboQuantIndex. Route hosted vector databases and rep

How to use this skill

Skill file

turbovec operator

Instructions

  1. Check the actual checkout and source pin. From the jeo-skills repository root run python3 .agent-skills/turbovec/scripts/preflight.py --repo /absolute/upstream --json; from an installed copy, use its scripts/preflight.py. No --repo means inventory only. The helper checks selected pinned-file hashes, not Git HEAD, the entire source tree, dependency installation, or execution. See pinned source notes.
  2. Choose the library surface. Python imports TurboQuantIndex or IdMapIndex from turbovec; Rust uses the turbovec crate. This is an in-process vector index that linearly scans its compressed vectors. It does not provide a server, replication, tenancy, or distributed index.
  3. Validate data shape and quality needs. Confirm vector dimension, row-major float32 input for Python, bit width (2 or 4), score semantics (inner product; normalize for cosine), recall target, and whether stable IDs are needed. Compare recall on representative local data before adopting quantization.
  4. Get approval before effects. Ask before installing the package/toolchain, downloading models or vector datasets, reading/embedding private source data, using paid/remote embeddings, writing/syncing/loading an index file, rebuilding or deleting an index, or starting an API/service around it. Keep file paths and credentials out of public logs. sync(path) persists data and later calls update it.
  5. Check the pinned API and verify round-trip. After approval, inspect the checkout's Python/Rust API docs and package help. Start with a small fixture, verify search results and persistence/load, and measure memory, recall, and latency for the target machine. Do not infer production service readiness from an in-memory library smoke test.

Examples

# Offline provenance check; absolute, non-symlink source checkout.
python3 .agent-skills/turbovec/scripts/preflight.py --repo /work/turbovec --json

# Only after install/data/file-write approval:
pip install turbovec
python - <<'PY'
import numpy as np
from turbovec import TurboQuantIndex
x = np.load("vectors.npy").astype(np.float32)
index = TurboQuantIndex(dim=x.shape[1], bit_width=4)
index.add(x)
scores, slots = index.search(x[:1], k=5)
index.sync("index.tv")
PY

Best practices

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.