docrag/.env.example
Z User b23964b35a Switch from ZAI SDK to OpenRouter with openrouter/free model
- Replace z-ai-web-dev-sdk with openai SDK
- Add OPENROUTER_API_KEY and OPENROUTER_BASE_URL config
- Update AsyncOpenAI client for OpenRouter
- Update generate_response and stream_chat_completion
- Update .env.example with OpenRouter settings
2026-03-29 04:35:54 +00:00

29 lines
624 B
Plaintext

# DocRAG Configuration
# Copy this file to .env and fill in your values
# Server settings
HOST=0.0.0.0
PORT=8000
DEBUG=false
# Model settings
MODEL_NAME=DocRAG
UPSTREAM_MODEL=openrouter/free
# OpenRouter API settings (required for LLM responses)
# Get your API key from https://openrouter.ai/keys
OPENROUTER_API_KEY=your_openrouter_api_key_here
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
# RAG settings
EMBEDDING_MODEL=text-embedding-3-small
VECTOR_STORE_PATH=./data/vectors
DOCUMENTS_PATH=./data/documents
CHUNK_SIZE=1000
CHUNK_OVERLAP=200
TOP_K_RESULTS=5
# Tool settings
ENABLE_TOOLS=true
MAX_TOOL_ITERATIONS=3