-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
101 lines (81 loc) · 3.37 KB
/
Copy path.env.example
File metadata and controls
101 lines (81 loc) · 3.37 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# MCP Server Configuration
# =============================================================================
# Embedding Provider Configuration
# =============================================================================
# Select embedding provider: "ollama" (default) or "mlx_server"
# MLX Server is 48-161x faster than Ollama on Apple Silicon
EMBEDDING_PROVIDER=ollama
# =============================================================================
# MLX Server Configuration (High-Performance Apple Silicon)
# =============================================================================
# Server: https://github.com/jakedahn/qwen3-embeddings-mlx
# Performance: ~1700 emb/s (vs Ollama ~35 emb/s)
MLX_SERVER_URL=http://localhost:8000
MLX_BATCH_SIZE=64
MLX_TIMEOUT=120
MLX_MODEL_SIZE=small
MLX_FALLBACK_TO_OLLAMA=true
# =============================================================================
# Ollama Configuration (Default Provider)
# =============================================================================
OLLAMA_HOST=http://localhost:11434
OLLAMA_DEFAULT_EMBEDDING_MODEL=nomic-embed-text
# =============================================================================
# Reranker Configuration (Two-Stage RAG)
# =============================================================================
# Enable/disable cross-encoder reranking for improved search accuracy
# Two-stage retrieval: Stage 1 (vector search) -> Stage 2 (reranking)
# Improves search accuracy by 22-31% with ~400ms additional latency
RERANKER_ENABLED=true
# Reranker provider: "transformers" (default), "ollama", or "mlx"
RERANKER_PROVIDER=transformers
# Reranker model (Qwen3-Reranker series recommended)
# Options: Qwen/Qwen3-Reranker-0.6B (fast), Qwen/Qwen3-Reranker-4B, Qwen/Qwen3-Reranker-8B (best quality)
RERANKER_MODEL=Qwen/Qwen3-Reranker-0.6B
# Maximum input length for reranker (query + document)
RERANKER_MAX_LENGTH=512
# Batch size for reranking operations
RERANKER_BATCH_SIZE=8
# Number of candidates to retrieve in Stage 1 for reranking
RERANK_TOP_K=50
# =============================================================================
# Qdrant Configuration
# =============================================================================
QDRANT_HOST=localhost
QDRANT_PORT=6333
# File Processing Configuration
MAX_FILE_SIZE_MB=5
DETECT_BINARY_FILES=true
LOG_SKIPPED_FILES=true
MAX_DIRECTORY_DEPTH=20
FOLLOW_SYMLINKS=false
# Performance Configuration (to be used in later tasks)
INDEXING_CONCURRENCY=4
INDEXING_BATCH_SIZE=20
EMBEDDING_BATCH_SIZE=10
QDRANT_BATCH_SIZE=500
# Memory Management Configuration
MEMORY_WARNING_THRESHOLD_MB=1000
MEMORY_CLEANUP_INTERVAL=5
FORCE_CLEANUP_THRESHOLD_MB=1500
# Database Operation Monitoring Configuration
DB_OPERATION_TIMEOUT=30
DB_RETRY_ATTEMPTS=3
DB_RETRY_DELAY=1.0
DB_HEALTH_CHECK_INTERVAL=50
# MCP Response Management Configuration
MAX_FILES_IN_RESPONSE=50
# =============================================================================
# Logging Configuration
# =============================================================================
# Log level: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL=INFO
# File logging (useful for debugging)
# Set to true to enable log file output
LOG_FILE_ENABLED=false
# Log file path (relative or absolute)
LOG_FILE_PATH=logs/codebase-rag.log
# Maximum log file size in MB before rotation
LOG_FILE_MAX_SIZE=10
# Number of backup log files to keep
LOG_FILE_BACKUP_COUNT=5