7.1 Prerequisites

7.2 Backend Setup

  1. Clone Repository and Initialize Environment
git clone <repository_url>
cd backend
python -m venv myenv
source myenv/bin/activate
pip install fastapi uvicorn pinecone-client groq google-generativeai crawl4ai pypdf python-dotenv

  1. Configure Environment Variables

Create a .env file in the backend directory:

GEMINI_API_KEY=your_key
PINECONE_API_KEY=your_key
PINECONE_INDEX_NAME=your_index
GROQ_API_KEY=your_key

  1. Launch Backend Server
python [main.py](<http://main.py>)
# Example: server listens on <http://0.0.0.0:8000>

7.3 Frontend Setup

  1. Install Dependencies
cd frontend
npm install

  1. Run Development Server
npm run dev
# Typically serves on <http://localhost:3000>

  1. Connect Frontend to Backend