-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
146 lines (104 loc) · 4.17 KB
/
env.example
File metadata and controls
146 lines (104 loc) · 4.17 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# =============================================================================
# Omniscient Architect - Environment Configuration
# =============================================================================
# Copy this file to .env and update values for your environment
# =============================================================================
# Database Configuration
# =============================================================================
# PostgreSQL connection password
POSTGRES_PASSWORD=localdev
# Full database URL (alternative to separate config)
# DATABASE_URL=postgresql://omniscient:localdev@localhost:5432/omniscient
# Database performance tuning (optional)
POSTGRES_SHARED_BUFFERS=256MB
POSTGRES_EFFECTIVE_CACHE_SIZE=1GB
POSTGRES_WORK_MEM=16MB
# =============================================================================
# Ollama / LLM Configuration
# =============================================================================
# Ollama service host
OLLAMA_HOST=http://localhost:11434
# Default embedding model
EMBEDDING_MODEL=nomic-embed-text
# Default LLM model for code analysis
DEFAULT_LLM_MODEL=qwen2.5-coder:1.5b
# =============================================================================
# Application Configuration
# =============================================================================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# Application port (Streamlit)
APP_PORT=8501
# Maximum file upload size (MB)
MAX_FILE_SIZE_MB=10
# Maximum number of files to analyze
MAX_FILES=100
# =============================================================================
# RAG Configuration
# =============================================================================
# Chunking strategy: auto, fixed, semantic, ast
CHUNKING_STRATEGY=auto
# Target chunk size in tokens
CHUNK_SIZE=512
# Overlap ratio between chunks (0-1)
CHUNK_OVERLAP=0.1
# Vector dimensions (768 for nomic-embed-text)
EMBEDDING_DIMENSIONS=768
# Number of results for retrieval
TOP_K=5
# Hybrid search alpha (0=BM25 only, 1=vector only, 0.5=balanced)
HYBRID_ALPHA=0.5
# Auto-generate test questions on ingestion
AUTO_GENERATE_QUESTIONS=true
# Number of questions per document
QUESTIONS_PER_DOCUMENT=3
# =============================================================================
# Learning System Configuration
# =============================================================================
# Maximum learned facts to inject into context
MAX_LEARNED_FACTS=5
# Maximum reasoning chains to inject
MAX_REASONING_CHAINS=2
# Include few-shot reasoning examples
INCLUDE_FEW_SHOT_REASONING=true
# Minimum confidence threshold for using learned facts
MIN_FACT_CONFIDENCE=0.3
# =============================================================================
# Docker Configuration
# =============================================================================
# Docker Compose project name
COMPOSE_PROJECT_NAME=omniscient-architect
# Resource limits (used in docker-compose.yml)
POSTGRES_MEMORY_LIMIT=1G
POSTGRES_MEMORY_RESERVATION=512M
OLLAMA_MEMORY_LIMIT=4G
OLLAMA_MEMORY_RESERVATION=2G
APP_MEMORY_LIMIT=2G
APP_MEMORY_RESERVATION=512M
# =============================================================================
# Development Configuration
# =============================================================================
# Enable development mode features
DEV_MODE=false
# Enable hot reload (for development)
ENABLE_HOT_RELOAD=false
# Enable debug logging
DEBUG=false
# =============================================================================
# Security Configuration
# =============================================================================
# Enable CORS (set to false in production)
ENABLE_CORS=false
# Enable XSRF protection
ENABLE_XSRF_PROTECTION=true
# Secret key for session management (generate a random string)
# SECRET_KEY=your-secret-key-here
# =============================================================================
# Monitoring and Observability
# =============================================================================
# Enable metrics collection
ENABLE_METRICS=true
# Enable performance profiling
ENABLE_PROFILING=false
# Metrics export port
METRICS_PORT=9090