You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**Create a MongoDB Atlas Cluster** ([MongoDB Atlas](https://www.mongodb.com/atlas))
38
-
2.**Enable Vector Search** under Indexes:
36
+
1.**Initialize Your App** using the CLI:
37
+
```sh
38
+
npx mongodb-rag init
39
+
```
40
+
This will guide you through setting up your MongoDB connection and save the configuration to `.mongodb-rag.json`. Make sure to add `.mongodb-rag.json` to your `.gitignore` file to keep your credentials secure.
41
+
42
+
```bash
43
+
% npx mongodb-rag init
44
+
✔ Enter your MongoDB connection string: · mongodb+srv://<username>:<password>@cluster0.mongodb.net/
45
+
✔ Enter the database name: · mongodb-rag
46
+
✔ Enter the collection name: · documents
47
+
✔ Select an embedding provider: · openai
48
+
✔ Enter your API key (skip if using Ollama): · your-embedding-api-key
49
+
✔ Enter the model name: · text-embedding-3-small
50
+
✔ Enter the embedding dimensions: · 1536
51
+
✅ Configuration saved to .mongodb-rag.json
52
+
53
+
🔍 Next steps:
54
+
1. Run `npx mongodb-rag test-connection` to verify your setup
55
+
2. Run `npx mongodb-rag create-index` to create your vector search index
56
+
```
57
+
58
+
2. **Create a MongoDB Atlas Cluster** ([MongoDB Atlas](https://www.mongodb.com/atlas))
0 commit comments