Skip to content

Commit 441481e

Browse files
committed
Add comment about thread safety
1 parent 34bda09 commit 441481e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jvector-base/src/main/java/io/github/jbellis/jvector/graph/similarity/BuildScoreProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public SearchScoreProvider diversityProviderFor(int node1) {
138138
* with reranking performed using RandomAccessVectorValues (which is intended to be
139139
* InlineVectorValues for building incrementally, but should technically
140140
* work with any RAVV implementation).
141+
* This class is not thread safe, we should never its results to another thread.
141142
*/
142143
static BuildScoreProvider pqBuildScoreProvider(VectorSimilarityFunction vsf, PQVectors pqv) {
143144
int dimension = pqv.getOriginalSize() / Float.BYTES;

0 commit comments

Comments
 (0)