forked from opensearch-project/k-NN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to support multi vector in faiss
- Loading branch information
Showing
2 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
commit a97473e0c816fa1213ab97ac340d932bfd265b9b | ||
Author: Heemin Kim <[email protected]> | ||
Date: Wed Dec 6 16:33:52 2023 -0800 | ||
From 6bd27053e20e133991c0b2c03c7836d78d5079c8 Mon Sep 17 00:00:00 2001 | ||
From: Heemin Kim <[email protected]> | ||
Date: Wed, 6 Dec 2023 16:33:52 -0800 | ||
Subject: [PATCH] Custom patch to support multi-vector | ||
|
||
Introduce result collector for HNSW | ||
Signed-off-by: Heemin Kim <[email protected]> | ||
--- | ||
faiss/CMakeLists.txt | 2 + | ||
faiss/Index.h | 6 ++- | ||
faiss/IndexIDMap.cpp | 19 ++++++++++ | ||
faiss/IndexIDMap.h | 1 + | ||
faiss/impl/HNSW.cpp | 25 ++++++++----- | ||
faiss/impl/ResultCollector.h | 58 +++++++++++++++++++++++++++++ | ||
faiss/impl/ResultCollectorFactory.h | 29 +++++++++++++++ | ||
7 files changed, 128 insertions(+), 12 deletions(-) | ||
create mode 100644 faiss/impl/ResultCollector.h | ||
create mode 100644 faiss/impl/ResultCollectorFactory.h | ||
|
||
diff --git a/faiss/CMakeLists.txt b/faiss/CMakeLists.txt | ||
index 27701586..af682a05 100644 | ||
|
@@ -263,3 +275,6 @@ index 00000000..4d903f8d | |
+}; | ||
+ | ||
+} // namespace faiss | ||
-- | ||
2.39.3 (Apple Git-145) | ||
|