Skip to main content
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

Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:

Zero-Shot Classification

Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:

Translation

Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:

Summarization

Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:
Let’s create a model.
And check its status.
Once the status is complete, we can query for predictions.
On execution, we get:

OpenAI Examples

Here are the tasks supported by MindsDB and OpenAI:
  • Answering Questions without Context
  • Answering Questions with Context
  • Prompt Completion
Follow this instruction to set up the OpenAI integration in MindsDB.
Let’s go through the examples.

Answering Questions without Context

Let’s create a model.
On execution, we get:
Now we can query for answers.
On execution, we get:

Answering Questions with Context

Let’s create a model.
On execution, we get:
Now we can query for answers.
On execution, we get:

Prompt Completion

Let’s create a model.
Let’s look at an example that uses parameters provided at model creation time.
On execution, we get:
Let’s create a model.
Let’s look at an example that overrides parameters at prediction time.
On execution, we get:
Let’s create a model.
Now we can query for predictions.
On execution, we get:

What’s Next?

Have fun while trying it out yourself! If this tutorial was helpful, please give us a GitHub star here.