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
Copy file name to clipboardExpand all lines: snippets/ai/README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,9 @@ This snippet adds a suite of commands accessible with the `ai` command. This inc
8
8
||||
9
9
|---------|-------------|---------|
10
10
|`ai.ask`| Ask questions about MongoDB |`ai.ask how do I run queries in mongosh?`|
11
-
|`ai.data`| Generate data-related mongosh commands |`ai.data insert some sample user info`|
12
-
|`ai.query`| Generate a MongoDB query or aggregation |`ai.query find documents where name = "Ada"`|
11
+
|`ai.cmd`| Generate general mongosh commands _alias:_`ai.cmd`|`ai.cmd get sharding info`|
12
+
|`ai.find`| Generate queries and aggregations based on natural language |`ai.find users with age > 30`|
13
13
|`ai.collection`| Set the active collection |`ai.collection users`|
14
-
|`ai.command`| Generate general mongosh commands _alias:_`ai.cmd`|`ai.command get sharding info`|
15
14
|`ai.config`| Configure the AI commands |`ai.config.set("provider", "ollama")`|
16
15
17
16
This currently supports 5 different AI providers: `docs, openai | mistral | atlas | ollama` and any model they support. For cloud providers, you can specify the API key with `MONGOSH_AI_API_KEY`.
0 commit comments