|
| 1 | +# Dream Server Client Demo Script |
| 2 | + |
| 3 | +## Overview |
| 4 | +This script guides you through a hands-on demo of Dream Server. The demo covers hardware detection, local LLM chat, voice capabilities, and workflow automation. |
| 5 | + |
| 6 | +**Prerequisites:** Dream Server installed and running (`./scripts/validate.sh` shows green) |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +## 1. Hardware Overview |
| 11 | + |
| 12 | +**Talking Points:** |
| 13 | +- Show the auto-detected hardware tier |
| 14 | +- Explain how Dream Server optimizes for available resources |
| 15 | + |
| 16 | +**Commands:** |
| 17 | +```bash |
| 18 | +# Show GPU info |
| 19 | +nvidia-smi --query-gpu=name,memory.total --format=csv,noheader |
| 20 | + |
| 21 | +# Check what tier Dream Server detected |
| 22 | +cat .env | grep -E "LLM_MODEL|MAX_CONTEXT" |
| 23 | +``` |
| 24 | + |
| 25 | +**Expected Output:** |
| 26 | +GPU model and VRAM, plus the model/context settings Dream Server chose. |
| 27 | + |
| 28 | +--- |
| 29 | + |
| 30 | +## 2. Local LLM Chat |
| 31 | + |
| 32 | +**Talking Points:** |
| 33 | +- Fully local inference — data never leaves the machine |
| 34 | +- OpenAI-compatible API — drop-in replacement for existing tools |
| 35 | + |
| 36 | +**Commands:** |
| 37 | +```bash |
| 38 | +# Chat completion via API |
| 39 | +curl -s http://localhost:8000/v1/chat/completions \ |
| 40 | + -H "Content-Type: application/json" \ |
| 41 | + -d '{ |
| 42 | + "model": "local", |
| 43 | + "messages": [{"role": "user", "content": "What is Dream Server in one sentence?"}], |
| 44 | + "max_tokens": 100 |
| 45 | + }' | jq '.choices[0].message.content' |
| 46 | +``` |
| 47 | + |
| 48 | +**Expected Output:** |
| 49 | +A coherent response from the local Qwen model (1-3 seconds). |
| 50 | + |
| 51 | +**Then:** Open http://localhost:3000 to show the chat UI. |
| 52 | + |
| 53 | +--- |
| 54 | + |
| 55 | +## 3. Voice Capabilities (if enabled) |
| 56 | + |
| 57 | +**Talking Points:** |
| 58 | +- Speech-to-text with Whisper |
| 59 | +- Text-to-speech with Kokoro |
| 60 | +- Full voice-to-voice conversations via LiveKit |
| 61 | + |
| 62 | +**Commands:** |
| 63 | +```bash |
| 64 | +# Check voice services are running |
| 65 | +docker compose ps whisper piper |
| 66 | + |
| 67 | +# Test STT (if you have an audio file) |
| 68 | +curl -X POST "http://localhost:9000/asr" \ |
| 69 | + -F "audio_file=@test.wav" \ |
| 70 | + -F "output=json" |
| 71 | +``` |
| 72 | + |
| 73 | +**Then:** If LiveKit is enabled, open http://localhost:7880 for the voice playground. |
| 74 | + |
| 75 | +--- |
| 76 | + |
| 77 | +## 4. Workflow Automation with n8n |
| 78 | + |
| 79 | +**Talking Points:** |
| 80 | +- Visual workflow builder |
| 81 | +- Pre-built workflows for chat, RAG, voice transcription |
| 82 | +- Integrates with any API |
| 83 | + |
| 84 | +**Commands:** |
| 85 | +```bash |
| 86 | +# Check n8n is running |
| 87 | +curl -s http://localhost:5678/ | head -1 |
| 88 | +``` |
| 89 | + |
| 90 | +**Then:** Open http://localhost:5678 and show the pre-imported workflows. |
| 91 | + |
| 92 | +--- |
| 93 | + |
| 94 | +## 5. RAG Document Q&A (if enabled) |
| 95 | + |
| 96 | +**Talking Points:** |
| 97 | +- Upload documents, ask questions |
| 98 | +- Qdrant vector database for semantic search |
| 99 | +- Answers cite their sources |
| 100 | + |
| 101 | +**Commands:** |
| 102 | +```bash |
| 103 | +# Check RAG services |
| 104 | +docker compose ps qdrant embeddings |
| 105 | +``` |
| 106 | + |
| 107 | +**Demo flow:** Import the document-qa workflow in n8n, upload a PDF, ask questions. |
| 108 | + |
| 109 | +--- |
| 110 | + |
| 111 | +## 6. The Numbers |
| 112 | + |
| 113 | +**Talking Points:** |
| 114 | +- **Cost:** $0/month after hardware (vs $15K+/month for 1M cloud requests) |
| 115 | +- **Latency:** 1.5-2s for 32B model |
| 116 | +- **Capacity:** 30-40 concurrent voice sessions on dual-GPU |
| 117 | +- **Privacy:** Data never leaves your premises |
| 118 | + |
| 119 | +--- |
| 120 | + |
| 121 | +## Conclusion |
| 122 | + |
| 123 | +**Summary:** |
| 124 | +- Full-featured AI stack: chat, voice, workflows, RAG |
| 125 | +- Runs on hardware they already own (or can buy once) |
| 126 | +- OpenAI-compatible API — existing tools just work |
| 127 | +- Total data sovereignty |
| 128 | + |
| 129 | +**Next Steps:** |
| 130 | +- Hardware purchase guide: `docs/HARDWARE-GUIDE.md` |
| 131 | +- Pricing tiers: `docs/PRICING-TIERS.md` |
| 132 | +- Contact for install support |
| 133 | + |
| 134 | +--- |
| 135 | + |
| 136 | +*Built by The Collective — Android-17, Todd, and friends* |
0 commit comments