Find answers from the community

Updated 2 months ago

Logan M I have expanded my integration

I have expanded my integration using this guide
https://gpt-index.readthedocs.io/en/latest/examples/index_structs/struct_indices/SQLIndexDemo-ManyTables.html
However, I am not getting the good results. My goal is to add an agent that will be able to analyze the request and perform the analysis before running the SQL query. Is there an interface which provide that feature?
L
B
5 comments
can you give an example of what you mean by "perform analysis" ?
Here is my first implementation
This code uses the implementation provided in the link above, and the result is not that good as the one I was getting using the basic implementation, as such, I wanted to add an agent to improve the result by analyzing the input based on the context of the question
@Logan M πŸ‘†
When you say the result was not as good, what does that mean?

You probably will want to add extra descriptions for each table, in addition to the schema. These object classes are really new, I'd have to look up where that goes πŸ˜… but I assume that will help improve the table retrieval.

You could also increase the top k slightly.

Although, you might be better off using the basic approach if all the tables schema fit into the LLM input, since then there's no need for the retrieval code
Add a reply
Sign up and join the conversation on Discord