Currently, MindsDB’s NLP engine is powered by Hugging Face and OpenAI. But we plan to expand to other NLP options in the future, so stay tuned!

The MindsDB’s Hugging Face engine is extensible. We are actively working on adding more tasks and models. If you have a specific task or model in mind, please let us know in the MindsDB Community.

Hugging Face Examples

Here are the tasks supported by MindsDB and Hugging Face:

  • Text Classification
  • Zero-Shot Classification
  • Translation
  • Summarization

Let’s go through the examples.

Text Classification

Zero-Shot Classification

Translation

Summarization

OpenAI Examples

Here are the tasks supported by MindsDB and OpenAI:

  • Answering Questions without Context
  • Answering Questions with Context
  • Prompt Completion

Default Model

When you create an OpenAI model in MindsDB, it uses the gpt-3.5-turbo model by default. But you can use the gpt-4 model as well by passing it to the model-name parameter in the USING clause of the CREATE MODEL statement.

If you want to use the OpenAI API key provided by MindsDB, please confirm your email. Alternatively, you have the option to utilize your own OpenAI API key by specifying it in the api_key parameter.

Let’s go through the examples.

Answering Questions without Context

Answering Questions with Context

Prompt Completion

What’s Next?

Have fun while trying it out yourself!

If this tutorial was helpful, please give us a GitHub star here.