-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (49 loc) · 1.73 KB
/
Copy path.env.example
File metadata and controls
66 lines (49 loc) · 1.73 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
# SmartSupport AI - Configuration
# Copy this file to .env and fill in your values.
# ─ Server:
# The public URL where this server is hosted.
# This is used to serve the widget script to your website.
API_BASE_URL=http://localhost:8000
# Server port (default: 8000)
PORT=8000
# ─ API Key Auth
# Comma-separated list of valid API keys.
# Leave EMPTY to disable auth (good for local dev).
#
# Generate a key:
# python -c "import secrets; print('ss-' + secrets.token_hex(16))"
#
# Example: API_KEYS=ss-abc123def456,ss-xyz789uvw012
API_KEYS=ss-abc123
# Max requests per minute per API key (default: 20)
RATE_LIMIT_PER_MINUTE=20
# ─ Widget Appearance:
# These values are injected into the widget script automatically.
# Change them to match your brand.
# Name shown in the chat header
BOT_NAME="Support AI"
# Brand colors (hex values)
PRIMARY_COLOR=#2563eb
SECONDARY_COLOR=#1d4ed8
#Chat UI Button Size (default: "56px")
BUTTON_SIZE="56px"
# First message the bot sends when the widget opens
WELCOME_MESSAGE="Hello! How can I help you today?"
# Message shown when the bot cannot find an answer
FALLBACK_MESSAGE="I do not have information on that. Please contact our support team directly."
# Widget button position: bottom-right or bottom-left
WIDGET_POSITION=bottom-right
# ─ RAG Settings:
# Embedding model (converts text to vectors)
EMBED_MODEL=all-MiniLM-L6-v2
# Language model (generates answers)
LLM_MODEL=HuggingFaceTB/SmolLM2-135M-Instruct
# Characters per document chunk (300-500 recommended)
CHUNK_SIZE=250
# Character overlap between consecutive chunks
CHUNK_OVERLAP=40
# Number of chunks retrieved per question (2-6 recommended)
TOP_K=2
# ─ Storage:
# Directory where the FAISS index is saved after running build_index.py
INDEX_DIR=./index