Skip to content

Commit

Permalink
For k=0 case
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti committed Nov 30, 2023
1 parent 2724d4d commit e2454df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (r *Reader) VectorReader(ctx context.Context, vector []float32,
return NewVectorFieldReaderEmpty(), nil
}

if dims != len(vector) {
if k == 0 || dims != len(vector) {
// no match
return NewVectorFieldReaderEmpty(), nil
}
Expand Down

0 comments on commit e2454df

Please sign in to comment.