semantic-commands 0.1.1

A lightweight Rust framework for defining and executing semantic commands using text embeddings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;

use crate::Cache;
pub struct NoCache;

#[async_trait::async_trait]
impl Cache for NoCache {
	async fn get(&self, _: &str) -> Result<Option<Vec<f32>>> {
		Ok(None)
	}
	async fn put(&self, _: &str, _: Vec<f32>) -> Result<()> {
		Ok(())
	}

	async fn init(&self) -> Result<()> {
		Ok(())
	}
}