zvec
БесплатноБез исполняемых скриптовНе проверенZvec in-process vector database. Covers collections, indexing, embeddings, reranking, and persistence. Use when embedding Zvec into applications or tuning…
от 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=...)viainsert()orupsert(). - Query via
collection.query(vectors=VectorQuery(...), topk=...). - Call
collection.optimize()periodically after heavy ingestion.
- (Optional) Configure globals once at startup via
Bulk ingest + keep query latency stable
- Prefer batched
insert()/upsert(). - Monitor
collection.statsand runoptimize()when flat buffers grow.
- Prefer batched
Hybrid retrieval patterns
- Filter-only:
collection.query(filter=..., topk=...). - Vector + filter: pass both
vectors=...andfilter=.... - Multi-vector fusion: pass multiple
VectorQueryitems and rerank usingWeightedReRankeror RRF.
- Filter-only:
Memory-sensitive ANN on x86_64
- Prefer
HNSW-RaBitQwhen HNSW-quality recall matters but memory is the limiting factor. - Start with the documented defaults (
total_bits=7,num_clusters=16) and tune query-timeefbefore changing quantization bits.
- Prefer
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.
- Add/drop/alter scalar columns via
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 setZVEC_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 in0.8.0— seereferences/fts-chinese-dictionaries.mdfor 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-RaBitQon unsupported hardware; it stays limited tox86_64withAVX2or better (Windowsx86_64included since0.8.0). - Do not call
init(jieba_dict_dir=...)or theset_default_jieba_dict_dir()/get_default_jieba_dict_dir()helpers — removed in0.8.0. Configure the FTS field or useZVEC_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 withFtsIndexParam.extra_params.jieba_dict_diror theZVEC_JIEBA_DICT_DIRenv var (field configuration wins); add business vocabulary withuser_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
UINT4joinsUINT7/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-INT4plus 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
Установить zvec в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic