Skip to main content

Crate vortex_tensor

Crate vortex_tensor 

Source
Expand description

Types and functionality for working with tensors, vectors, and related mathematical constructs including unit vectors, spherical coordinates, and similarity measures such as cosine similarity.

Modules§

encodings
Encodings for the different tensor types.
fixed_shape
Fixed-shape Tensor extension type.
matcher
Matcher for tensor-like extension types.
scalar_fns
Scalar function expressions defined on tensor and tensor-like extension types.
vector
Vector extension type for fixed-length float vectors (e.g., embeddings).
vector_search
Reusable helpers for building brute-force vector similarity search expressions over Vector extension arrays.

Constants§

SCALAR_FN_ARRAY_TENSOR_PLUGIN_ENV
Environment variable that gates registration of the tensor scalar-fn array plugins (the array encodings that let CosineSimilarity, InnerProduct, L2Denorm, L2Norm, and SorfTransform persist in a Vortex file). When unset, only the scalar functions themselves are registered; readers of files containing serialized tensor scalar-fn arrays will fail to deserialize. Opt-in by setting the variable to any non-empty value.

Functions§

initialize
Initialize the Vortex tensor library with a Vortex session.