Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using vector search with mongoengine #2785

Open
alexisdal opened this issue Dec 12, 2023 · 2 comments
Open

using vector search with mongoengine #2785

alexisdal opened this issue Dec 12, 2023 · 2 comments

Comments

@alexisdal
Copy link

hello

I have been using mongoengine on my latest project and I'm happy with it.

somehow, I would like to push vectors (embeddings) into my mongodb collection and perform vector searches. It's apparently a fresh development of mongodb. source => https://www.mongodb.com/products/platform/atlas-vector-search

I made a simple lookup in the documentation and issues of mongoengine but did not find any matches.

what I want to achieve

  1. push vectors in a collection
  2. perform similarity search between a vector and the entire collection, retrieve the K-th closest matches (typically using cosine distance)
  3. using the mongoengine abstraction layer

Any clue about how to do this ?

@alexisdal alexisdal changed the title using vector search witj mongoengine using vector search with mongoengine Dec 12, 2023
@bagerard
Copy link
Collaborator

There is no "specific" support built in MongoEngine but I'm not sure it's worth having one. There is an API for creating indexes in pymongo raw format, and an api for running aggregation pipeline also in raw format, have you tried to make use of these?

@idoshr
Copy link
Contributor

idoshr commented Jan 5, 2024

From what I know about the vector search is part of the elastic search solution that Atlas provide.
Maybe this library can be helpful
https://github.com/certego/AtlasQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants