How to use create_sql_agent function from langchain with aws lambda function just to invoke bedrock model. #29453
Replies: 1 comment
-
I was able to solve the error by prompting. |
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
-
Checked other resources
Commit to Help
Example Code
Description
How to use 'create_sql_agent' function from LangChain with AWS lambda function just to invoke bedrock model. I cannot fetch database to lambda. I just want lambda function to invoke bedrock model. I already tried CustomLLM class from LangChain to call bedrock function and pass that to create_sql_agent function llm arguement but it does not work. I already 'create_sql_agent' function from langchain function which seems to be working well for my use case but having lambda constraint making it challenging for me to deploy.
Any idea how to do this will be very helpful.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions