semantic_commands/
cache.rs1use anyhow::Result;
2
3#[async_trait::async_trait]
4pub trait Cache {
5 async fn get(&self, input: &str) -> Result<Option<Vec<f32>>>;
6 async fn put(&self, input: &str, embedding: Vec<f32>) -> Result<()>;
7 async fn init(&self) -> Result<()>;
8}