-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
67 lines (53 loc) · 3.94 KB
/
.env.example
File metadata and controls
67 lines (53 loc) · 3.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# ═══════════════════════════════════════════════════════════════════
# Cortex Knowledge Assistant - Environment Variables Template
# ═══════════════════════════════════════════════════════════════════
# Copy this file to .env and fill in your values:
# cp .env.example .env
# ═══════════════════════════════════════════════════════════════════
# ─── LLM Provider ─────────────────────────────────────────────────
# Options: HF (HuggingFace), Fake (for testing)
CKA_LLM_PROVIDER=HF
# HuggingFace API Key (get yours at https://huggingface.co/settings/tokens)
HF_API_KEY=your_huggingface_api_key_here
# HuggingFace Model (recommended: meta-llama/Llama-3.1-8B-Instruct)
CKA_HF_MODEL=meta-llama/Llama-3.1-8B-Instruct
# ─── Embeddings ───────────────────────────────────────────────────
CKA_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
# ─── Qdrant Vector Database ───────────────────────────────────────
CKA_USE_QDRANT=true
CKA_QDRANT_URL=http://localhost:6333
CKA_QDRANT_COLLECTION_DOCS=corporate_docs
CKA_QDRANT_TOP_K=5
# ─── PostgreSQL Database ──────────────────────────────────────────
# Used for authentication, user management, and audit logs
# IMPORTANT: Change the password in production!
POSTGRES_USER=cortex
POSTGRES_PASSWORD=change-this-password-in-production
POSTGRES_DB=cortex
# DATABASE_URL is auto-configured in docker-compose.yml
# ─── JWT Authentication ───────────────────────────────────────────
# IMPORTANT: Change this secret in production!
CKA_JWT_SECRET=change-this-secret-in-production
CKA_JWT_ISS=cortex-ka
CKA_JWT_AUD=cortex-client
# ─── CORS (Frontend URLs) ─────────────────────────────────────────
CKA_CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# ─── Features ─────────────────────────────────────────────────────
CKA_ENABLE_STREAMING=true
CKA_DLP_ENABLED=true
# ─── Rate Limiting ────────────────────────────────────────────────
CKA_RATE_LIMIT_QPM=120
CKA_RATE_LIMIT_BURST=0
CKA_RATE_LIMIT_WINDOW_SECONDS=60
# ─── Token Budgets ────────────────────────────────────────────────
CKA_MAX_INPUT_TOKENS=2048
CKA_MAX_OUTPUT_TOKENS=256
CKA_CONVERSATION_MAX_TURNS=5
# ─── Logging ──────────────────────────────────────────────────────
CKA_LOG_LEVEL=INFO
# ─── Redis (Optional) ─────────────────────────────────────────────
CKA_USE_REDIS=false
CKA_REDIS_HOST=localhost
CKA_REDIS_PORT=6379
# ─── Security Headers ─────────────────────────────────────────────
CKA_HTTPS_ENABLED=false