Skip to main content

read_embedding

Function read_embedding 

Source
pub fn read_embedding(path: &Path) -> Result<Vec<f32>>
Expand description

Read an embedding vector from a file.

Supports:

  • Whitespace-separated floats: 0.1 0.2 0.3
  • JSON array: [0.1, 0.2, 0.3]