Skip to main content

claw_vector/
lib.rs

1// lib.rs — crate root: public re-exports and crate-level lint configuration.
2#![deny(missing_docs)]
3
4//! `claw-vector` is the semantic memory engine for ClawDB.
5//!
6//! It provides HNSW-backed approximate nearest-neighbour search, SQLite persistence,
7//! memory-mapped vector files, and a gRPC client to a Python embedding microservice.
8
9/// High-level collection management operations.
10pub mod collections;
11/// Engine configuration and builder.
12pub mod config;
13/// gRPC client to the Python embedding microservice and related types.
14pub mod embeddings;
15/// Top-level VectorEngine lifecycle coordinator.
16pub mod engine;
17/// Unified error type and result alias.
18pub mod error;
19/// gRPC server and generated proto bindings.
20pub mod grpc;
21/// HNSW, flat, and selector index implementations.
22pub mod index;
23/// ANN search, hybrid search, reranking, and metadata filters.
24pub mod search;
25/// SQLite and mmap vector storage backends.
26pub mod store;
27/// Core domain types (VectorRecord, Collection, SearchResult, etc.).
28pub mod types;
29
30pub use collections::CollectionManager;
31pub use config::{VectorConfig, VectorConfigBuilder};
32pub use engine::VectorEngine;
33pub use error::{VectorError, VectorResult};
34pub use types::{
35    Collection, CollectionStats, DistanceMetric, EngineStats, HybridQuery, IndexType,
36    MetadataFilter, RerankerConfig, SearchMetrics, SearchQuery, SearchResponse, SearchResult,
37    VectorRecord,
38};