RAG proxy that intercepts SkyrimNet LLM requests and enriches them with relevant Tamrielic lore from CHIM's Oghma Infinium database. Features: - FastAPI proxy compatible with OpenAI API - ChromaDB semantic search for lore retrieval - NPC profile extraction from SkyrimNet prompts - Google Sheets ingestion for CHIM's Oghma data - Kubernetes deployment manifests - Debug endpoint for RAG operation monitoring Collections ingested to iris-dev ChromaDB: - oghma_lore: 1951 entries (scholar knowledge) - oghma_basic: 1949 entries (commoner knowledge) - oghma_visual: 1151 entries (Omnisight perception) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
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
|