# RAG Pipeline Configuration
# Copy this file to .env and fill in your values

# OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=text-embedding-3-small
OPENAI_GENERATION_MODEL=gpt-4.1-nano

# Qdrant Configuration
QDRANT_URL=http://localhost:6333
QDRANT_API_KEY=your_qdrant_api_key_here  # Remove if using local instance
QDRANT_COLLECTION=document_chunks

# RAG Pipeline Configuration
CHUNK_SIZE=1000
CHUNK_OVERLAP=200
TOP_K_CHUNKS=5
SIMILARITY_THRESHOLD=0.7
MAX_RESPONSE_TOKENS=500

# FastAPI Configuration
API_HOST=0.0.0.0
API_PORT=8000
API_DEBUG=false

# Logging Configuration
LOG_LEVEL=INFO
LOG_FORMAT=json

# Performance Configuration
BATCH_SIZE=100
RATE_LIMIT_DELAY=0.02
MAX_CONCURRENT_REQUESTS=10

# Security Configuration
CORS_ORIGINS=http://localhost:3000,http://localhost:8080
API_KEY_HEADER=X-API-Key
API_KEY=your_optional_api_key_here