seedframe 0.1.2

A clean, macro driven Rust library for building LLM apps
Documentation
1
2
3
4
5
6
7
8
use crate::embeddings::EmbedderError;
use async_trait::async_trait;

#[allow(clippy::module_name_repetitions)]
#[async_trait]
pub trait EmbeddingModel: Send + Sync {
    async fn embed(&self, data: &str) -> Result<Vec<f64>, EmbedderError>;
}