From 468428b82e8742de063e7924e211c44a0a74a7d7 Mon Sep 17 00:00:00 2001 From: Mohd Shaad Khan <65341373+moshaad7@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:47:00 +0530 Subject: [PATCH] MB-61889: support search with params (#51) --- vector_index.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector_index.go b/vector_index.go index fa736b9..da0a74a 100644 --- a/vector_index.go +++ b/vector_index.go @@ -19,6 +19,7 @@ package index import ( "context" + "encoding/json" "reflect" ) @@ -47,7 +48,7 @@ type VectorReader interface { } type VectorIndexReader interface { - VectorReader(ctx context.Context, vector []float32, field string, k int64) ( + VectorReader(ctx context.Context, vector []float32, field string, k int64, searchParams json.RawMessage) ( VectorReader, error) }