Spaces:
Runtime error
Runtime error
Update mongodb_atlas_vector_search_setup.md
Browse files
mongodb_atlas_vector_search_setup.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
1. Create and log in to your MongoDB account at [mongodb.com](https://mongodb.com)
|
| 9 |
|
| 10 |
2. Create Organization and Project
|
| 11 |
-
- Note that if you first create an account you have a default organization and project so you may need to skip Step 2
|
| 12 |
- Create a new MongoDB organization
|
| 13 |
- Name your organization as desired
|
| 14 |
- Create a new MongoDB project
|
|
@@ -17,7 +17,7 @@
|
|
| 17 |
3. Create Cluster
|
| 18 |
- Select M0 (FREE) tier
|
| 19 |
- Make sure to uncheck "Preload sample dataset"
|
| 20 |
-
- Keep everything else default
|
| 21 |
- Wait 1-3 minutes for cluster creation
|
| 22 |
|
| 23 |
## Security Setup
|
|
@@ -29,7 +29,7 @@
|
|
| 29 |
|
| 30 |
5. Configure Network Access
|
| 31 |
- Navigate on the left menu to Security -> Network Access
|
| 32 |
-
- Add IP Address: `0.0.0.0/0` (Allows access from anywhere)
|
| 33 |
|
| 34 |
## Database Creation
|
| 35 |
6. Set Up Database and Collection
|
|
@@ -53,7 +53,7 @@
|
|
| 53 |
"fields": [
|
| 54 |
{
|
| 55 |
"numDimensions": 768, // Adjust based on your model. (e.g., 768 for all-mpnet-base-v2 )
|
| 56 |
-
"path": "embedding"
|
| 57 |
"similarity": "euclidean", // Adjust it to your desired similarity function.
|
| 58 |
"type": "vector"
|
| 59 |
},
|
|
@@ -77,4 +77,4 @@
|
|
| 77 |
- Click "Connect" next to name of your cluster
|
| 78 |
- Select "Drivers"
|
| 79 |
- Copy the connection/MongoURI string at the very end of the modal that just opened
|
| 80 |
-
- Replace
|
|
|
|
| 8 |
1. Create and log in to your MongoDB account at [mongodb.com](https://mongodb.com)
|
| 9 |
|
| 10 |
2. Create Organization and Project
|
| 11 |
+
- **Note that if you first create an account you have a default organization and project so you may need to skip Step 2.**
|
| 12 |
- Create a new MongoDB organization
|
| 13 |
- Name your organization as desired
|
| 14 |
- Create a new MongoDB project
|
|
|
|
| 17 |
3. Create Cluster
|
| 18 |
- Select M0 (FREE) tier
|
| 19 |
- Make sure to uncheck "Preload sample dataset"
|
| 20 |
+
- **Keep everything else default.**
|
| 21 |
- Wait 1-3 minutes for cluster creation
|
| 22 |
|
| 23 |
## Security Setup
|
|
|
|
| 29 |
|
| 30 |
5. Configure Network Access
|
| 31 |
- Navigate on the left menu to Security -> Network Access
|
| 32 |
+
- **Add IP Address: `0.0.0.0/0` (Allows access from anywhere)**
|
| 33 |
|
| 34 |
## Database Creation
|
| 35 |
6. Set Up Database and Collection
|
|
|
|
| 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 |
},
|
|
|
|
| 77 |
- Click "Connect" next to name of your cluster
|
| 78 |
- Select "Drivers"
|
| 79 |
- Copy the connection/MongoURI string at the very end of the modal that just opened
|
| 80 |
+
- Replace **`<password>`** with your database user password
|