fix: load embedding dimensions once per persist and trim vector search select.

This commit is contained in:
Per Stark
2026-06-12 13:54:51 +02:00
parent 28e8ede478
commit 4e8a58fff1
9 changed files with 90 additions and 52 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ mod tests {
"dimension migration test chunk".into(),
"user1".into(),
);
TextChunk::store_with_embedding(chunk, vec![0.1, 0.2, 0.3], &services.db)
TextChunk::store_with_embedding(chunk, vec![0.1, 0.2, 0.3], 3, &services.db)
.await
.expect("store chunk at old dimension");