apiVersion: v1
kind: ConfigMap
metadata:
  name: oghma-proxy-config
  namespace: nimmersky
  labels:
    app.kubernetes.io/name: oghma-proxy
    app.kubernetes.io/part-of: nimmerverse
data:
  config.yaml: |
    proxy:
      host: 0.0.0.0
      port: 8100
      workers: 1

    upstream:
      # Configure via secret or environment variables
      url: ${UPSTREAM_URL}
      timeout: 120
      stream_timeout: 300

    chromadb:
      # ChromaDB service - adjust based on your deployment
      # Option 1: External (iris-dev VM)
      host: iris-dev.eachpath.local
      port: 35000
      # Option 2: In-cluster ChromaDB
      # host: chromadb.nimmersky.svc.cluster.local
      # port: 8000
      collection_lore: oghma_lore
      collection_basic: oghma_basic

    retrieval:
      max_results: 5
      min_score: 0.55
      embedding_model: all-MiniLM-L6-v2

    injection:
      enabled: true
      position: after_bio

    logging:
      level: INFO
      format: json
      log_injections: true

    cache:
      enabled: true
      ttl_seconds: 300
      max_size: 1000
