| title | EnergyMind AI |
|---|---|
| emoji | ⚡ |
| colorFrom | blue |
| colorTo | indigo |
| sdk | docker |
| pinned | false |
A full-stack AI agent application that researches energy topics using CrewAI, powered by FastAPI (Backend) and Streamlit (Frontend).
- Python 3.10+
- Groq API Key (for LLM)
- Tavily API Key (for Search)
-
Clone the Repository
git clone https://github.com/pranjal1712/energymind-ai-agents.git cd energymind-ai-agents -
Create Virtual Environment It's recommended to use a virtual environment to manage dependencies.
# Windows python -m venv venv .\venv\Scripts\activate # Mac/Linux python3 -m venv venv source venv/bin/activate
-
Install Dependencies
pip install -r requirements.txt
-
Environment Variables This project requires API keys for LLM and Search.
- Copy the example environment file:
# Windows (PowerShell) cp .env .env.example # Mac/Linux cp .env.example .env
- Open
.envand add your API keys:GROQ_API_KEY=your_key_here TAVILY_API_KEY=your_key_here
- Copy the example environment file:
You need to run the Backend and Frontend in two separate terminals.
Open a new terminal, activate the venv, and run:
uvicorn backend.main:app --reloadThe API will start at http://localhost:8000.
Open another terminal, activate the venv, and run:
streamlit run frontend/app.pyThe UI will automatically open in your browser at http://localhost:8501.
- Project Structure: Clean separation of Backend and Frontend.
- Autonomous Agents: Uses CrewAI with Research, Analyst, and Writer agents.
- Persistence: Saves research results as text files in
backend/knowledge_base/. - API: FastAPI endpoints for triggering research and retrieving history.
- UI: Simple Streamlit interface.
- Backend: FastAPI, Langchain, Pydantic
- Frontend: Streamlit
- Tools: Tavily (Search), Python-Slugify