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.
Before proceeding, ensure the following prerequisites are met:
Create an AI engine from the Cohere handler.
Create a model using cohere_engine
as an engine.
The following usage examples utilize cohere_engine
to create a model with the CREATE MODEL
statement.
Create a model to predict the answer to a question using the text-generation
task.
Where:
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. |
Query the model to get predictions.
Here is the output:
answer |
---|
The capital of France is Paris. Paris is France’s largest city and a major global center for art, culture, fashion, and cuisine. It is renowned for its iconic landmarks such as the Eiffel Tower, Notre-Dame Cathedral, and the Louvre Museum. |
Next Steps
Go to the Use Cases section to see more examples.