Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MongoDB vector search should reach the community edition later this year
Following up on Mongo announcements (link) from Mongo's CEO:
We can already prepare this benchmark for supporting MongoDB vector search.
Reasoning behind the configuration file
Currently, MongoDB Atlas Vector Search does not offer a way to configure EF_CONSTRUCT and M during index creation, and the only configurable option that could improve precision is exposed during runtime via the numCandidates config (i.e. EF_RUNTIME).
This design choice simplifies the user experience but limits customization and the quality of the replies for use-cases that require higher precision.
Therefore, and to be as fair as possible, we're following Mongo’s official documentation:
and using a numCandidates config that reaches 20x the expected reply limit (meaning our max EF_RUNTIME is 2000)
Reasoning behind cosine and dotProduct similarities de-normalization
In MongoDB Atlas, for cosine and dotProduct similarities [check link], the normalization of the score is done using the following formula:
To ensure we're able to calculate the expected precision we revert the score normalization back before checking the scores.