Skip to content

SQL agents with rows that creates long tokens #2059

Answered by jzluo
lasagna0 asked this question in Q&A
Discussion options

You must be logged in to vote

Oh wow. If the data MUST be in a SQL database, have your SQL chain just return the query result directly instead of sending it back through the llm to interpret it. Then play around with something like this on the result https://python.langchain.com/en/latest/modules/chains/index_examples/vector_db_qa.html

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lasagna0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants