-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.env.example
More file actions
61 lines (48 loc) · 1.89 KB
/
Copy path.env.example
File metadata and controls
61 lines (48 loc) · 1.89 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
# Nosia Environment Configuration
# Copy this file to .env and update with your actual values
# Application URL
NOSIA_URL=https://nosia.localhost
# Allow user registration (set to false to disable)
REGISTRATION_ALLOWED=true
# Secret Key Base (generate with: bin/rails secret)
# IMPORTANT: Change this in production!
SECRET_KEY_BASE=your_secret_key_base_here
# Encryption Keys (generate with: bin/rails db:encryption:init)
# IMPORTANT: Change this in production!
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=your_primary_key_here
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=your_deterministic_key_here
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=your_salt_here
# AI Service Configuration
# Base URL for OpenAI-compatible API (e.g., Ollama, OpenAI, etc.)
AI_BASE_URL=http://model-runner.docker.internal/engines/llama.cpp/v1
AI_API_KEY=
# LLM Model Configuration
LLM_MODEL=ai/granite-4.0-h-tiny
LLM_TEMPERATURE=0.1
LLM_MAX_TOKENS=1_024
LLM_TOP_K=40
LLM_TOP_P=0.9
# Embedding Model Configuration
EMBEDDING_MODEL=ai/granite-embedding-multilingual
EMBEDDING_DIMENSIONS=768
# Optional: Separate embedding service URL (defaults to AI_BASE_URL)
# EMBEDDING_BASE_URL=http://model-runner.docker.internal/engines/llama.cpp/v1
# Document Processing Configuration
CHUNK_SIZE=512
CHUNK_OVERLAP=128
RETRIEVAL_FETCH_K=3
# Optional: Guard Model for additional validation
GUARD_MODEL=
# Database Configuration (for production)
# Uncomment and configure for production deployments
# POSTGRES_HOST=postgres-db
# POSTGRES_PORT=5432
# POSTGRES_DB=nosia_production
# POSTGRES_USER=nosia
# POSTGRES_PASSWORD=your_secure_password_here
# DATABASE_URL=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DB
# Optional: Augmented Context
# Enable for enhanced chat completions with context augmentation
AUGMENTED_CONTEXT=true
# Development/Test Database Configuration (handled by config/database.yml)
# DB_HOST=localhost