This documentation describes the integration of MindsDB with Cohere, a technology company focused on artificial intelligence for the enterprise.
The integration allows for the deployment of Cohere models within MindsDB, providing the models with access to data from various data sources.
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.
CREATE MODEL cohere_modelPREDICT target_columnUSING engine = 'cohere_engine', -- engine name as created via CREATE ML_ENGINE task = 'task_name', -- choose one of 'language-detection', 'text-summarization', 'text-generation' column = 'column_name'; -- column that stores input/question to the model
The following usage examples utilize cohere_engine to create a model with the CREATE MODEL statement.Create a model to detect language of a given input text.