-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (57 loc) · 2.11 KB
/
.env.example
File metadata and controls
66 lines (57 loc) · 2.11 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
# ----------------------------------
# Redis Configuration
# ----------------------------------
REDIS_URL=redis://localhost:6379
REDIS_PASSWORD=
# ----------------------------------
# Cache Configuration
# ----------------------------------
# Distance threshold for cache hits (0-2, lower = stricter)
# 0.0 = exact match only
# 0.15 = default (recommended, allows semantic similarity)
# 0.30 = more lenient (higher hit rate, more false positives)
CACHE_DISTANCE_THRESHOLD=0.15
# Time-to-live for cache entries (seconds)
# 604800 = 7 days (default)
# 86400 = 1 day
CACHE_TTL=604800
# Redis index name (change if running multiple environments)
CACHE_INDEX_NAME=semantic_cache
# ----------------------------------
# Embedding Model Configuration
# ----------------------------------
# Default embedding model
# For OllamaEmbeddingProvider:
# - embeddinggemma (768 dims, RECOMMENDED)
# For GemmaEmbeddingProvider:
# - google/embeddinggemma-300m (requires HF auth) (768 dims)
EMBEDDING_MODEL=embeddinggemma
# Embedding output dimension (only used by GemmaEmbeddingProvider with Matryoshka)
# Options: 768 (best quality), 512 (balanced), 256 (efficient), 128 (minimal)
# ⚠️ When changing dimensions, run: make cache-clear
EMBEDDING_OUTPUT_DIMENSION=768
# ----------------------------------
# Ollama Configuration
# ----------------------------------
# Only needed if using OllamaEmbeddingProvider
# Requires: brew install ollama && ollama pull embeddinggemma
# See: docs/OLLAMA_SETUP.md
OLLAMA_BASE_URL=http://localhost:11434
# ----------------------------------
# HuggingFace Configuration
# ----------------------------------
# Only needed if using GemmaEmbeddingProvider (direct via sentence-transformers)
# Requires: huggingface-cli login (one-time setup)
# Get token from: https://huggingface.co/settings/tokens
# HF_TOKEN=hf_your_token_here
# ----------------------------------
# API Configuration
# ----------------------------------
API_HOST=0.0.0.0
API_PORT=8000
API_RELOAD=true
# ----------------------------------
# Optional: OpenAI API
# ----------------------------------
# For LLM integration examples
# OPENAI_API_KEY=sk-your_key_here