Pavel Duchovny commited on
Commit
c9ea09a
1 Parent(s): 56e98fa
Files changed (1) hide show
  1. README.md +5 -0
README.md CHANGED
@@ -36,6 +36,11 @@ It uses OpenAI small text embeddings (256 dimesnsions) to query the database for
36
  ]
37
  }
38
  ```
 
 
 
 
 
39
 
40
  - [Whitelist](https://www.mongodb.com/docs/atlas/security/ip-access-list/#std-label-access-list) access from everywhere (`0.0.0.0/0`)
41
  - Locate your [cluster connection](https://www.mongodb.com/docs/atlas/tutorial/connect-to-your-cluster/) URI
 
36
  ]
37
  }
38
  ```
39
+ Create a 2dsphere index on `restaurants` collection to allow geo queries on `location.coordinates`:
40
+ ```
41
+ db.restaurants.createIndex({'location.coordinates' : "2dsphere"})
42
+ ```
43
+
44
 
45
  - [Whitelist](https://www.mongodb.com/docs/atlas/security/ip-access-list/#std-label-access-list) access from everywhere (`0.0.0.0/0`)
46
  - Locate your [cluster connection](https://www.mongodb.com/docs/atlas/tutorial/connect-to-your-cluster/) URI