Text to SQL chatbot using Langchain's create_sql_query_chain #134920
Unanswered
Rohannain
asked this question in
Programming Help
Replies: 2 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I know but i willnot tell. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
I am trying to build a Natural Language to SQL chatbot, currently I am using Langchain's "create_sql_query_chain" to generate the query as follows:
How do I give custom prompt to the chain to tell the schema of my table.
One way I have seen in the langchain documentation(reference below):
#https://api.python.langchain.com/en/latest/chains/langchain.chains.sql_database.query.create_sql_query_chain.html
Above they have used PromptTemplate from langchain_core.prompts, but I am not sure how to pass it to my chain any help or lead will be greatly appreciated.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions