Connect to Mistral AI Data in DBArtisan
The CData ODBC Driver for Mistral AI seamlessly integrates Mistral AI data into database management tools like DBArtisan by enabling you to access Mistral AI data as a database. This article shows how to create an data source for Mistral AI in DBArtisan and execute queries. You can then edit data visually and execute standard SQL.
Integrate Mistral AI Data into DBArtisan Projects
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
The MistralAI API uses API key authentication.
Using API Key Authentication
Your MistralAI API Key is required to create a connection to MistralAI. API Keys can be obtained from your MistralAI account at console.mistral.ai by navigating to the API Keys section. Once you have obtained the API key, set it in the ProfileSettings connection property.
Example Connection string
Profile=C:\profiles\MistralAI.apip;ProfileSettings='APIKey=my_api_key;';AuthScheme=APIKey;
You can then follow the steps below to register Mistral AI data as a database instance in your project:
- In DBArtisan, click Data Source -> Register Datasource.
- Select Generic ODBC.
- Enter a name for the data source and select the DSN.
- Finish the wizard to connect to Mistral AI data. Mistral AI entities are displayed in the Datasource Explorer.
You can now work with Mistral AI data as you work with any other database. See the driver help documentation for more information on the queries supported by the Mistral AI API.