Expand description
HNSW vector database — types + impl.
types is dependency-light (only serde, chrono, uuid,
std::sync::atomic). The HNSW index + product-quantization codebook
live in private modules and are reachable through the VectorDB
entry point. Storage backends that only need to round-trip
VectorMetadata and SearchMatch can depend on
post-cortex-embeddings with default-features = false, which
compiles only this types module.
Re-exports§
pub use config::SearchMode;pub use config::SearchQualityPreset;pub use config::VectorDbConfig;pub use core::VectorDB;pub use product_quantization::ProductQuantizationCodebook;pub use types::SearchMatch;pub use types::StoredVector;pub use types::VectorDbStats;pub use types::VectorDbStatsSnapshot;pub use types::VectorMetadata;
Modules§
- config
- Vector database configuration and search quality presets.
- core
VectorDB— the orchestrator type binding storage, HNSW, quantization, and search.- product_
quantization - Product Quantization codebook for memory-efficient vector storage.
- types
- Public types: stored vectors, vector metadata, search matches, and database statistics.