@@ -347,7 +347,7 @@ type Cmdable interface {
347
347
MetaKeysWithFilter (ctx context.Context , pattern string , filters string ) * StringSliceCmd
348
348
GetMeta (ctx context.Context , key string ) * StringCmd
349
349
GetRowCount (ctx context.Context , key string ) * StringCmd
350
- KNNScan (ctx context.Context , dataKeys []interface {}, knnSize string , numColumnsAndIndicesToSelect string , featureColIndexAndDimensions string , knnType string , knnThreshold string , vectors string ) * StringSliceCmd
350
+ KNNScan (ctx context.Context , dataKeys []interface {}, knnSize string , numColumnsAndIndicesToSelect string , featureColIndexAndDimensions string , knnType string , knnThreshold string , numVectors string , vectors string ) * StringSliceCmd
351
351
}
352
352
353
353
type StatefulCmdable interface {
@@ -2951,15 +2951,15 @@ func (c cmdable) GetRowCount(ctx context.Context, key string) *StringCmd {
2951
2951
return cmd
2952
2952
}
2953
2953
2954
- func (c cmdable ) KNNScan (ctx context.Context , dataKeys []interface {}, knnSize string , numColumnsAndIndicesToSelect string , featureColIndexAndDimensions string , knnType string , knnThreshold string , vectors string ) * StringSliceCmd {
2954
+ func (c cmdable ) KNNScan (ctx context.Context , dataKeys []interface {}, knnSize string , numColumnsAndIndicesToSelect string , featureColIndexAndDimensions string , knnType string , knnThreshold string , numVectors string , vectors string ) * StringSliceCmd {
2955
2955
args := make ([]interface {}, 8 + len (dataKeys ))
2956
2956
args [0 ] = "KNNSCAN"
2957
2957
args [1 ] = knnSize
2958
2958
args [2 ] = numColumnsAndIndicesToSelect
2959
2959
args [3 ] = featureColIndexAndDimensions
2960
2960
args [4 ] = knnType
2961
2961
args [5 ] = knnThreshold
2962
- args [6 ] = "1"
2962
+ args [6 ] = numVectors
2963
2963
args [7 ] = vectors
2964
2964
for i , dataKey := range dataKeys {
2965
2965
args [8 + i ] = dataKey
0 commit comments