I’m creating a chatbot using Langchain and SQLDatabaseChain. For the UI, I’m using Streamlit.
My problems are as follows:
After creating the chatbot, I wanted to increase its accuracy. Currently, my chatbot imports a CSV file and creates a separate table in the database. Then, I connect to this database to retrieve information. Right now, I’m using a prompt template for this chatbot, but I lack context.
_DEFAULT_TEMPLATE = “”"Given an input question, first create a check every column present in database and syntactically correct {dialect} query to run, then look at the results of the query and return the answer.