After a thorough needs analysis, i2e solution experts decided on building a chatbot based on the GPT 4.0 model.
This chatbot could translate natural language questions into SQL queries by fetching data from the internal application database created on Oracle. The chat bot was trained to act as a sequel assistant, so it was capable of converting natural language into SQL queries.
The output of the chatbot is expected to be in tabular form. To achieve this, the team created a knowledge based that acted as additional understanding to the LLM model to give the output in the desired format. This knowledge base also acted as a reference repository for the teams. The team achieved a 60 to 70 % accuracy while providing the option to keep a human oversight to the chatbot’s answers.
The users were familiar with the type of queries to be given, however, they were not sure of the prompts which can work for the chatbot, so additional training was also given which helped them acclimatize with the prompts.