WIP vector extraction

This commit is contained in:
Louis Dureuil 2024-10-21 10:39:40 +02:00
parent 9fe5122176
commit 89243f7df0
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

View File

@ -2,6 +2,7 @@ mod cache;
mod faceted;
mod lru;
mod searchable;
mod vectors;
use std::cell::RefCell;
use std::fs::File;

View File

@ -213,6 +213,19 @@ where
)?;
}
'vectors: {
let span = tracing::trace_span!(target: "indexing::documents::extract", "vectors");
let _entered = span.enter();
let index_embeddings = index.embedding_configs(&rtxn)?;
if index_embeddings.is_empty() {
break 'vectors;
}
for index_embedding in index_embeddings {
}
}
{
let span = tracing::trace_span!(target: "indexing::documents::extract", "FINISH");
let _entered = span.enter();