This guide provides step-by-step instructions for creating and configuring an Azure SQL user connector with Abacus.AI. Azure SQL user connector supports user-level permissions, role-based access control (RBAC), and row-level security (RLS)
Create an org level Azure SQL connector using JDBC/ODBC option. Use ODBC 18 driver to connect to Azure SQL server.
Turn IMPORT RBAC toggle ON.
Fill the details and click on CREATE.
Create in your database and whitelist the IPs.
CREATE USER [abacus_azure_sql] FROM EXTERNAL PROVIDER;
Click on Verify Now and make sure that connector is in active state.
After creating the connector, please navigate to the projects page by clicking on the Abacus.AI logo.
Create a new project.
Select "ChatLLM - Custom LLM Chat" option.
Enter the name of the project.
Select skip to project dashboard.
Click on the Model option in the Left tool bar and select Train Model on the top right corner of the page.
From the dropdown in Structured data source, select External service.
Select the connector you create in step 1 from the dropdown and add the tables that can be used for testing.
Click on Train Model.
Once training is complete. Click on models and select your model.
Click on create a new deployment.
Select Offline Batch + Realtime. Click on Next.
Enter the name that you want your end users to see and click on deploy.
Go back to your model by clicking on model and then your model name. Once the deployment is in active state. Click on deployment name.
Click on the prediction dash option under Deployment.
Click on Go to Abacus.AI chat to test your bot.
Enter your question/prompt. Each user will be asked to login to Azure SQL once. Login using your Entra ID user credentials.
If you encounter issues during the setup process:
This completes the setup process for the Azure SQL RBAC user connector with Abacus.AI.