General Questions
What is Zvec?
What is Zvec?
- Lightweight and embeddable
- Supports both dense and sparse vectors
- Built-in hybrid search capabilities
- Production-grade performance
How is Zvec different from other vector databases?
How is Zvec different from other vector databases?
- Zero network latency - No client-server communication overhead
- Simple deployment - No server infrastructure to manage
- Edge compatibility - Runs on laptops, IoT devices, or servers
- Fast startup - Instant initialization, no warm-up time
What programming languages does Zvec support?
What programming languages does Zvec support?
- Python (3.10, 3.11, 3.12) - via PyPI:
pip install zvec - Node.js - via npm:
npm install @zvec/zvec - C++ - Build from source
Is Zvec production-ready?
Is Zvec production-ready?
What license is Zvec released under?
What license is Zvec released under?
Installation
What platforms are supported?
What platforms are supported?
- Linux: x86_64 (AMD64), ARM64 (aarch64)
- macOS: ARM64 (Apple Silicon)
Why am I getting import errors after installing zvec?
Why am I getting import errors after installing zvec?
-
Python version mismatch - Zvec requires Python 3.10-3.12
-
Platform incompatibility - Verify you’re on a supported platform
-
Corrupted installation - Try reinstalling:
How do I build Zvec from source?
How do I build Zvec from source?
- CMake ≥ 3.26, < 4.0
- C++17-compatible compiler (g++-11+, clang++)
- Python 3.10-3.12
Can I use Zvec with virtual environments?
Can I use Zvec with virtual environments?
Data and Schema
What vector types does Zvec support?
What vector types does Zvec support?
VECTOR_FP32- 32-bit float (most common)VECTOR_FP64- 64-bit doubleVECTOR_FP16- 16-bit half-precision floatVECTOR_INT8- 8-bit integer (quantized)VECTOR_INT16- 16-bit integerVECTOR_BINARY32/64- Binary vectors
SPARSE_VECTOR_FP32- 32-bit sparse vectorsSPARSE_VECTOR_FP16- 16-bit sparse vectors
Can I store metadata alongside vectors?
Can I store metadata alongside vectors?
How do I change the schema after creating a collection?
How do I change the schema after creating a collection?
- Create a new collection with the updated schema
- Migrate data from the old collection to the new one
- Delete the old collection
What's the maximum vector dimension?
What's the maximum vector dimension?
- Performance: Higher dimensions = slower search and more memory
- Storage: Disk usage scales linearly with dimension
- Typical range: Most embeddings are 128-1536 dimensions
- OpenAI
text-embedding-3-small: 1536 - Sentence Transformers: 384-768
- Custom models: Varies
Can I have multiple vector fields in one collection?
Can I have multiple vector fields in one collection?
Performance
Which index type should I use?
Which index type should I use?
| Index | Best For | Pros | Cons |
|---|---|---|---|
| HNSW | Most use cases | Fast, accurate | Higher memory |
| IVF | Large datasets | Memory efficient | Slower queries |
| Flat | Small datasets or exact search | 100% recall | No indexing |
How can I improve query performance?
How can I improve query performance?
-
Tune index parameters:
-
Use appropriate metric:
IP(Inner Product) for normalized vectorsL2for Euclidean distanceCOSINEfor angular similarity
-
Optimize vector precision:
- Use
VECTOR_FP16orVECTOR_INT8for memory savings
- Use
-
Batch operations:
- Insert documents in batches
- Use multi-query search when possible
How much memory does Zvec use?
How much memory does Zvec use?
- Vector count: N vectors
- Vector dimension: D dimensions
- Data type: 4 bytes (FP32), 2 bytes (FP16), etc.
- Index overhead: HNSW ~10-20% overhead
Memory ≈ N × D × bytes_per_element × 1.2Example for 1M vectors, 768 dimensions, FP32:Does Zvec support GPU acceleration?
Does Zvec support GPU acceleration?
What's the maximum collection size?
What's the maximum collection size?
- Available memory (for in-memory indices)
- Disk space (for memory-mapped storage)
- File system limits
- Using IVF index for memory efficiency
- Memory-mapped storage mode
- Partitioning across multiple collections
Data Persistence
Where is data stored?
Where is data stored?
- Index files
- Vector data
- Metadata
- Schema definition
Is data automatically persisted?
Is data automatically persisted?
collection.optimize() periodically to consolidate segments and improve query performance.Can I move a collection to a different machine?
Can I move a collection to a different machine?
How do I backup my data?
How do I backup my data?
- Close the collection (or open in read-only mode)
- Copy the directory:
- Verify backup by opening it
What happens if the process crashes?
What happens if the process crashes?
- Committed data is safely persisted to disk
- In-flight operations may be lost (not yet committed)
- Index consistency is maintained
Usage and Integration
Can I use Zvec with LangChain or LlamaIndex?
Can I use Zvec with LangChain or LlamaIndex?
- Create a custom vector store adapter
- Use Zvec for retrieval in RAG pipelines
- Combine with embedding functions
Does Zvec support concurrent access?
Does Zvec support concurrent access?
- Use read-only mode for readers:
zvec.open(path, read_only=True) - Coordinate writes through your application logic
How do I implement filtering during search?
How do I implement filtering during search?
Can I update existing vectors?
Can I update existing vectors?
update method:How do I delete documents from a collection?
How do I delete documents from a collection?
optimize() after bulk deletes to reclaim space.Community and Support
Where can I get help?
Where can I get help?
- Discord Community - Real-time chat and support
- GitHub Issues - Bug reports and feature requests
- GitHub Discussions - Questions and community help
- Documentation - Comprehensive guides
- WeChat/DingTalk - Scan QR codes in README
How can I contribute to Zvec?
How can I contribute to Zvec?
- Development setup
- Coding standards
- Testing guidelines
- Pull request process
- Code (features, bug fixes)
- Documentation improvements
- Examples and tutorials
- Bug reports and feature requests
Where can I find more examples?
Where can I find more examples?
- Examples page - Curated use cases
- GitHub examples/ - Source code examples
- Guides section - Step-by-step tutorials
- Community contributions - Discord and GitHub discussions