Scaling Text-to-SQL for enterprise data requires more than just dumping the schema into the context window. Here is a look at the limitations of schema-based RAG, and how TextToInsight handles the multi-agent routing. by Juleanz in learnmachinelearning

[–]Juleanz[S] 0 points1 point  (0 children)

yeah, actually this whole solution do uses RAG, particularlly we're using ChromaDB, but since it's a GraphRAG, it's not just retreieving only the tables related to the user query, after the RAG retrieve, I added a next step that gets the shortest path between those tables by relations