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
use anyhow::Result;

#[async_trait::async_trait]
pub trait Embedder {
	async fn embed(&self, input: &str) -> Result<Vec<f32>>;
}