CapStoneRAG10 / docs /SETUP.md
Developer
Initial commit for HuggingFace Spaces - RAG Capstone Project with Qdrant Cloud
1d10b0a
# Quick Setup Guide (Windows)
## Requirements
- Python 3.10+
- Groq API Key
## Installation Steps
### 1. Create Virtual Environment
```powershell
python -m venv venv
```
### 2. Activate Virtual Environment
```powershell
.\venv\Scripts\Activate.ps1
```
**If you get execution policy error:**
```powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
```
### 3. Upgrade pip
```powershell
python -m pip install --upgrade pip
```
### 4. Install Dependencies
```powershell
pip install -r requirements.txt
```
### 5. Configure API Key
```powershell
copy .env.example .env
notepad .env
```
Add your Groq API key:
```
GROQ_API_KEY=your_groq_api_key_here
```
### 6. Run Application
```powershell
streamlit run streamlit_app.py
```
Open browser to: **http://localhost:8501**
---
## Common Issues
**Execution Policy Error:**
```powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
```
**Reset ChromaDB:**
```powershell
Remove-Item -Recurse -Force .\chroma_db
```
**Deactivate venv:**
```powershell
deactivate
```