GeorgiosIoannouCoder commited on
Commit
27f24d8
1 Parent(s): d93456f

Update mongodb_atlas_vector_search_setup.md

Browse files
Files changed (1) hide show
  1. mongodb_atlas_vector_search_setup.md +14 -13
mongodb_atlas_vector_search_setup.md CHANGED
@@ -49,19 +49,20 @@
49
  - Click "Next"
50
  - Configure index settings:
51
  ```json
52
- {
53
- "type": "vector",
54
- "path": "embedding", // Adjust it to your index/embedding column.
55
- "numDimensions": 768, // Adjust based on your model. (e.g., 768 for all-mpnet-base-v2 )
56
- "similarity": "euclidean" // Adjust it to your desired similarity function.
57
- }
58
- ```
59
- - Optional: Add filter fields if needed:
60
- ```json
61
- {
62
- "type": "filter",
63
- "path": "source" // Adjust it to the column you would like to filter with.
64
- }
 
65
  ```
66
  - Assign your index to the collection name created in step 6 using the drop down menu on the left.
67
  - Click "Next"
 
49
  - Click "Next"
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.
68
  - Click "Next"