mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-12 06:36:33 +00:00
Make the VectorStore aware of the index version
This commit is contained in:
committed by
Louis Dureuil
parent
6340412219
commit
f5f2f7c6f2
@@ -17,11 +17,13 @@ impl UpgradeIndex for Latest_V1_17_To_V1_18_0 {
|
||||
progress: Progress,
|
||||
) -> Result<bool> {
|
||||
let embedding_configs = index.embedding_configs();
|
||||
let index_version = index.get_version(wtxn)?.unwrap();
|
||||
for config in embedding_configs.embedding_configs(wtxn)? {
|
||||
// TODO use the embedder name to display progress
|
||||
let quantized = config.config.quantized();
|
||||
let embedder_id = embedding_configs.embedder_id(wtxn, &config.name)?.unwrap();
|
||||
let vector_store = VectorStore::new(index.vector_store, embedder_id, quantized);
|
||||
let vector_store =
|
||||
VectorStore::new(index_version, index.vector_store, embedder_id, quantized);
|
||||
vector_store.convert_from_arroy(wtxn, progress.clone())?;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user