use crate::common::Embedding;
use std::error::Error;
use std::future::Future;
pub trait EmbeddingStore {
type ErrorType: Error;
fn store(
&self,
embedding: Embedding,
) -> impl Future<Output = Result<(), Self::ErrorType>> + Send;
fn store_batch(
&self,
embeddings: Vec<Embedding>,
) -> impl Future<Output = Result<(), Self::ErrorType>> + Send;
}