Skip to main content

mem7_embedding/
lib.rs

1mod client;
2
3pub use client::OpenAICompatibleEmbedding;
4
5use async_trait::async_trait;
6use mem7_error::Result;
7
8#[async_trait]
9pub trait EmbeddingClient: Send + Sync {
10    async fn embed(&self, texts: &[String]) -> Result<Vec<Vec<f32>>>;
11}