Skip to main content

Module vector

Module vector 

Source
Expand description

Vector schema, metrics, and validation helpers.

Re-exports§

pub use columnar::key_layout as vector_key_layout;
pub use columnar::AppendResult;
pub use columnar::SearchStats;
pub use columnar::VectorSearchParams;
pub use columnar::VectorSearchResult;
pub use columnar::VectorSegment;
pub use columnar::VectorStoreConfig;
pub use columnar::VectorStoreManager;
pub use hnsw::HnswConfig;
pub use hnsw::HnswIndex;
pub use hnsw::HnswSearchResult;
pub use hnsw::HnswStats;
pub use simd::select_kernel;
pub use simd::DistanceKernel;
pub use simd::ScalarKernel;

Modules§

columnar
VectorSegment とエンコード済みカラムのシリアライズ補助。
flat
Flat planner: filter → score → top-k using vector metrics.
hnsw
Hierarchical Navigable Small World (HNSW) vector index module.
simd
SIMD ベースの距離カーネル群。

Structs§

CompactionResult
Result of compacting a segment (physical deletion of logically deleted rows).
DeleteResult
Batch delete result.
VectorType
Schema for a vector column (dimension + metric).

Enums§

Metric
Supported similarity/distance metrics.

Functions§

score
Calculates a similarity score using the given metric.
validate_dimensions
Validates that the provided length matches the expected dimension.