A backend application that enables conversational database interactions, leveraging Retrieval-Augmented Generation (RAG) to generate context-aware, tailored responses. It converts NLP to SQL queries. It takes a textual request and returns a textual response based on the queried data.
-
How many accounts have been opened till date?
SELECT COUNT(*) FROM accounts;
-
We've got a total of 114 accounts opened so far.
-
Prompts are engineered to ensure that conversations can only lead to READ operations:
- Conditions in place to ensure that queries generated by the AI model are only
SELECT
statements. - Programmatically, generated queries from the AI model are also checked to ensure that only
SELECT
statements are used to query the database. - Sensitive data are exempted from the query generated and subsequently from the response provided.
- Conditions in place to ensure that queries generated by the AI model are only
-
Database connection strings are not persisted or stored but please ensure that temporary connection strings are created before supplying them during usage. Good to note that they are only used programmatically for establishing database connection and further getting requested data.