Set up your index right here in Atlas. Make sure you load the sample data first to create the index on.
Under the Atlas Vector Search section, select the JSON Editor and click Next.
In the Database and Collection section, expand the sample_mflix database and select the embedded_movies collection.
In the Index Name field, specify vector_index.
Copy and paste the following vector search index definition into the JSON Editor.
{
"fields": [{
"type": "vector",
"path": "plot_embedding",
"numDimensions": 1536,
"similarity": "dotProduct"
}]
}
Click through Next and Create to finish creating the Index.
This index definition:
Indexes the
plot_embedding
field as thevector
type. This field contains vector embeddings that represent the summary of a movie's plot.Specifies
1536
vector dimensions.Measures similarity using
dotProduct
similarity.