Skip to main content

Module schema

Module schema 

Source
Expand description

Schema types for the vector subsystem.

These types model the subset of the RediSearch FT.CREATE grammar that dynomite::vector will eventually parse and act on. Phase B (this commit) lands the data shapes; Phase C will add the FT.* command parser that builds them and routes through super::registry::VectorRegistry.

The schema types are intentionally distinct from the engine types in dynvec. The engine types are storage-level (a dynvec::Codec is a storage codec, a dynvec::Distance is a scoring function); the schema types are the protocol-level shape clients send over the wire. The conversion functions on VectorType, DistanceMetric, and IndexAlgorithm turn one into the other.

Structs§

MetadataField
One non-vector schema field.
VectorSchema
Compiled FT.CREATE schema.

Enums§

DistanceMetric
RediSearch distance metric.
IndexAlgorithm
Index algorithm.
MetadataFieldType
RediSearch metadata field type.
VectorType
RediSearch-flavoured vector field type.