Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

zvec

БесплатноБез исполняемых скриптовНе проверен

Zvec in-process vector database. Covers collections, indexing, embeddings, reranking, and persistence. Use when embedding Zvec into applications or tuning…

itechmeatот itechmeat★ 24 звезды на GitHub

Об этом скилле

Zvec

Zvec is a lightweight, in-process vector database meant to be embedded into applications ("SQLite for vectors").

Quick navigation

  • Overview: references/overview.md
  • Concepts: references/concepts.md
  • Quickstart (first operations): references/quickstart.md
  • Installation (only if needed): references/installation.md
  • Index types & quantization: references/indexing.md
  • Embedding pipelines: references/embedding.md
  • Reranking pipelines: references/reranker.md
  • Data modeling & collections: references/collections.md
  • CRUD / search operations: references/data-operations.md
  • Chinese FTS dictionaries (Jieba): references/fts-chinese-dictionaries.md
  • Configuration & persistence: references/configuration.md

Operator recipes (high signal)

  • Minimal “embed Zvec” checklist

    • (Optional) Configure globals once at startup via zvec.init(...) (logging, query_threads).
    • Create a collection on disk with create_and_open(path=..., schema=..., option=...).
    • Ingest documents as Doc(id=..., fields=..., vectors=...) via insert() or upsert().
    • Query via collection.query(vectors=VectorQuery(...), topk=...).
    • Call collection.optimize() periodically after heavy ingestion.
  • Bulk ingest + keep query latency stable

    • Prefer batched insert() / upsert().
    • Monitor collection.stats and run optimize() when flat buffers grow.
  • Hybrid retrieval patterns

    • Filter-only: collection.query(filter=..., topk=...).
    • Vector + filter: pass both vectors=... and filter=....
    • Multi-vector fusion: pass multiple VectorQuery items and rerank using WeightedReRanker or RRF.
  • Memory-sensitive ANN on x86_64

    • Prefer HNSW-RaBitQ when HNSW-quality recall matters but memory is the limiting factor.
    • Start with the documented defaults (total_bits=7, num_clusters=16) and tune query-time ef before changing quantization bits.
  • Safe evolution of live collections

    • Add/drop/alter scalar columns via add_column(), drop_column(), alter_column().
    • Manage indexes via create_index() / drop_index() (scalar). Vector indexes cannot be dropped.
  • Chinese full-text search

    • The default Jieba dictionary and HMM model are embedded in the native libraries; nothing to install.
    • Override the main dictionary per FTS field with extra_params.jieba_dict_dir, or set ZVEC_JIEBA_DICT_DIR; field configuration wins over the environment variable.
    • Add domain vocabulary with user_dict_path; custom user dictionaries stay isolated between tokenizer instances.
    • The global init(jieba_dict_dir=...) configuration was removed in 0.8.0 — see references/fts-chinese-dictionaries.md for the migration.

Critical prohibitions

  • Do not mirror vendor docs verbatim; summarize in your own words.
  • Do not assume a client/server deployment model: Zvec is in-process.
  • Do not add project-specific paths, secrets, or environment assumptions.
  • Do not choose HNSW-RaBitQ on unsupported hardware; it stays limited to x86_64 with AVX2 or better (Windows x86_64 included since 0.8.0).
  • Do not call init(jieba_dict_dir=...) or the set_default_jieba_dict_dir() / get_default_jieba_dict_dir() helpers — removed in 0.8.0. Configure the FTS field or use ZVEC_JIEBA_DICT_DIR.

Release Highlights (0.8.0)

  • Jieba global dictionary configuration removed (breaking). init(jieba_dict_dir=...), set_default_jieba_dict_dir(), get_default_jieba_dict_dir() and the matching C/C++ global-directory APIs are gone; the default dictionary and HMM model are embedded in the native libraries. Override the main dictionary per field with FtsIndexParam.extra_params.jieba_dict_dir or the ZVEC_JIEBA_DICT_DIR env var (field configuration wins); add business vocabulary with user_dict_path. Migration: references/fts-chinese-dictionaries.md.
  • Embedded Chinese FTS dictionary. The default Jieba dictionary and HMM model ship as LZ4-compressed resources in the Python wheels and native SDKs. Parsed defaults are shared across tokenizer instances, while custom user dictionaries stay isolated between them.
  • Uniform quantization wired into collections. Uniform UINT4 joins UINT7/UINT8, and all three are now connected to the database layer and HNSW. A shared quantization range removes per-datapoint score reconstruction at query time; sharing min/max across all indexed points increases quantization error and lowers recall.
  • Turbo PQ and FastScan. PQ-INT4 plus a 4-bit PQ FastScan implementation with packed block scanning, SIMD and scalar distance kernels, and precomputed residual distance tables for IVF.
  • OPQ preprocessing. Optimized Product Quantization rotation in the Turbo framework; training and serialization logic is consolidated across the PQ quantizers.
  • Shared page cache for vector indexes. HNSW, IVF and DiskANN read through one buffer-backed cache with pinned reads and batched page access; DiskANN falls back to direct I/O under ca
Полный SKILL.md на GitHub

Установить zvec в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/collections.mdreferences/concepts.mdreferences/configuration.mdreferences/data-operations.mdreferences/embedding.mdreferences/fts-chinese-dictionaries.mdreferences/indexing.mdreferences/installation.mdreferences/overview.mdreferences/quickstart.mdreferences/reranker.md

FAQ

Что делает скилл zvec?

Zvec in-process vector database. Covers collections, indexing, embeddings, reranking, and persistence. Use when embedding Zvec into applications or tuning retrieval/storage behavior. Keywords: Zvec, HNSW-RaBitQ, vector database, ANN.

Как установить скилл zvec?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл zvec запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить zvec с