Integrate MindsDB with Portkey to build enterprise-grade AI use-cases
MindsDB connects to various data sources and LLMs, bringing data and AI together for easy AI automation.
With Portkey, you can run MindsDB AI systems with 250+ LLMs and implement enterprise-grade features like LLM observability, caching, advanced routing, and more to build production-grade MindsDB AI apps.
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
Copy
Ask AI
CREATE MODEL portkey_modelPREDICT answerUSING engine = 'portkey_engine', temperature = 0.2;
Learn more about the supported paramteres in Chat Completions here.
3
Query the model to get predictions
Query Portkey Model
Copy
Ask AI
SELECT question, answerFROM portkey_modelWHERE question = 'Where is Stockholm located?';
Here is the output:
Output
Copy
Ask AI
+-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+| question | answer |+-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+| Where is Stockholm located? | Stockholm is the capital and largest city of Sweden. It is located on Sweden's south-central east coast, where Lake Mälaren meets the Baltic Sea. |+-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+