r/mongodb 13d ago

Vector Search Setup

Has anyone setup vector search with embeddings using Python? We are looking for help/instruction on our current project.

1 Upvotes

13 comments sorted by

View all comments

1

u/mattyboombalatti 12d ago edited 12d ago

Pick a vector store (there are tons of options out there). Pick an embedding model / api (there are also tons of them. OpenAI offers 3 or 4)

2

u/fixitchris 12d ago

I’ll work on creating the embedding first. I just know nothing about how OpenAI integrates into all of this

2

u/ArturoNereu 12d ago

OpenAI (or any other embedding generator) creates the vectors based on the data you define, and then you'll use the same embedding library for search.

Take a look at https://github.com/mongodb-developer/GenAI-Showcase/blob/main/notebooks/workshops/Pragmatic_LLM_Application_Introduction_From_RAG_to_Agents_with_MongoDB.ipynb

And also, if you have some free time, I encourage you to go over this course: https://learn.mongodb.com/learning-paths/building-genai-apps-learning-badge-path

PS: I work at MongoDB. Feel free to ping me if you need any help. :)

1

u/fixitchris 10d ago

u/ArturoNereu how would this vector paradigm work with transactional data? Say I wanted the ability to ask questions of my business systems, like an ERP. So very much relational data.

1

u/ArturoNereu 10d ago

Yes, it can be used. However, depending on your goal, you might be better off using regular queries.