-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
37 lines (30 loc) · 954 Bytes
/
Copy path.env.example
File metadata and controls
37 lines (30 loc) · 954 Bytes
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
# Enterprise GenAI Document Q&A - Example environment variables
# Copy to .env and fill in values.
# ----- Backend -----
APP_NAME=Enterprise GenAI Document Q&A
DEBUG=false
LOG_LEVEL=INFO
# API limits
MAX_UPLOAD_FILES=10
MAX_FILE_SIZE_MB=25
RATE_LIMIT_REQUESTS=60
RATE_LIMIT_WINDOW_SECONDS=60
# Storage (paths relative to backend working dir or absolute)
UPLOAD_DIR=data/uploads
CHROMA_PERSIST_DIR=data/chroma
SQLITE_PATH=data/metadata.db
# LLM - OpenAI or compatible API (replace xxx with your key to enable LLM/RAG)
OPENAI_API_KEY=xxx
OPENAI_API_BASE=
LLM_MODEL=gpt-4o-mini
EMBEDDING_MODEL=text-embedding-3-small
# RAG
CHUNK_SIZE=1000
CHUNK_OVERLAP=200
TOP_K_RETRIEVE=5
MIN_RELEVANCE_SCORE=0.0
# Use local sentence-transformers instead of API (no key needed)
USE_LOCAL_EMBEDDINGS=false
LOCAL_EMBEDDING_MODEL=all-MiniLM-L6-v2
# ----- Frontend -----
# Vite proxy targets backend at localhost:8000 (see vite.config.ts). No env needed for local dev.