From e148470cefbea201471c37d053bdc2fa9725920d Mon Sep 17 00:00:00 2001 From: Abhi Dangeti Date: Mon, 9 Sep 2024 11:24:01 -0700 Subject: [PATCH] Fix unit test breakage from previous commit (API change) (#262) --- faiss_vector_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faiss_vector_test.go b/faiss_vector_test.go index 223b692b..e81da018 100644 --- a/faiss_vector_test.go +++ b/faiss_vector_test.go @@ -486,7 +486,7 @@ func TestVectorSegment(t *testing.T) { hitDocIDs := []uint64{2, 9, 9} hitVecs := [][]float32{data[0], data[7][0:3], data[7][3:6]} if vecSeg, ok := segOnDisk.(segment.VectorSegment); ok { - vecIndex, err := vecSeg.InterpretVectorIndex("stubVec", nil) + vecIndex, err := vecSeg.InterpretVectorIndex("stubVec", false, nil) if err != nil { t.Fatal(err) } @@ -580,7 +580,7 @@ func TestPersistedVectorSegment(t *testing.T) { hitDocIDs := []uint64{2, 9, 9} hitVecs := [][]float32{data[0], data[7][0:3], data[7][3:6]} if vecSeg, ok := segOnDisk.(segment.VectorSegment); ok { - vecIndex, err := vecSeg.InterpretVectorIndex("stubVec", nil) + vecIndex, err := vecSeg.InterpretVectorIndex("stubVec", false, nil) if err != nil { t.Fatal(err) }