Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To use Cohere within MindsDB, install the required dependencies following this instruction.
- Obtain the Cohere API key required to deploy and use Cohere models within MindsDB. Sign up for a Cohere account and request an API key from the Cohere dashboard. Learn more here.
Setup
Create an AI engine from the Cohere handler.cohere_engine
as an engine.
Usage
The following usage examples utilizecohere_engine
to create a model with the CREATE MODEL
statement.
Create a model to detect language of a given input text.
Name | Description |
---|---|
task | It defines the task to be accomplished. |
column | It defines the column with the text to be acted upon. |
engine | It defines the Cohere engine. |
Usage
Once you have created an Cohere model, you can use it to make predictions.Next StepsGo to the Use Cases section to see more examples.