You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
limit must not exceed numCandidates
numCandidates cannot be larger than 10.000 (rules out eg. Integer.MAX)
numCandidates should be 20 x limit (so if we invert this and calculate limit from numCandidates we might end up with a very low value.
...
The text was updated successfully, but these errors were encountered:
Using
Limit.unlimited()
will result in an error when preparing the raw aggregation stage as we cannot read themax
from an unlimitedLimit
, 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:limit
must not exceednumCandidates
numCandidates
cannot be larger than 10.000 (rules out eg. Integer.MAX)numCandidates
should be 20 x limit (so if we invert this and calculatelimit
fromnumCandidates
we might end up with a very low value.The text was updated successfully, but these errors were encountered: