Skip to main content
All CollectionsVector Search Quick Start
Create a Vector Search Index for Sample Data
Create a Vector Search Index for Sample Data
Richa Deshpande avatar
Written by Richa Deshpande
Updated over 3 months ago

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:

Did this answer your question?