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.
Setup
1
Create an AI engine from the Portkey handler
- You can pass all the parameters that are supported by Portkey inside the
USING
clause. - Check out the Portkey handler implementation here.
Portkey’s configs are a powerful way to build robust AI systems. You can use them to implement guardrails, caching, conditional routing and much more in your AI apps.
2
Create a model with portkey_engine
- You can pass all the parameters supported by Portkey Chat completions here inside the
USING
clause.
Create Portkey Model
Learn more about the supported paramteres in Chat Completions here.
3
Query the model to get predictions
Query Portkey Model
Output