diff --git a/query.go b/query.go index 5f1c80b..2285bab 100644 --- a/query.go +++ b/query.go @@ -39,7 +39,7 @@ func (c *Collection) Query(ctx context.Context, queryText string, nResults int, return nil, nil } - if nResults == 0 { + if nResults <= 0 { return nil, errors.New("nResults must be > 0") }