This application consists of a Flask-based Python backend using Langchain and Google Gemini, and a React-Vite frontend with a premium, minimalist design.
backend/: Python Flask application, AI logic, and documents.frontend/: React + Vite application with custom vanilla CSS.
- Navigate to the backend directory.
- Install dependencies:
pip install -r requirements.txt - Configure your API Key:
- Open
backend/.env. - Replace
your_gemini_api_key_herewith your actual Google Gemini API Key.
- Open
- Run the backend server:
The server will run on
python app.py
http://localhost:5000.
- Navigate to the frontend directory.
- Install dependencies:
npm install
- Run the development server:
The app will be available at
npm run dev
http://localhost:5173.
The AI agent bases its answers on the files inside backend/documents/.
- To add more knowledge, simply drop
.txtfiles into that folder. - Restart the backend to re-index the new documents into the vector store.
- RAG Architecture: Uses FAISS for local vector storage and Google Gemini for grounding answers in provided text.
- Premium UI: Built with vanilla CSS for a high-end, responsive feel without external overhead.
- Factual Grounding: The system specifically looks for information in provided reports (Annual, Strategic, Departmental) before generating answers.
- Micro-animations: Included loading states and fade-in transitions for a smooth executive experience.