Skip to content

Commit

Permalink
send + sync added to embedder
Browse files Browse the repository at this point in the history
  • Loading branch information
andthattoo committed Jul 22, 2024
1 parent 7dca30b commit 953e208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memory/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use text_splitter::TextSplitter;
pub static EMBEDDING_MODEL: &str = "hellord/mxbai-embed-large-v1:f16";

#[async_trait]
pub trait Embedder {
pub trait Embedder: Send + Sync {
async fn generate_embeddings(&self, prompt: &str) -> Result<Vec<f32>, EmbeddingError>;
async fn generate_query_embeddings(&self, query: &str) -> Result<Vec<f32>, EmbeddingError>;
}
Expand Down

0 comments on commit 953e208

Please sign in to comment.