-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Heemin Kim <[email protected]>
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 70c9b5d6408bb85fd1503002d29f9428fe0d48dc Mon Sep 17 00:00:00 2001 | ||
From baa7e23c54637d68adac45f09633939b402405a9 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 | ||
|
@@ -259,7 +259,7 @@ index 00000000..a0489fd6 | |
+} // namespace faiss | ||
diff --git a/faiss/impl/ResultCollectorFactory.h b/faiss/impl/ResultCollectorFactory.h | ||
new file mode 100644 | ||
index 00000000..70918266 | ||
index 00000000..b460b20b | ||
--- /dev/null | ||
+++ b/faiss/impl/ResultCollectorFactory.h | ||
@@ -0,0 +1,33 @@ | ||
|
@@ -277,7 +277,7 @@ index 00000000..70918266 | |
+/** ResultCollectorFactory to create a ResultCollector object */ | ||
+struct ResultCollectorFactory { | ||
+ DefaultCollector default_collector; | ||
+ const std::vector<int64_t>* id_map; | ||
+ const std::vector<int64_t>* id_map = nullptr; | ||
+ | ||
+ // Create a new ResultCollector object | ||
+ virtual ResultCollector* new_collector() { | ||
|