I tried these steps with MSSQL Server and found below error, Could you please help to resolve this. chain = create_sql_query_chain(llm, db) The error i get is very long but at the end it says TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type:
I want to make a report generating software using LLM on my ERP where nearly 200 tables are exists. In my report generating software I give a propmt and LLM will analysis this promps and make a sql query on the basis of my ERP databases. Can I do it using this procedure?
Is anybody else getting an error when running the line: chain = create_sql_query_chain(llm, db) The error i get is very long but at the end it says TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type: I cant find any solution for it
Thanks for the walkthrough, it's very useful for beginners. I installed all dependencies using the requirement.txt which installs langchain 0.0.284 and I have python 3.11, while creating the SQL chain I am getting following issue #Convert question to SQL query from langchain.chains import create_sql_query_chain chain = create_sql_query_chain(llm, db) Error - TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type:
Integrating database data with LLMs greatly expands the range of applications. Thank you for providing such valuable information.
Glad it was helpful!
You explain complex topics in simple, step-by-step videos. Truly impressive! This channel deserves way more recognition!
Thank you! I’m glad my videos are helpful. Your support means a lot!
Ma'am you demonstrated this in a really simple and great way.
Thanks a lot 😊
Thank you for sharing. I will try this on SQL server
Good luck!
Really helpful video ! Thank you Aarohi
My pleasure 😊
Mam love u so much 😭
Great Job Aarohi! How about connecting to MS SQL server used by most enterprises
Phenomenal
Amazing!
Thank you!
I tried these steps with MSSQL Server and found below error, Could you please help to resolve this.
chain = create_sql_query_chain(llm, db)
The error i get is very long but at the end it says TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type:
I want to make a report generating software using LLM on my ERP where nearly 200 tables are exists. In my report generating software I give a propmt and LLM will analysis this promps and make a sql query on the basis of my ERP databases. Can I do it using this procedure?
Hello
Can't we do directly by uploading the datasets in an csv file in the sql workbench
hope you react to this.....!!
Do you know how can add memory to sql agent ?
I have tried some ways but I could’nt
Hey Aarohi! How do we handle the cases where the LLM generates a wrong query other than exception handling?
You can train your LLM for such queries using few-shot learning.
Thanks
Thanks a lot , Can you connect to PostgreSQL DB ,Pls give me steps.
pip install langchain psycopg2
import psycopg2
from langchain import LangChain
# Connect to your PostgreSQL database
conn = psycopg2.connect(
dbname="demodb",
user="root",
password="root123",
host="localhost",
port="5432"
)
Thanks.
Is anybody else getting an error when running the line:
chain = create_sql_query_chain(llm, db)
The error i get is very long but at the end it says TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type:
I cant find any solution for it
Yes, The same error is appearing while i am trying execute the code,
Ma'am is there any possibility of getting trained under you as we are a group of 8 professionals working with an IT company
Please email me at aarohisingla1987@gmail.com
Hello I'm facing some error with the tiktoken package.
what is the error?
kindly post video about Claude 3.5 sonnet API video for developers
Noted!
how can we get final response in full sentence eg: the total customer count is ---
can you also include some prompt engg technique
I will cover this in my upcoming videos.
@@CodeWithAarohi thank you..will be helpful
i am not able to connect by db can u please help me
Share the error
Can you connect to MongoDB ,Please give me steps.
python.langchain.com/v0.2/docs/integrations/document_loaders/mongodb/
but what if my table names and fields are HGSD1245GSDF? game over. AI is all hype, can we stop now?? :(
You still can give first 5 rows like example to the llm and it will know what type of data in , and it will work 😊
@@CodeWithMahmoudHey hi do u know that issues when we r using openai api key limit exceed ? Using in langchain
Thanks for the walkthrough, it's very useful for beginners. I installed all dependencies using the requirement.txt which installs langchain 0.0.284 and I have python 3.11, while creating the SQL chain I am getting following issue
#Convert question to SQL query
from langchain.chains import create_sql_query_chain
chain = create_sql_query_chain(llm, db)
Error - TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type: