pub fn store_memory_with_embedding(
config: &Config,
text: &str,
layer: &str,
importance: u8,
embedding: Option<Vec<f32>>,
) -> Result<(), String>Expand description
Store a memory whose embedding the caller has already computed.
The vector must be the one this store would have produced; it is only a shortcut for callers that embed several texts at once. Passing a vector for text that the quality gate rejects stores the memory without one, exactly as an inline inference would.