Vector Stores
MongoDB Vector Search
MongoDB is a cross-platform document-oriented database program.
MongoDB Vector Search is a feature that allows you to store and search for vectors in MongoDB.
Setup
-
Register for an Atlas account using your Google Account or an email address.
-
Create and deploy a Free cluster. You can use Atlas Free clusters as a small-scale development environment to host your data. Free clusters never expire, and provide access to a subset of Atlas features.
-
Connect to your cluster using the mongosh, the Node.js driver, the PyMongo driver, or Compass.
-
Load the mflix dataset into your cluster.
-
Install Langtrace, PyMongo, and OpenAI
Usage
here’s an example of how to use Langtrace with MongoDB: