Built an AI + SQL Q&A System — How to Keep High Accuracy on Complex Queries Without Gemini?
r/LocalLLaMA
•
Generative AI
AI Research
Hey, I’m working on a Python + PostgreSQL system where: User query → LLM generates SQL Data is fetched from PostgreSQL LLM processes data (including calculations/derivations) to generate the final answer Main issue: achieving high accuracy on complex, multi-parameter queries (not just simple trends), especially when the system needs to combine multiple fields and perform calculations/inference similar to Gemini.