-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Using Limit.unlimited() will result in an error when preparing the raw aggregation stage as we cannot read the max from an unlimited Limit, so we're going to skip setting the value, relying on server side command validation.
Applying defaults in case of unlimited at this point does not seem to be a viable option given the various restrictions regarding vector search, like:
limitmust not exceednumCandidatesnumCandidatescannot be larger than 10.000 (rules out eg. Integer.MAX)numCandidatesshould be 20 x limit (so if we invert this and calculatelimitfromnumCandidateswe might end up with a very low value.- ...
Metadata
Metadata
Assignees
Labels
type: taskA general taskA general task