-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
53 lines (42 loc) · 1.25 KB
/
Copy path.env.example
File metadata and controls
53 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Mini RAG — environment variables
# Copy to .env and fill in. Never commit .env.
# --- Runtime ---
NODE_ENV=development
LOG_LEVEL=debug
# --- API ---
API_HOST=0.0.0.0
API_PORT=8000
API_CORS_ORIGINS=http://localhost:3000
# --- Storage ---
SQLITE_PATH=./data/mini_rag.sqlite
FAISS_INDEX_DIR=./data/faiss
HF_HOME=./.hf_cache
# --- Embeddings ---
EMBEDDING_MODEL=BAAI/bge-small-en-v1.5
EMBEDDING_DEVICE=cpu
# --- Chunking ---
CHUNK_SIZE=500
CHUNK_OVERLAP=80
# --- LLM (answer synthesis) ---
# Provider selection: "anthropic" or "openrouter".
# If the chosen provider has no API key, the API tries the other; if neither
# is configured, the lab falls back to returning the top retrieved chunk.
ANSWER_PROVIDER=anthropic
ANSWER_MAX_TOKENS=512
ANSWER_TIMEOUT_SEC=30
# Anthropic
ANTHROPIC_API_KEY=
ANSWER_MODEL=claude-haiku-4-5-20251001
# OpenRouter (OpenAI-compatible)
OPENROUTER_API_KEY=
OPENROUTER_MODEL=anthropic/claude-haiku-4.5
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
OPENROUTER_REFERER=https://github.com/
OPENROUTER_APP_TITLE=Mini RAG
# --- Rate limiting (per-IP token bucket on /v1/query) ---
RATE_LIMIT_CAPACITY=30
RATE_LIMIT_REFILL_PER_SEC=1.0
# --- Request limits ---
MAX_UPLOAD_BYTES=5242880
# --- Frontend ---
NEXT_PUBLIC_API_URL=http://localhost:8000