WIP: Got the streaming matrix multiplication working, and started work on file hashing.

Co-authored-by: maxbrunsfeld <max@zed.dev>
This commit is contained in:
KCaverly 2023-06-26 19:01:19 -04:00
parent 74b693d6b9
commit 953e928bdb
7 changed files with 396 additions and 97 deletions

View file

@ -44,7 +44,7 @@ struct OpenAIEmbeddingUsage {
}
#[async_trait]
pub trait EmbeddingProvider: Sync {
pub trait EmbeddingProvider: Sync + Send {
async fn embed_batch(&self, spans: Vec<&str>) -> Result<Vec<Vec<f32>>>;
}