# AI Backend - Production Configuration
# Optimized for reliability, cost, and performance at scale

[llm]
# Production uses high-quality, stable models
api_endpoint = ""                  # Uses provider defaults (api.anthropic.com)
model = "claude-3-sonnet-20240229"
provider = "anthropic"

  [llm.generation]
  # Conservative settings for production
  max_tokens = 1024 # Reasonable limit for cost control
  temperature = 0.3 # More focused, less random
  top_p = 0.95

[rag]
# Production RAG system with larger cache
cache_size = 10000                              # Larger cache for frequently accessed data
embedding_dims = 768                            # Higher quality embeddings
enabled = true
index_path = "/var/lib/typedialog/ai/rag-index" # System-wide index path

[microservice]
# Listen on all interfaces for container deployments
enable_cors = false     # Restrict CORS for security
enable_websocket = true
host = "0.0.0.0"
port = 3001

[appearance]
# Production uses validation mode
interaction_mode = "validate_only"
show_suggestions = false              # Don't show raw LLM output to users
suggestion_confidence_threshold = 0.8 # Only very confident suggestions
