mosmql

3.0.0 • Public • Published

mosmql

Prerequisites

  • NodeJS

  • OPENAI_API_KEY

  • MongoDB

installation

npm i mosmql

How to use

  • const mosmql = require('mosmql');

  • mosmql.mosmql(your text query ,OPENAI_API_KEY,filePath, your collection name, your mongodb uri)

  • the 1st parameter is the query text for exmaple give me results about John Doe

  • 2nd parameter is your OPENAI_API_KEY from OpenAi

  • 3rd parameter is your filePath training model example input.txt

  • 4th parameter your db collection name example sample_restaurants

  • 5th parameter popular mongodb uri connection to the database starts with mongodb+srv://

  • After installing the package

  • const mosmql = require('mosmql');
    async function dbResult() {
    const result = await mosmql.mosmql("Query restaurants collection for restaurants with American cuisine", process.env.OPENAI_API_KEY,
          'input.txt', "sample_restaurants", process.env.uri)
      console.log(result)
    }
    

How could this software be used and contribute in AI

  • You can use the packe for automatic mongodb queries
  • monitoring text to MongoDB query executed e.g. "Give me info about User X or give me the last 10 entries"
  • Voice input to Text then Text to MongoDB Query executed by the package "something like AI software like Amazon Alexa"

For continuous development in the package & Donations

Buy Me A Coffee

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.071latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.071
2.2.01
2.1.82
2.1.72
2.1.61
2.1.50
2.1.41
2.1.31
2.1.21
2.1.10
2.1.00
2.0.01
1.0.21
1.0.11
1.0.00

Package Sidebar

Install

npm i mosmql

Weekly Downloads

83

Version

3.0.0

License

MIT

Unpacked Size

10 kB

Total Files

6

Last publish

Collaborators

  • mostafaezzat