Here’s the idea: combine a relational database (I’m currently considering SQLite) with a Large Language Model (LLM), specifically Llama 3 with 8B parameters. The goal is to enable the LLM to:
- Create tables and populate them based on user input
- Perform queries on the database
- Interpret the database output and provide the results back to the user in natural language
Additionally, I’d like to explore the possibility of providing the LLM with an existing database schema, allowing it to convert human queries in English into SQL. This would enable users to interact with the database using natural language, making it more accessible and user-friendly. By having the LLM interpret the database output, it can provide the user with a clear and concise answer in natural language, rather than requiring the user to understand SQL or database terminology. This would make the system even more user-friendly and accessible to a wider range of people.