Spaces:
Sleeping

amalsp commited on
Commit
c4b2bae
·
verified ·
1 Parent(s): e5ba825

Add Groq AI integration for real NL2SQL functionality

Browse files

- Integrated Groq AI (Mixtral-8x7b-32768) for SQL generation
- Added generate_sql_with_groq() function
- Added explain_sql_with_groq() for query explanations
- Replaced hardcoded demo responses with real AI-generated SQL
- Ready to process natural language questions dynamically
- Requires GROQ_API_KEY to be set in HF Spaces secrets

1 file changed +126 -15
main.py+126-15