validate functionality, and to gather feedback from a small closed group of
early access users. It is not recommended for production deployments as we
may introduce breaking changes.
For more: https://www.mongodb.com/docs/atlas/atlas-search/knn-beta
Parameters
query – Text to look up documents similar to.
k – (Optional) number of documents to return. Defaults to 4.
pre_filter – (Optional) dictionary of argument(s) to prefilter document
fields on.
post_filter_pipeline – (Optional) Pipeline of MongoDB aggregation stages
following the knnBeta vector search.
Returns
List of documents most similar to the query and their scores.
Examples using MongoDBAtlasVectorSearch¶
MongoDB Atlas