Ajeya95 commited on
Commit
09c3415
·
verified ·
1 Parent(s): 445bbae

Align docs around LLM-driven scenario generation

Browse files
Files changed (1) hide show
  1. README.md +10 -10
README.md CHANGED
@@ -63,9 +63,9 @@ The post highlights the app, the hackathon track, the Codex-assisted build proce
63
 
64
  ## What It Does
65
 
66
- The user enters a fork in the road, chooses one path to simulate, adds one real constraint, and selects a persona voice. LifeChoice then runs an eight-node future where every decision changes the state of the world and creates durable consequences.
67
 
68
- Unlike a normal chatbot, the model does not own the simulation. The deterministic engine owns arithmetic, state transitions, facts, obligations, closed options, cascade moments, safety boundaries, and the final report. The language model is used only for optional bounded node enrichment.
69
 
70
  ## Why It Is Not Just A Chatbot
71
 
@@ -80,7 +80,7 @@ A chatbot responds turn by turn with prose. LifeChoice runs a stateful simulatio
80
  - A bounded context packet prevents token growth across the simulation.
81
  - The final report is computed from actual behavior, not a conversational impression.
82
 
83
- The model enriches bounded decision nodes. It does not control scoring, state transitions, safety limits, or simulation completion.
84
 
85
  ## Product Design
86
 
@@ -90,7 +90,7 @@ LifeChoice is designed around fast entry, bounded generation, and visible conseq
90
  |---|---|
91
  | Fast onboarding | Dilemma, path selection, one calibration answer, and persona selection |
92
  | Immediate play | The opening node is deterministic and available without model latency |
93
- | Efficient generation | One future node is enriched at a time and prefetched in the background |
94
  | Bounded context | Last 3 choices, 8 facts, 5 obligations, and 5 closed options only |
95
  | Stable characters | Characters remain static session data, not regenerated every turn |
96
  | Consistent world state | Threshold facts and narrative validation enforce visible pressure |
@@ -103,7 +103,7 @@ LifeChoice is designed around fast entry, bounded generation, and visible conseq
103
 
104
  1. Gradio captures a dilemma, chosen path, calibration fact, and persona.
105
  2. The engine returns an immediate deterministic opening scene.
106
- 3. A background worker optionally enriches future nodes with the 7B model.
107
  4. The deterministic state engine applies deltas and updates the causal ledger.
108
  5. Narrative validation rejects generated scenes that contradict critical metrics.
109
  6. The environment derives its visual state from all five metrics.
@@ -116,9 +116,9 @@ Only one model is configured.
116
 
117
  | Model | Parameters | Purpose |
118
  |---|---:|---|
119
- | [`Qwen/Qwen2.5-7B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct) | 7.616B | Optional bounded decision-node enrichment |
120
 
121
- Hugging Face repository metadata reports `7,615,616,512` parameters. No secondary model is configured, and no model at or above 32B is used. If hosted inference is unavailable, the simulation uses deterministic authored nodes and remains fully playable.
122
 
123
  Run the compliance test:
124
 
@@ -135,7 +135,7 @@ Safety controls include:
135
  - Deterministic metric arithmetic and clamping to `0..100`
136
  - Bounded model context
137
  - Strict model-output schema validation
138
- - Deterministic fallback for outages or invalid output
139
  - No autonomous real-world action
140
  - No recommendation of a "correct" path
141
  - Explicit uncertainty and disclaimer text in the UI
@@ -149,7 +149,7 @@ Codex helped turn the initial hackathon concept into a production-shaped system:
149
  - Converted the idea into a modular simulation architecture with deterministic state ownership.
150
  - Implemented the Gradio application, custom interface, scenario rendering, persona panel, sprite state, metrics, and report view.
151
  - Designed the causal ledger model: facts, obligations, closed options, recent choices, and delayed cascade moments.
152
- - Added bounded LLM integration through Hugging Face `InferenceClient` while preserving deterministic fallback behavior.
153
  - Built validation logic so generated scenes cannot ignore critical stress, money, or family thresholds.
154
  - Created compliance artifacts for model-size limits, safety posture, architecture, screenshots, demo flow, and submission evidence.
155
  - Verified live Space access, runtime state, repository files, world-state transitions, and character-state transitions.
@@ -190,7 +190,7 @@ pip install -r requirements.txt
190
  python app.py
191
  ```
192
 
193
- `HF_TOKEN` is optional. Without it, deterministic fallback content is used.
194
 
195
  ## Tests
196
 
 
63
 
64
  ## What It Does
65
 
66
+ The user enters a fork in the road, chooses one path to simulate, adds one real constraint, and selects a persona voice. LifeChoice then uses a 7B language model to help generate adaptive future scenarios inside an eight-node simulation where every decision changes the state of the world and creates durable consequences.
67
 
68
+ Unlike a normal chatbot, the LLM is not asked to improvise the whole product from scratch on every turn. It is the narrative scenario engine for the adaptive experience, while deterministic code provides the structure around it: arithmetic, state transitions, facts, obligations, closed options, cascade moments, safety boundaries, and the final report.
69
 
70
  ## Why It Is Not Just A Chatbot
71
 
 
80
  - A bounded context packet prevents token growth across the simulation.
81
  - The final report is computed from actual behavior, not a conversational impression.
82
 
83
+ The LLM generates and adapts the scenario text inside bounded decision nodes. Deterministic code handles scoring, state transitions, safety limits, and simulation completion so the model's creativity stays grounded in a consistent causal system.
84
 
85
  ## Product Design
86
 
 
90
  |---|---|
91
  | Fast onboarding | Dilemma, path selection, one calibration answer, and persona selection |
92
  | Immediate play | The opening node is deterministic and available without model latency |
93
+ | Efficient generation | One future node is generated at a time and prefetched in the background |
94
  | Bounded context | Last 3 choices, 8 facts, 5 obligations, and 5 closed options only |
95
  | Stable characters | Characters remain static session data, not regenerated every turn |
96
  | Consistent world state | Threshold facts and narrative validation enforce visible pressure |
 
103
 
104
  1. Gradio captures a dilemma, chosen path, calibration fact, and persona.
105
  2. The engine returns an immediate deterministic opening scene.
106
+ 3. A background worker generates future scenario nodes with the 7B model.
107
  4. The deterministic state engine applies deltas and updates the causal ledger.
108
  5. Narrative validation rejects generated scenes that contradict critical metrics.
109
  6. The environment derives its visual state from all five metrics.
 
116
 
117
  | Model | Parameters | Purpose |
118
  |---|---:|---|
119
+ | [`Qwen/Qwen2.5-7B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct) | 7.616B | Bounded adaptive scenario generation |
120
 
121
+ Hugging Face repository metadata reports `7,615,616,512` parameters. No secondary model is configured, and no model at or above 32B is used. The submitted experience is LLM-centered: the model is what makes later scenarios adaptive to the user's dilemma and prior choices. Deterministic authored nodes remain as a reliability fallback for demos and outages, but they are not the core creative experience.
122
 
123
  Run the compliance test:
124
 
 
135
  - Deterministic metric arithmetic and clamping to `0..100`
136
  - Bounded model context
137
  - Strict model-output schema validation
138
+ - Deterministic fallback for outages or invalid model output
139
  - No autonomous real-world action
140
  - No recommendation of a "correct" path
141
  - Explicit uncertainty and disclaimer text in the UI
 
149
  - Converted the idea into a modular simulation architecture with deterministic state ownership.
150
  - Implemented the Gradio application, custom interface, scenario rendering, persona panel, sprite state, metrics, and report view.
151
  - Designed the causal ledger model: facts, obligations, closed options, recent choices, and delayed cascade moments.
152
+ - Integrated Hugging Face `InferenceClient` so the 7B model can generate bounded adaptive scenarios while deterministic code validates and scores the simulation.
153
  - Built validation logic so generated scenes cannot ignore critical stress, money, or family thresholds.
154
  - Created compliance artifacts for model-size limits, safety posture, architecture, screenshots, demo flow, and submission evidence.
155
  - Verified live Space access, runtime state, repository files, world-state transitions, and character-state transitions.
 
190
  python app.py
191
  ```
192
 
193
+ `HF_TOKEN` should be configured for the submitted experience. The fallback path exists only to avoid a blank demo during outages; it is not the intended model-driven product mode.
194
 
195
  ## Tests
196