Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- To use Portkey within MindsDB, install the required dependencies following this instruction.
- Obtain the Portkey API key required to deploy and use Portkey within MindsDB. Follow the instructions for obtaining the API key.
Setup
Create an AI engine from the Portkey handler.You can pass all the parameters that are supported by Portkey inside the
USING
clause.portkey_engine
as an engine.
You can pass all the parameters supported by Portkey Chat completions here inside the
USING
clause.
refer Portkey Chat completions for more details.The integrations between Portkey and MindsDB was implemented using Portkey Python SDK.
Usage
The following usage examples utilizeportkey_engine
and gpt-3.5-turbo
to create a model with the CREATE MODEL
statement.
Creating a Summarization Model
This example demonstrates how to create a model to summarize text using Portkey:Generating Sentiment Analysis
Translating Text
Extracting Key Information
Next StepsGo to the Use Cases section to see more examples.