Skip to main content

value_to_tensor

Function value_to_tensor 

Source
pub fn value_to_tensor(v: &Value) -> Result<Vec<Vec<f32>>>
Expand description

Coerce a Value into a tensor: an array of homogeneous numeric vectors. Used by TENSOR(N) columns to store chunk embeddings for one row while still indexing each vector element.