0.0.11 • Published 5 months ago

@gagik.co/snippet-ai v0.0.11

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 months ago

AI Command Snippets

!CAUTION This is an experimental, early-stage snippet that is not meant for production use.

This snippet adds a suite of commands accessible with the ai command. This includes:

ai.askAsk questions about MongoDBai.ask how do I run queries in mongosh?
ai.dataGenerate data-related mongosh commandsai.data insert some sample user info
ai.queryGenerate a MongoDB queryai.query find documents where name = "Ada"
ai.aggregateGenerate a MongoDB aggregationai.aggregate find documents where name = "Ada"
ai.collectionSet the active collectionai.collection("users")
ai.shellGenerate general mongosh commandsai.shell get sharding info
ai.generalAsk general questions to your modelai.general what is the meaning of life?
ai.configConfigure the AI commandsai.config.set("provider", "ollama")

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.

Installation

You can install this snippet using the snippet command in mongosh:

config.set('snippetIndexSourceURLs', config.get('snippetIndexSourceURLs') +
'; https://github.com/gagik/mongosh-snippets/raw/refs/heads/ai/index.bson.br'
 )
snippet install ai

License

This snippet is licensed under the Apache-2.0 license.

0.0.11

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago