The Midnight House: a ghost you talk to through a spirit board
说明与用途
《午夜之屋》展示了如何使用开源模型创建一个交互式幽灵,其回答反映真实的词元概率,揭示模型的不确定性并防止泄露隐藏秘密。
问题
Create an interactive haunted‑house game where the ghost’s responses reflect real next‑token probabilities, exposing model uncertainty to the player.
结果
The game demonstrates how open‑weight models enable transparent ghost interactions, revealing model uncertainty and preventing secret leaks, while providing a private, offline experience.
工作流
- 1. Install dependencies and pull Gemma via Ollama. 2. Run FastAPI server with SSE endpoint. 3. Player explores rooms, unlocking facts. 4. Ghost’s prompt contains only unlocked facts. 5. Model streams tokens with probabilities; UI updates planchette speed and whispers. 6. Spoiler guard checks replies; blocked leaks are logged. 7. Progress stored in MongoDB or memory; Backboard provides cross‑session memory. 8. Deploy to Render; Browserbase smoke‑tests the live game.
证据
The planchette doesn’t move on a random timer. It moves using the model’s real next-token probabilities.
If an endpoint doesn’t expose logprobs, the UI says so and uses a fixed-speed planchette.
A spoiler guard. If the model still blurts out a locked secret, a word-boundary check replaces the reply with I cannot say.
- 记录日期: 2026-11-01T09:29:18.306Z