π CPS Platform Knowledge Hub
spiritualmessage.org β Internal Documentation & Status
v0.13.0 β Video Pipeline Overhaul
β Live
"A seeker anywhere in the world types a question β and receives an answer grounded in Maulana's actual words, with citation."
β The North Star Β· VISION.md
β‘
Running Services
RagFlow
port 9380 Β· chat.spiritualmessage.org Β· cpsglobal.org
PRODUCTION β don't touch
Annotation Tool v2
port 5000 Β· annotate.spiritualmessage.org
ACTIVE
LightRAG Annotations
port 9622 Β· single knowledge graph source
ACTIVE
LiveKit Voice Agent
port 7880 Β· livekit.spiritualmessage.org
ACTIVE
π―
What's Next
v0.13.0 exit criteria
1
Test 3 videos end-to-end
Done when: 1 English + 1 Urdu + 1 mixed pass /process_video Β· English enrichment verified in output
2
Verify chat β ask "patience"
Done when: book + video sources both appear in response
3
Enable cron
Only after 3 successful video tests pass
4
Continue book pipeline
Process remaining books via /process
π
Project Context
/root/critique/
π
VISION.md
Mission, north star, guiding principles
π
CURRENT.md
v0.13.0 status, what's done, what's next
βοΈ
DECISIONS.md
7 architectural decisions with reasoning
π₯
LEARNINGS.md
8 hard-won lessons β never repeat these
π
SESSION_CONTEXT.md
AI session handover β read first
π€
HANDOVER.md
Server access for backup people
ποΈ
Architecture Decision Records
NASA / Google / AWS standard Β· /docs/decisions/
001
SQLite over PostgreSQL
Zero config, nightly backup, sufficient for scale
002
Claude Code as Pipeline LLM
Zero API cost for /process and /process_video
003
LightRAG insert_custom_kg()
We control chunking + entity extraction quality
004
512β800 Token Keyword Grouping
Respects chapter boundaries, semantically coherent
005
OpenRouter + DeepSeek Fallback
Cost resilience when primary model unavailable
006
Docker COPY not Bind Mounts
Reproducible builds, no host path dependency
π
Technical Documentation
/root/annotation_tool_v2/docs/
πΊοΈ
GUIDE.md
Developer manual β start here
ποΈ
ARCHITECTURE.md
System diagram + data flow
π¬
VIDEO_PIPELINE.md
Pipeline steps, states, recovery
βοΈ
WAR_STORIES.md
NASA-style post-incident log
NASA style
π€
MODEL_SELECTION.md
Per-step model routing guide
ποΈ
DATABASE.md
Schema, migrations, backups
βοΈ
PROCESS_COMMAND.md
/process command internals
π
API_REFERENCE.md
All endpoints documented
π
CHANGELOG.md
Version history + rollback cmds
π₯οΈ
Infrastructure
π
Hetzner Cloud
Helsinki Β· 32GB RAM Β· 300GB disk Β· ~$20/mo
πΎ
Backup
Nightly β Storage Box BX11 Β· Weekly snapshots
π
SSL
Certbot Β· All subdomains Β· Auto-renew