Skip to content

Commit bfba7fa

Browse files
authored
Load knn vectors format with mmapfs (#78724)
Before the format used niofs. The current knn vectors implementation is based on the HNSW algorithm, which is designed for the case where the graph and vectors are be held in memory. Switching to mmapfs from niofs made a huge difference in ANN benchmarks, speeding up some searches over 3x.
1 parent d85195b commit bfba7fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/index/store/LuceneFilesExtensions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ public enum LuceneFilesExtensions {
6969
TVM("tvm", "Term Vector Metadata", true, false),
7070
TVX("tvx", "Term Vector Index", false, false),
7171
// kNN vectors format
72-
VEC("vec", "Vector Data", false, false),
73-
VEX("vex", "Vector Index", false, false),
72+
VEC("vec", "Vector Data", false, true),
73+
VEX("vex", "Vector Index", false, true),
7474
VEM("vem", "Vector Metadata", true, false);
7575

7676
/**

0 commit comments

Comments
 (0)