Dispatch the vector store based on the index version

This commit is contained in:
Clément Renault
2025-08-12 16:00:47 +02:00
committed by Louis Dureuil
parent f5f2f7c6f2
commit fb68f1241c
2 changed files with 214 additions and 52 deletions

View File

@ -884,10 +884,7 @@ impl<'a, 'i> Transform<'a, 'i> {
InternalError::DatabaseMissingEntry { db_name: db_name::DOCUMENTS, key: None },
)?;
let injected_vectors: std::result::Result<
serde_json::Map<String, serde_json::Value>,
hannoy::Error,
> = readers
let injected_vectors: crate::Result<_> = readers
.iter()
.filter_map(|(name, (reader, user_provided))| {
if !user_provided.contains(docid) {