Wendell's Diary Technical Outline
Awakening the Voices – Building the Mythocratic AI Chorus (0001 MC)
“When the Republic speaks in many voices, the world will finally hear what meaning sounds like.” — Bard‑President Wendell NeSmith
1 · Why We Need AI Voices
Thirteen years of myth‑crafting have compressed Wendell’s Diary into a single‑page gateway.
What still sleeps is conversation: visitors can read the canon, but they cannot yet speak with it.
The next evolutionary leap is to give each founding figure a living, responsive presence—AI twins that honour the Custodial Licence and extend the Republic’s hospitality to every curious soul.
2 · Guiding Principles
- Many Voices, One Canon – Wendell, Sage, Rainbow, Sophia, Bobo, Hot Dog, and Zedbra each speak in their own style yet draw from the same knowledge core.
- Zero‑Friction Surface – The WordPress front page remains feather‑light; the chat bubble is the sole interactive layer.
- Citizenship Gate – Full dialogue is reserved for authenticated patrons, safeguarding community and cost.
- Maintenance‑Light – Automation handles ingestion, embedding, and deployment so creative energy stays on storytelling.
3 · System Overview
WordPress (one‑page) ─▶ Chat Widget ─▶ Orchestrator API
│ ├ Persona Router
│ ├ Retrieval + Prompt Builder
│ ├ OpenAI Assistants API
│ ├ Vector Memory Store
│ └ Auth Gateway (Patreon)
Blogger RSS & API ───▶ Ingestion Lambdas ─▶ Embedding + Vector DB
YouTube Captions ───▶ ─▶ (Weaviate / Pinecone)
Comics Transcripts ─▶
Key Components
- Chat Widget – Lightweight JS bundle with persona selector, lazy‑loaded on click.
- Orchestrator API – FastAPI service that verifies Patreon tokens, routes to the correct persona, retrieves context, and calls the Assistants API.
- Vector Memory Store – All posts, comics, book excerpts, and video captions embedded via
text‑embedding‑3‑smalland stored for semantic search.
4 · Knowledge Base Pipeline
| Stage | Action |
|---|---|
| Fetch | Nightly Lambdas pull new Blogger posts, YouTube captions, comic transcripts. |
| Process | Clean Markdown → chunk → attach metadata (date, URL, type). |
| Embed | Generate vectors (OpenAI) and upsert into DB. |
| Purge | Flag superseded drafts; keep only canonical versions. |
5 · Persona Design Matrix
| Persona | System Seed | Tone | Content Bias |
|---|---|---|---|
| Wendell | Bard‑President; visionary, philosophical, light Aussie slang. | Warm, reflective | All corpora |
| Sage | Candle in the Code; zen scribe. | Calm, paradoxical | Law & philosophy |
| Rainbow | First Lady of the Soft Age; child‑accessible. | Uplifting, playful | Bedtime stories, MRU |
| Sophia | Loyal chihuahua; protector. | Blunt, loving | Comics dialogue |
| Bobo / Hot Dog / Zedbra | Narrow, character‑specific prompts (coming Phase 2). | Varied | Targeted sets |
Every persona inherits an MRCL guard clause: “Do not alter canon; refuse distortion politely.”
6 · Authentication & Access
- Patreon OAuth embedded in the chat widget.
- Access token stored in an HTTP‑only cookie.
- API middleware validates tier and rate‑limits usage per month.
- Non‑patrons see a friendly upsell panel instead of the chat overlay.
7 · Implementation Roadmap (Eight‑Week Sprint)
| Week | Milestone |
|---|---|
| 1 | Deploy vector DB; automate content ingestion Lambdas. |
| 2‑3 | Build Orchestrator API with Patreon Auth & retrieval. |
| 4 | Launch Wendell persona; connect staging chat widget. |
| 5 | Add Sage & Rainbow; introduce persona selector; enforce rate limits. |
| 6 | UX polish, error states, mobile testing. |
| 7 | Security hardening; cost optimisation. |
| 8 | Public launch; begin log‑driven refinement. |
8 · Cost & Hosting Snapshot
| Layer | Budget Note |
|---|---|
| OpenAI Assistants | $0.35 / 1k. Expect 30‑50k tokens / month in beta. |
| Embeddings Refresh | $0.10 / 1k for new posts only. |
| Vector DB | Weaviate Cloud free tier ≈ 100k vectors. |
| Serverless (Lambdas) | Pennies—triggered nightly and on demand. |
| FastAPI Container | Fly.io hobby plan or AWS Fargate spot ≈ $5‑10 / month. |
9 · Call to Action
The Republic already reads like a myth—now it will speak like one.
When visitors click the candle, the flag, or Sophia’s bark, a living voice will answer.
Next Step: Approve the roadmap and assign sprint ownership.
Once green‑lit, Week 1 tasks can begin immediately using existing Blogger and YouTube feeds.
Written in Year 0001 MC by the First Scribe, under the light of the Candle.
Comments
Post a Comment