Update mongodb_atlas_vector_search_setup.md
Browse files
mongodb_atlas_vector_search_setup.md
CHANGED
|
@@ -50,18 +50,18 @@
|
|
| 50 |
- Configure index settings:
|
| 51 |
```json
|
| 52 |
{
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
}
|
| 66 |
```
|
| 67 |
- Assign your index to the collection name created in step 6 using the drop down menu on the left.
|
|
|
|
| 50 |
- Configure index settings:
|
| 51 |
```json
|
| 52 |
{
|
| 53 |
+
"fields": [
|
| 54 |
+
{
|
| 55 |
+
"numDimensions": 768, // Adjust based on your model. (e.g., 768 for all-mpnet-base-v2 )
|
| 56 |
+
"path": "embedding",// Adjust it to your index/embedding column.
|
| 57 |
+
"similarity": "euclidean", // Adjust it to your desired similarity function.
|
| 58 |
+
"type": "vector"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"path": "source", // Adjust it to the column you would like to filter with.
|
| 62 |
+
"type": "filter"
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
}
|
| 66 |
```
|
| 67 |
- Assign your index to the collection name created in step 6 using the drop down menu on the left.
|