A Flask app that converts natural language queries into SQL using LangChain and LLaMA (Groq) for querying uploaded Excel files.
This project requires an API key to function properly. To keep your API key secure, this project uses environment variables.
This project requires Python 3.8+ and an API key to function properly. Follow these steps to set up your environment securely:
It’s best to run the project inside a virtual environment to keep dependencies isolated.
python3 -m venv myenv source myenv/bin/activate # On Windows use: myenv\Scripts\activate
pip install -r requirements.txt
-
Create the
.envfileCopy the example environment file
.env.exampleto.env:cp .env.example .env
-
Add your real API key Open the .env file in a text editor and replace the placeholder with your actual API key. For example: API_KEY=your_real_api_key_here Save the .env file Run the project
The project will load the API key securely from your .env file.
- Upload Excel files
- Converts Excel to SQLite
- Use natural language to query the database using LangChain + Groq
- Python + Flask
- SQLite
- LangChain + LLaMA (Groq)