mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-24 19:15:05 +08:00
EmbeddingSender stub
This commit is contained in:
parent
124b5c3df8
commit
73e29ee155
@ -12,6 +12,7 @@ use super::StdResult;
|
||||
use crate::index::main_key::{DOCUMENTS_IDS_KEY, WORDS_FST_KEY, WORDS_PREFIXES_FST_KEY};
|
||||
use crate::update::new::KvReaderFieldId;
|
||||
use crate::update::MergeDeladdCboRoaringBitmaps;
|
||||
use crate::vector::Embeddings;
|
||||
use crate::{DocumentId, Index};
|
||||
|
||||
/// The capacity of the channel is currently in number of messages.
|
||||
@ -489,6 +490,23 @@ impl DocumentsSender<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct EmbeddingSender<'a>(Option<&'a Sender<MergerOperation>>);
|
||||
|
||||
impl EmbeddingSender<'_> {
|
||||
pub fn delete_embeddings(docid: DocumentId, embedder_id: u8) -> StdResult<(), SendError<()>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
pub fn set_embeddings(
|
||||
docid: DocumentId,
|
||||
embedder_id: u8,
|
||||
embeddings: Embeddings<f32>,
|
||||
) -> StdResult<(), SendError<()>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
pub fn finish_embedder(embedder_id: u8) {}
|
||||
}
|
||||
pub enum MergerOperation {
|
||||
ExactWordDocidsMerger(Merger<File, MergeDeladdCboRoaringBitmaps>),
|
||||
FidWordCountDocidsMerger(Merger<File, MergeDeladdCboRoaringBitmaps>),
|
||||
|
Loading…
Reference in New Issue
Block a user