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
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
python [main.py](<http://main.py>)
# Example: server listens on <http://0.0.0.0:8000>
cd frontend
npm install
npm run dev
# Typically serves on <http://localhost:3000>
http://0.0.0.0:8000 or http://localhost:8000.