Skip to main content

get_cached

Function get_cached 

Source
pub fn get_cached(
    db: &MemoryDatabase,
    text: &str,
) -> Result<Option<Vec<f32>>, Error>
Expand description

Get a cached embedding for the given text.

Returns Some(vector) if a cached embedding exists, None otherwise.