├── .gitignore
├── README.md
├── dataset.csv
├── dot.env
├── generative-learning.ipynb
└── make-dataset.ipynb
/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 |
3 | # Byte-compiled / optimized / DLL files
4 | __pycache__/
5 | *.py[cod]
6 | *$py.class
7 |
8 | # C extensions
9 | *.so
10 |
11 | # Distribution / packaging
12 | .Python
13 | build/
14 | develop-eggs/
15 | dist/
16 | downloads/
17 | eggs/
18 | .eggs/
19 | lib/
20 | lib64/
21 | parts/
22 | sdist/
23 | var/
24 | wheels/
25 | share/python-wheels/
26 | *.egg-info/
27 | .installed.cfg
28 | *.egg
29 | MANIFEST
30 |
31 | # PyInstaller
32 | # Usually these files are written by a python script from a template
33 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
34 | *.manifest
35 | *.spec
36 |
37 | # Installer logs
38 | pip-log.txt
39 | pip-delete-this-directory.txt
40 |
41 | # Unit test / coverage reports
42 | htmlcov/
43 | .tox/
44 | .nox/
45 | .coverage
46 | .coverage.*
47 | .cache
48 | nosetests.xml
49 | coverage.xml
50 | *.cover
51 | *.py,cover
52 | .hypothesis/
53 | .pytest_cache/
54 | cover/
55 |
56 | # Translations
57 | *.mo
58 | *.pot
59 |
60 | # Django stuff:
61 | *.log
62 | local_settings.py
63 | db.sqlite3
64 | db.sqlite3-journal
65 |
66 | # Flask stuff:
67 | instance/
68 | .webassets-cache
69 |
70 | # Scrapy stuff:
71 | .scrapy
72 |
73 | # Sphinx documentation
74 | docs/_build/
75 |
76 | # PyBuilder
77 | .pybuilder/
78 | target/
79 |
80 | # Jupyter Notebook
81 | .ipynb_checkpoints
82 |
83 | # IPython
84 | profile_default/
85 | ipython_config.py
86 |
87 | # pyenv
88 | # For a library or package, you might want to ignore these files since the code is
89 | # intended to run in multiple environments; otherwise, check them in:
90 | # .python-version
91 |
92 | # pipenv
93 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94 | # However, in case of collaboration, if having platform-specific dependencies or dependencies
95 | # having no cross-platform support, pipenv may install dependencies that don't work, or not
96 | # install all needed dependencies.
97 | #Pipfile.lock
98 |
99 | # UV
100 | # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
101 | # This is especially recommended for binary packages to ensure reproducibility, and is more
102 | # commonly ignored for libraries.
103 | #uv.lock
104 |
105 | # poetry
106 | # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
107 | # This is especially recommended for binary packages to ensure reproducibility, and is more
108 | # commonly ignored for libraries.
109 | # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
110 | #poetry.lock
111 |
112 | # pdm
113 | # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114 | #pdm.lock
115 | # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
116 | # in version control.
117 | # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
118 | .pdm.toml
119 | .pdm-python
120 | .pdm-build/
121 |
122 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
123 | __pypackages__/
124 |
125 | # Celery stuff
126 | celerybeat-schedule
127 | celerybeat.pid
128 |
129 | # SageMath parsed files
130 | *.sage.py
131 |
132 | # Environments
133 | .env
134 | .venv
135 | env/
136 | venv/
137 | ENV/
138 | env.bak/
139 | venv.bak/
140 |
141 | # Spyder project settings
142 | .spyderproject
143 | .spyproject
144 |
145 | # Rope project settings
146 | .ropeproject
147 |
148 | # mkdocs documentation
149 | /site
150 |
151 | # mypy
152 | .mypy_cache/
153 | .dmypy.json
154 | dmypy.json
155 |
156 | # Pyre type checker
157 | .pyre/
158 |
159 | # pytype static type analyzer
160 | .pytype/
161 |
162 | # Cython debug symbols
163 | cython_debug/
164 |
165 | # PyCharm
166 | # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
167 | # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
168 | # and can be added to the global gitignore or merged into this file. For a more nuclear
169 | # option (not recommended) you can uncomment the following to ignore the entire idea folder.
170 | #.idea/
171 |
172 | # Ruff stuff:
173 | .ruff_cache/
174 |
175 | # PyPI configuration file
176 | .pypirc
177 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Datasets Are All You Need
2 |
3 | **Can an LLM teach itself how to prompt just by looking at a dataset?**
4 |
5 | _Spoiler alert: it sure can 😉_
6 |
7 | This sample demonstrates how a Large Language Model (LLM), specifically Gemini 2.5 Flash, can iteratively refine a prompt to transform input data into a desired output format, using only a dataset for guidance.
8 |
9 | ## Overview
10 |
11 | The core idea is to leverage the reasoning capabilities of an LLM to discover an effective prompt by analyzing input-output examples. We start with a basic instruction and iteratively refine it based on performance against a validation set.
12 |
13 | 1. **Dataset:** A dataset containing short stories (input) and their corresponding structured YAML representations (output) is used.
14 | 2. **Splitting:** The dataset is split into training, validation, and testing sets, similar to traditional ML workflows.
15 | 3. **Prompt Discovery (`discover_prompt`):**
16 | * The LLM is initially prompted to create a transformation prompt based on the training samples.
17 | * This generated prompt is then used to process the validation set.
18 | * Accuracy is calculated by comparing the LLM's output with the expected YAML output.
19 | * The LLM receives feedback (previous prompt, accuracy, mismatches) and refines the prompt subsequent "epochs".
20 | * This loop continues until a satisfactory accuracy is achieved on the validation set.
21 | 4. **Testing (`test_prompt`):** The final, refined prompt is evaluated against the unseen testing set to gauge its generalization performance.
22 |
23 | ## Why is this important?
24 |
25 | This example highlights how **datasets can drive development in Generative AI projects**. Instead of manually engineering complex prompts, we can guide the LLM to discover them by providing clear examples of the desired transformation. This approach uses the dataset for:
26 |
27 | * **Training:** Providing examples for the LLM to learn the transformation.
28 | * **Validation:** Guiding the prompt refinement process ("hyperparameter tuning").
29 | * **Testing:** Evaluating the final prompt's effectiveness on unseen data.
30 |
31 | ---
32 |
33 | **See [generative-learning.ipynb](generative-learning.ipynb)** ( [📔](https://nbsanity.com/intellectronica/generative-learning/blob/main/generative-learning.ipynb) )
34 |
35 | ---
36 |
37 | If you liked this demo and are looking for more, visit my [AI Expertise hub](https://ai.intellectronica.net/) and [subscribe to my newsletter](https://sub.ai.intellectronica.net/) (low volume, high value).
--------------------------------------------------------------------------------
/dataset.csv:
--------------------------------------------------------------------------------
1 | input,output
2 | "The campfire crackled softly, a gentle murmur in the profound quiet of the night. Sarah, a woman of 35, sat cross-legged, her eyes reflecting the low flames, a look of peaceful contemplation on her face. Beside her, Mark, a man aged 38, reclined against a fallen log, hands clasped behind his head, utterly absorbed in the vast, star-dusted canvas above. His breathing was deep and relaxed. A few feet away, Lily, an 8-year-old girl, hummed a soft, tuneless song while gently sifting cool earth through her fingers. Her older brother, Tom, a 10-year-old boy, lay flat on his back on a thick blanket, his gaze fixed on the silvery path the moon cast across the smooth, dark surface of the lake just beyond the trees. The air was cool and still, carrying only the clean scents of pine needles, damp soil, and woodsmoke. Aside from the occasional distant hoot of an owl or the almost inaudible lapping of water, the stillness was complete. They were deep in a secluded clearing, surrounded by ancient trees and the quiet presence of the water. A palpable sense of peace and tranquility settled over the small group, each person finding their own quiet space in the communal calm under the expansive night sky.","location: nature
3 | mood: calm
4 | people:
5 | - age: 8
6 | gender: female
7 | name: Lily
8 | - age: 38
9 | gender: male
10 | name: Mark
11 | - age: 35
12 | gender: female
13 | name: Sarah
14 | - age: 10
15 | gender: male
16 | name: Tom
17 | time_of_day: night
18 | "
19 | "The late afternoon sun cast long, gentle shadows across the quiet workspace. Sarah, a female aged 32, sat at her desk, her gaze fixed on the monitor in front of her. The only sounds were the low hum of the computer equipment and the occasional soft click of a mouse. It was clearly an office environment, with rows of tidy desks, filing cabinets lining one wall, and a whiteboard covered in faded markers. Across the aisle, Mark, a male aged 45, was leaning back in his chair, a half-empty mug of lukewarm coffee beside his keyboard. He was looking out the large window, his expression peaceful and relaxed. The air in the room felt still and calm, a sense of tranquil productivity pervading the space. Neither person spoke, content in the quiet routine of the workday winding down. The light filtering through the blinds indicated the sun was lower in the sky, firmly placing the time in the afternoon. Everything felt unhurried and serene.","location: office
20 | mood: calm
21 | people:
22 | - age: 45
23 | gender: male
24 | name: Mark
25 | - age: 32
26 | gender: female
27 | name: Sarah
28 | time_of_day: afternoon
29 | "
30 | "Sarah, a 28 year old female, nervously hugged her arms, the silence of the place pressing in. Beside her, Mark, a 35 year old male, kept glancing towards the darker corners of the room. They were the only two left. The office occupied the entire fifth floor, a sprawling maze of empty cubicles and silent computers under the glow of emergency lights. Desks stretched out into the gloom, monitors reflecting only the dim light. Outside the large windows, the city was a distant sparkle against the absolute black of the night sky. It was well after midnight, the building quiet and deserted. An unsettling stillness hung in the air, broken only by the faint, inexplicable sounds the old building seemed to make in the dark. A cold draft slithered through the space, raising goosebumps on Sarah's arms. Mark shifted his weight, the sound unnaturally loud. They both felt it, the palpable sense of not being alone, of unseen eyes watching them from the shadows that clung to the edges of the empty office. It was an oppressive, chilling feeling.","location: office
31 | mood: scary
32 | people:
33 | - age: 35
34 | gender: male
35 | name: Mark
36 | - age: 28
37 | gender: female
38 | name: Sarah
39 | time_of_day: night
40 | "
41 | "The soft light of early morning slanted across Elm Street. Long shadows stretched from the old oak trees lining the quiet road. Birds chirped a gentle melody from the branches. The air was cool and still, carrying the faint scent of dew and blooming flowers from the small gardens fronting the houses.
42 |
43 | Clara, a female aged 65 with neatly pinned grey hair, walked slowly along the pavement. Her husband, David, a male aged 70 with a kindly smile, walked beside her, his hand resting lightly on her arm. They moved with unhurried steps, occasionally pointing out something in a garden or simply enjoying the peaceful quiet.
44 |
45 | A little further down the street, Anya, a female aged 35, held the hand of her son, Leo. Leo, a male aged 10, bounced slightly on his toes, his bright blue backpack bouncing with him. Anya smiled calmly at him, her expression peaceful. They were walking towards the end of the street, but their pace was relaxed, matching the serene atmosphere of the morning. The only sounds were their soft footsteps and the distant hum of traffic, muted by the surrounding quiet. It was a perfectly tranquil start to the day.","location: street
46 | mood: calm
47 | people:
48 | - age: 35
49 | gender: female
50 | name: Anya
51 | - age: 65
52 | gender: female
53 | name: Clara
54 | - age: 70
55 | gender: male
56 | name: David
57 | - age: 10
58 | gender: male
59 | name: Leo
60 | time_of_day: morning
61 | "
62 | "The late afternoon sun streamed through the large window, painting warm stripes across the polished wooden floor of the living room. Clara, a woman of 68 years, sat peacefully in her familiar armchair by the window. Her fingers moved steadily, knitting a soft, sky-blue yarn into a scarf, the rhythmic clicking of the needles a quiet accompaniment to the stillness. Across the room, Leo, her husband, a man aged 72, was stretched out comfortably on the sofa, a half-read paperback resting on his chest as his eyes gently closed. The only sounds were the soft click of the knitting needles and the distant, muffled hum of the refrigerator from the kitchen. A half-finished cup of herbal tea cooled on the side table next to Clara. The air in the room was still, carrying a faint, pleasant scent of lavender from a nearby potpourri bowl. They didn't need conversation; the quiet shared space was enough. A profound sense of calm permeated the air, a tranquil stillness that wrapped around them like a warm blanket. It was an ordinary moment, yet filled with a quiet, deep peace that belonged only to this home on this peaceful afternoon.","location: home
63 | mood: calm
64 | people:
65 | - age: 68
66 | gender: female
67 | name: Clara
68 | - age: 72
69 | gender: male
70 | name: Leo
71 | time_of_day: afternoon
72 | "
73 | "The dim, foggy light of early morning struggled to penetrate the thick glass of the kitchen window in the old house. Sarah, a woman of thirty-five, stood frozen near the counter, a box of cereal forgotten in her hand. David, her husband, a man of thirty-eight, slowly lowered his phone, his eyes wide with alarm as he sat at the small breakfast table. Their son, Leo, a seven-year-old boy, was already rigid, clutching a dinosaur toy, his gaze fixed on the locked basement door with an unnerving intensity. The air, usually filled with the gentle sounds of a waking home, was unnaturally silent, save for the distant, almost imperceptible hum of the refrigerator. Then it came again. Scraaaaaape. A long, drawn-out sound, like something heavy and rough being dragged across the concrete floor of the basement below. It was slow, deliberate, and utterly alien to the familiar noises of their home. The sound stopped, followed by a soft, heavy thud against the door itself. A cold dread, deeper than any morning chill, settled over the room, tightening around their chests. They didn't dare speak or move. The silence that followed felt heavier than the scraping sound, pregnant with unknown horror lurking just beyond the wood. It was morning, they were home, and something terrifying was at their basement door.","location: home
74 | mood: scary
75 | people:
76 | - age: 38
77 | gender: male
78 | name: David
79 | - age: 7
80 | gender: male
81 | name: Leo
82 | - age: 35
83 | gender: female
84 | name: Sarah
85 | time_of_day: morning
86 | "
87 | "Clara, a woman of sixty-five, walked slowly along Elm Street. Beside her skipped Leo, a boy of ten years. The morning sun cast long, gentle shadows across the dew-kissed lawns lining the road. The street was quiet, the usual daytime bustle not yet begun. Only the distant sound of a bird could be heard. Clara held Leo's small hand, her pace unhurried and steady. Leo pointed at a squirrel scampering up an oak tree, a soft smile on his face. There was no rush, no urgency in their steps or the air around them. The light was soft and golden, painting the world in peaceful hues. They simply walked, enjoying the quiet start to the day, the gentle rhythm of their footsteps on the pavement the only sound breaking the still air. The mood was one of quiet contentment and peace.","location: street
88 | mood: calm
89 | people:
90 | - age: 65
91 | gender: female
92 | name: Clara
93 | - age: 10
94 | gender: male
95 | name: Leo
96 | time_of_day: morning
97 | "
98 | "Deep in Blackwood Forest, the air hung heavy and damp. Ancient trees towered around them, their bark rough and ancient, their branches like skeletal fingers against the oppressive darkness that pressed in from all sides. Not even a sliver of starlight pierced the thick canopy woven overhead. Sarah, a 22-year-old woman, huddled closer to the small, flickering campfire, pulling her thin jacket tighter. Her brother, Ben, 23, male, nervously poked the dying embers with a stick, his eyes darting into the gloom. Across from them sat Chloe, a 19-year-old female, her face pale and her eyes wide with fear. Next to her, Liam, a 20-year-old male, gripped a small, inadequate flashlight, its beam barely cutting through the suffocating blackness. They were miles from any road, any light, any sign of civilization. It was late night, deep in the terrifying woods.
99 |
100 | A twig snapped sharply in the darkness just beyond the firelight, the sound unnaturally loud in the silent woods. A cold wind whispered through the leaves high above, sounding like a mournful sigh. Then, a low, guttural growl echoed from the impenetrable shadows surrounding their small circle of light. Sarah stifled a scream, pressing a hand to her mouth. Ben froze, the stick falling from his numb fingers. Chloe whimpered, burying her face in her hands. Liam shakily raised the weak beam of his flashlight towards the sound, but it revealed only more darkness and the looming shapes of the trees. The growl came again, closer this time, accompanied by a distinct shuffling sound on the leaf litter. They were definitely not alone in this terrifying, moonless night, and whatever was out there sounded big and hungry. The air grew colder, thick with fear.","location: nature
101 | mood: scary
102 | people:
103 | - age: 23
104 | gender: male
105 | name: Ben
106 | - age: 19
107 | gender: female
108 | name: Chloe
109 | - age: 20
110 | gender: male
111 | name: Liam
112 | - age: 22
113 | gender: female
114 | name: Sarah
115 | time_of_day: night
116 | "
117 | "The office was draped in a deep quiet, broken only by the distant hum of the city below. Outside the large pane windows, the sky was a canvas of black, dotted with the pinpricks of stars and the glow of distant buildings. It was late, the kind of late where the building felt empty and vast. A profound sense of stillness hung in the air, a peaceful calm that settled over the remaining occupants.
118 |
119 | Sarah, a woman of 35, sat at her desk, her face illuminated by the soft glow of her monitor. She was reading, her expression serene and focused. Nearby, Michael, a man aged 52, moved slowly and deliberately as he tidied a stack of files, his actions precise and unhurried. Across the open space, Alex, a non-binary person aged 28, stood by the window, looking out at the quiet city below. They took a slow, deep breath, their shoulders relaxed, embodying the quiet tranquility of the hour. There was no rush, no urgent tasks, just the simple, calm act of existing in the quiet, late-night space.","location: office
120 | mood: calm
121 | people:
122 | - age: 28
123 | gender: other
124 | name: Alex
125 | - age: 52
126 | gender: male
127 | name: Michael
128 | - age: 35
129 | gender: female
130 | name: Sarah
131 | time_of_day: night
132 | "
133 | "The sun cast long, gentle shadows across the quiet expanse of Elm Street. The air was cool and smelled faintly of dew and blooming jasmine from nearby gardens lining the pavement. It was early, the kind of morning where sounds carried clearly but were few and far between.
134 |
135 | Clara, a woman of sixty-five years with silver hair pulled back neatly, sat on her front stoop. A simple knitted shawl was draped over her shoulders, a comfort against the lingering morning chill. Her hands were busy with a small embroidery hoop, creating delicate floral patterns on a piece of white linen with practiced, unhurried movements.
136 |
137 | Down the pavement, Ben, an eight-year-old boy with bright, curious eyes that took in everything, slowly rode his small red bicycle. He wasn't rushing anywhere, just pedaling easily, observing the quiet street scene with a sense of calm contentment. A soft, tuneless whistle escaped his lips, barely audible in the stillness.
138 |
139 | Walking towards them from the corner was Leo, a man of thirty years dressed in casual trousers and a light jacket. He held a small paper bag gently in one hand, likely containing fresh pastries from the bakery down the road. His steps were unhurried, his shoulders relaxed, his expression peaceful. He offered a gentle nod and a soft smile to Clara as he passed her stoop. She returned the nod warmly, her needle pausing for just a moment before resuming its steady work. Ben continued his slow, calm ride, the only sound his gentle pedaling and occasional soft whistle echoing slightly in the quiet morning air. Elm Street remained tranquil, bathed in the soft, golden light of the early day.","location: street
140 | mood: calm
141 | people:
142 | - age: 8
143 | gender: male
144 | name: Ben
145 | - age: 65
146 | gender: female
147 | name: Clara
148 | - age: 30
149 | gender: male
150 | name: Leo
151 | time_of_day: morning
152 | "
153 | "The low hum of quiet conversation filled the air, mingling with the soft clink of glasses. Outside, the streetlights cast long shadows onto the wet pavement, confirming the late hour of the night. Inside The Old Oak, a cozy pub with dark wood and warm lighting, a sense of calm settled over the scattered patrons.
154 |
155 | At a corner table, David, a male aged 45, leaned back in his chair, a half-empty pint beside him. Across from him sat Sarah, a female aged 42. She smiled gently as David spoke, occasionally taking a slow sip from her drink.
156 |
157 | Nearby, at the bar, Tom, a male aged 28, quietly wiped down the counter, his movements steady and unhurried. He exchanged a brief, friendly nod with Emily, a female aged 30, who was carefully arranging bottles on a shelf behind the bar. The atmosphere was one of comfortable quiet, a peaceful end to the day in the heart of the old pub. The occasional soft laughter from another table didn't break the overall sense of tranquility that permeated the room.","location: pub
158 | mood: calm
159 | people:
160 | - age: 45
161 | gender: male
162 | name: David
163 | - age: 30
164 | gender: female
165 | name: Emily
166 | - age: 42
167 | gender: female
168 | name: Sarah
169 | - age: 28
170 | gender: male
171 | name: Tom
172 | time_of_day: night
173 | "
174 | "Leo, a male aged 28, kicked a small stone along the grey pavement. Beside him, Chloe, a female aged 26, laughed, her breath forming a faint mist in the cool air. They strolled down Oak Avenue, a quiet street lined with closed shops and tall lampposts. Above, the sky was a vast expanse of deep black, pricked by distant stars and illuminated only by the soft, golden pools of light cast by the street lamps. It was late, well after the usual rush had died down. The only sounds were their footsteps and their easy conversation.
175 |
176 | Chloe recounted a funny story from work, her eyes sparkling in the lamplight. Leo listened, a wide smile fixed on his face. He reached out and gently took her hand as they walked. The feeling of her hand in his, the shared laughter echoing softly between the buildings, and the peaceful quiet of the street under the night sky filled them both with a profound sense of happiness. They walked on, content in each other's company, the simple moment feeling perfect.","location: street
177 | mood: happy
178 | people:
179 | - age: 26
180 | gender: female
181 | name: Chloe
182 | - age: 28
183 | gender: male
184 | name: Leo
185 | time_of_day: night
186 | "
187 | "The streetlights cast long, weak shadows on the damp pavement. It was late night, the kind of deep darkness where the world felt asleep except for the pools of yellow light beneath the lamps. A heavy silence hung in the air, thick with unspoken sorrow, giving the whole scene a profoundly sad atmosphere.
188 |
189 | Four figures stood close together near the corner. Clara, a female in her late fifties, wrapped her arms around herself, her face drawn tight with grief. Beside her was David, a male also in his late fifties, his gaze fixed on the ground, his posture conveying deep weariness. A young woman, Emily, in her early twenties, stood a few feet away, her shoulders shaking slightly, occasionally wiping tears from her eyes. Next to Emily was Ben, a young man in his early twenties, his expression one of quiet despair, his hands clasped tightly in front of him. They stood on the quiet street, the dark shapes of houses looming behind them, sharing the heavy weight of their shared sadness under the night sky.","location: street
190 | mood: sad
191 | people:
192 | - age: 22
193 | gender: male
194 | name: Ben
195 | - age: 58
196 | gender: female
197 | name: Clara
198 | - age: 58
199 | gender: male
200 | name: David
201 | - age: 22
202 | gender: female
203 | name: Emily
204 | time_of_day: night
205 | "
206 | "Maria, a female aged 28, practically bounced along the sun-dappled pavement. Her companion, Ben, a male aged 30, watched her with an amused grin, hands tucked into his pockets. They were walking down Elm Street, a busy thoroughfare just starting to fill with the sounds of the city gearing up for the day. The early morning sun, still low in the sky, painted the tops of the buildings in warm orange hues and cast long, fading shadows from the lampposts. Shopkeepers were lifting their metal shutters, and the invigorating smell of fresh bread drifted from a bakery on the corner.
207 |
208 | Maria was talking excitedly about their plans for the upcoming weekend, her eyes sparkling with anticipation. Ben nodded, adding a witty comment that made her burst into laughter, a bright, joyful sound that cut happily through the low hum of distant traffic and the clatter of early deliveries. Their mood was undeniably happy, a light, optimistic energy radiating from them as they navigated the waking street together. Each step felt easy, full of the simple pleasure of shared company on a beautiful morning. The air felt fresh and held the promise of a good day, a feeling they both shared as they strolled along the street, completely content in their shared happiness.","location: street
209 | mood: happy
210 | people:
211 | - age: 30
212 | gender: male
213 | name: Ben
214 | - age: 28
215 | gender: female
216 | name: Maria
217 | time_of_day: morning
218 | "
219 | "On the cracked grey pavement beside a quiet street, three figures stood close together. Arthur, a man in his early sixties, his shoulders slumped, watched his daughter. Clara, a woman in her mid-thirties with red-rimmed eyes, knelt before her son. Leo, a boy of eight years old, was clutching Clara's leg, his small body shaking slightly.
220 |
221 | The air was cool, carrying the crispness of dawn. The sky above was a pale grey, just beginning to lighten towards the east. Aside from a few parked cars lining the curb and a distant bus engine rumble, the street was mostly empty, save for the occasional hurried figure. It was undeniably morning.
222 |
223 | Arthur remained silent, his face etched with sorrow. Clara hugged Leo tightly, a single tear escaping to trace a path down her cheek onto his hair. Leo buried his face in her shoulder, muffled sobs shaking his small body. The silence between them was heavy, thick with unspoken grief and the undeniable sadness of their parting on that quiet street.","location: street
224 | mood: sad
225 | people:
226 | - age: 62
227 | gender: male
228 | name: Arthur
229 | - age: 35
230 | gender: female
231 | name: Clara
232 | - age: 8
233 | gender: male
234 | name: Leo
235 | time_of_day: morning
236 | "
237 | "The only light in the room was the faint glow from the streetlamp outside. Elena, a female aged thirty-five, sat in the armchair, her shoulders slumped. Her gaze was distant, lost in the quiet darkness of their house. Across the room, Thomas, a male aged thirty-eight, sat rigidly on the sofa. His hands were clasped tight, his face unreadable in the gloom. Neither spoke a word. The silence in their home was thick, heavy with unspoken sorrow.
238 |
239 | The grandfather clock in the hall ticked loudly, each second amplifying the stillness of the night. Outside, the world was deep in slumber, but inside, they were wide awake. A single tear tracked slowly down Elena's cheek. Thomas finally let out a long sigh, a sound full of sadness that filled the empty space between them. It was late, well into the night, and a profound sadness wrapped around them in their familiar home. Their house felt cold and distant tonight, a silent witness to their shared despair.","location: home
240 | mood: sad
241 | people:
242 | - age: 35
243 | gender: female
244 | name: Elena
245 | - age: 38
246 | gender: male
247 | name: Thomas
248 | time_of_day: night
249 | "
250 | "The afternoon sun barely filtered through the thick canopy as Sarah, a sixteen-year-old female, pushed a low-hanging branch aside. Behind her, Michael, a seventeen-year-old male, scanned the dense woods nervously. ""Are you sure this was the right way, Tom?"" he asked, his voice tight. Tom, also seventeen and male, consulted a crumpled map, a frown creasing his brow. ""It should be... just a little further,"" he mumbled, though his eyes darted around the deepening shadows. Jessica, a fifteen-year-old female, clutched her arms, shivering despite the mild air. A twig snapped sharply nearby, and they all froze, listening intently. The silence that followed felt heavy, oppressive. They were miles from the car, surrounded by ancient trees that seemed to lean in, and the light was fading faster than they expected. A low, guttural sound echoed from deeper in the trees, and Jessica let out a small whimper. Panic began to set in, a cold knot tightening in each of their stomachs.","location: nature
251 | mood: scary
252 | people:
253 | - age: 15
254 | gender: female
255 | name: Jessica
256 | - age: 17
257 | gender: male
258 | name: Michael
259 | - age: 16
260 | gender: female
261 | name: Sarah
262 | - age: 17
263 | gender: male
264 | name: Tom
265 | time_of_day: afternoon
266 | "
267 | "Clara, a woman aged sixty-five, ambled along the pavement. Beside her was Leo, a ten-year-old boy, her grandson. They were on a quiet street bordered by houses and old trees. The afternoon sun cast long, soft shadows across the road and sidewalk. The air was warm and still, holding the scent of nearby honeysuckle.
268 |
269 | They walked slowly, not in a hurry to get anywhere. Clara carried a small, empty canvas bag, her steps even and unhurried. Leo occasionally scuffed the toe of his trainer against the grey concrete path, watching the dust motes dance in the sunlight. There was no traffic noise, only the distant chirping of birds and the gentle rustle of leaves. The silence between them was comfortable, filled with the peaceful atmosphere of the late day. Clara felt a sense of quiet contentment, and Leo seemed equally relaxed, his gaze drifting leisurely from the garden fences to the sky. It was a moment of simple, undisturbed calm.","location: street
270 | mood: calm
271 | people:
272 | - age: 65
273 | gender: female
274 | name: Clara
275 | - age: 10
276 | gender: male
277 | name: Leo
278 | time_of_day: afternoon
279 | "
280 | "The low hum of conversation in the pub felt distant, a muted background to the heavy quiet in one corner. Outside, the streetlights cast long, empty shadows across damp pavements; it was well past closing time for most shops, the city settling into the deep hours of the night. Inside The Old Oak, the air was thick with the smell of old wood, stale beer, and a pervasive sense of melancholy that clung like smoke. Four people sat hunched around a small, sticky table, their forms illuminated dimly by a single flickering lamp overhead, casting long, doleful shadows.
281 |
282 | John, a man of 55, stared intently into his half-empty pint, his shoulders slumped in utter defeat, his face lined with exhaustion and sorrow. Beside him, Mary, a woman of 52, quietly dabbed at her eyes with a crumpled napkin, her face etched with a grief she couldn't hide. Across from them sat their children, their youthful energy seemingly drained away. Sarah, a young woman of 28, rested her head heavily in her hands, her long hair obscuring her face from view, her posture one of deep despair. Her brother, Tom, a man of 30, slowly stirred his drink with a glazed, unfocused look, his gaze fixed on the condensation on the glass, as if finding some small, cold comfort there.
283 |
284 | Nobody spoke for a long moment, the usual pub chatter and distant laughter from the bar unable to penetrate the thick bubble of their shared sorrow. A heavy, suffocating silence hung between them, punctuated only by Mary's quiet sniffles and John's deep, ragged sigh that seemed to carry the weight of years of hardship. They weren't sharing stories or jokes; they were simply enduring the quiet, shared burden that made the already dim pub feel even darker and colder, a sanctuary of sadness in the late night.","location: pub
285 | mood: sad
286 | people:
287 | - age: 55
288 | gender: male
289 | name: John
290 | - age: 52
291 | gender: female
292 | name: Mary
293 | - age: 28
294 | gender: female
295 | name: Sarah
296 | - age: 30
297 | gender: male
298 | name: Tom
299 | time_of_day: night
300 | "
301 | "Three people sat huddled at a small, worn wooden table. Sarah, a woman of thirty years, picked listlessly at the condensation ring her empty glass left on the surface. Across from her sat Tom, a male aged thirty-two, his gaze fixed somewhere past her shoulder, his expression vacant and drawn. Beside him, Liam, a twenty-eight-year-old male, slowly rotated his half-empty pint glass of dark ale, following the movement with heavy, tired eyes.
302 |
303 | The air hung thick with the low murmur of distant conversations and the faint, familiar scent of stale beer and cleaning fluid rising from the sticky floor. Outside the arched window, the world was a deep, impenetrable black, reflecting only the room's dim, amber light cast by low-hanging lamps. It was late, well past the usual peak hours. The pub felt oddly quiet tonight, the expected Friday night buzz replaced by a heavy stillness that seemed to press down on their shoulders. Each sip of their drinks felt heavy, a slow descent into a shared, unspoken weight of disappointment. No one spoke more than a few hushed words. The silence wasn't comfortable; it was thick with regret. The only sounds were the occasional clink of glass from the distant bar or a shallow sigh escaping one of their lips in the gloom. They just sat there, bathed in the low light, each lost in their own quiet sorrow under the weight of the night.","location: pub
304 | mood: sad
305 | people:
306 | - age: 28
307 | gender: male
308 | name: Liam
309 | - age: 30
310 | gender: female
311 | name: Sarah
312 | - age: 32
313 | gender: male
314 | name: Tom
315 | time_of_day: night
316 | "
317 | "Sarah, sixteen years old and female, shivered despite the layers she wore. A cold dampness seemed to seep from the ground into her bones. Beside her, Tom, a seventeen-year-old male, nervously scanned the dense, moonless woods surrounding their small clearing. Every shadow seemed to twist into something menacing. Liam, fifteen and male, clutched a flashlight tightly, its beam cutting a shaky circle into the oppressive darkness that pressed in from all sides. They were deep in Blackwood Forest, miles from any road, the only sounds the rustling of unseen creatures just beyond the reach of their firelight and the frantic pounding of their own hearts against their ribs. The air was thick with the smell of damp earth and decaying leaves, carrying an unnerving stillness. A twig snapped sharply from the impenetrable shadows just beyond their campfire's weak glow, loud in the silence. Tom froze, his eyes wide, staring into the blackness. Liam whimpered softly, pulling closer to Sarah. Sarah squeezed her eyes shut for a second, a wave of cold dread washing over her. The darkness felt alive, watching them, waiting. Then, a low guttural growl rumbled from the trees, closer this time, vibrating through the ground beneath their feet. Panic flared, sharp and sudden. They were not alone, and whatever was out there was terrifyingly close.","location: nature
318 | mood: scary
319 | people:
320 | - age: 15
321 | gender: male
322 | name: Liam
323 | - age: 16
324 | gender: female
325 | name: Sarah
326 | - age: 17
327 | gender: male
328 | name: Tom
329 | time_of_day: night
330 | "
331 | "Eleanor, a woman of sixty-five years, sat hunched slightly over a small, circular wooden table, its surface marked by countless rings from forgotten glasses. A cascade of silver-grey hair was pulled back loosely from a face etched with lines of profound sorrow, her tired eyes fixed on the condensation gathering on her glass of amber liquid. Her shoulders were slumped, carrying a weight that seemed immense. Across from her sat Thomas, a man of thirty, his youthful features clouded with concern. He nursed a half-empty pint, watching her with a quiet intensity, his own usual easygoing nature subdued by the heavy atmosphere.
332 |
333 | They were in The Old Plough, a quiet pub tucked away on a forgotten side street. The air inside was cool and still, holding the faint, familiar scent of stale beer and old wood polish. It was the middle of the afternoon, but the main bar area was almost entirely empty, the low, warm lighting creating pools of shadow that did little to dispel the gloom. Sunlight struggled to penetrate the dusty, leaded windows, casting weak, elongated trapezoids onto the worn carpet. The only sounds were the quiet hum of the beer coolers behind the bar and the distant, rhythmic clinking of glasses being washed, a mournful soundtrack in the quiet space.
334 |
335 | Eleanor finally lifted her gaze, her eyes, full of a deep, weary sadness, meeting Thomas's for just a moment before looking away again. A deep sigh escaped her lips, a sound filled with weary resignation. Thomas started to speak, his mouth opening slightly as if to offer comfort, but then closed it without uttering a word. The silence returned, heavier than before, a palpable presence in their small, isolated space within the quiet pub. Grief hung in the air between them, thick and suffocating, a shared burden in the quiet, sad afternoon.","location: pub
336 | mood: sad
337 | people:
338 | - age: 65
339 | gender: female
340 | name: Eleanor
341 | - age: 30
342 | gender: male
343 | name: Thomas
344 | time_of_day: afternoon
345 | "
346 | "The air hung thick and still in The Rusty Tankard, a pub tucked away on a side street. Dust motes danced in the weak shafts of afternoon sun filtering through the grimy windows. It was unusually quiet for this time of day.
347 |
348 | At a corner table sat a man, his face hidden mostly in shadow. This was Arthur, a male, aged around sixty, his eyes like chips of cold blue ice. Opposite him perched Sarah, a young woman of twenty-two, female, her knuckles white where she gripped her empty glass.
349 |
350 | Standing silently by the bar, polishing a glass that was already spotless, was David, a male, perhaps fifty years old, his gaze fixed, unblinking, on the table. No music played. No other patrons were there. Only the low hum of the ancient cooler broke the silence.
351 |
352 | Arthur leaned forward slowly, a thin smile spreading across his face. ""We've been expecting you, Sarah,"" he rasped, his voice like dry leaves skittering on pavement. David didn't stop polishing the glass, but his head tilted almost imperceptibly, his eyes still fixed on Sarah. Sarah swallowed hard, her eyes darting between the two men. The silence stretched, heavy and suffocating. It felt like a trap, the shadows deepening around them as the afternoon wore on.","location: pub
353 | mood: scary
354 | people:
355 | - age: 60
356 | gender: male
357 | name: Arthur
358 | - age: 50
359 | gender: male
360 | name: David
361 | - age: 22
362 | gender: female
363 | name: Sarah
364 | time_of_day: afternoon
365 | "
366 | "The heavy wooden door creaked inward, revealing a pub steeped in a strange, oppressive silence. It was just past dawn, the sun barely clearing the horizon, casting long, distorted shadows across the dusty floorboards. This was The Salty Mug, a place usually bustling even in the morning with delivery drivers getting coffee, but today it was deserted and cold. Dust motes danced in the weak shafts of sunlight cutting through the grimy windows above the bar. The air felt thick and unnerving. Four figures were present, the only signs of life.
367 |
368 | Huddled at a dark corner table sat John, a man of 45, male, his face pale and glistening with sweat. Across from him sat Sarah, 30, female, her body rigid, hands clasped so tightly her knuckles were white. Next to her was Michael, 60, male, whose usual cheerful demeanor was replaced by a wide-eyed stare fixed on the empty space behind the bar. The only sound was the slow, rhythmic drip of the leaky tap, echoing in the vast, silent room. Near the entrance, standing perfectly still as if frozen, was Emily, 22, female, her gaze darting nervously towards the dark stairwell leading to the cellar. A chilling sense of dread hung in the air, a palpable fear that tightened their chests and made the quiet morning feel like the edge of the world. Something was in the pub with them.","location: pub
369 | mood: scary
370 | people:
371 | - age: 22
372 | gender: female
373 | name: Emily
374 | - age: 45
375 | gender: male
376 | name: John
377 | - age: 60
378 | gender: male
379 | name: Michael
380 | - age: 30
381 | gender: female
382 | name: Sarah
383 | time_of_day: morning
384 | "
385 | "The air in The Rusty Tankard felt heavy, thick with the scent of stale beer and unspoken words. Outside, the streetlights cast long, weak shadows, the sky a deep, starless black. It was late, well past nine, the usual evening bustle having faded into a quiet murmur.
386 |
387 | Around a small, sticky table sat four people. There was David, a man of 58, his shoulders slumped, eyes fixed on the condensation ring his glass left on the wood. Across from him was his daughter, Maria, a woman of 32, her fingers tracing patterns on the tabletop, a deep sigh escaping her lips every so often. To David's left sat their neighbour, Mr. Henderson, a quiet man of 65, who simply held his drink, his gaze distant. Completing the group was Sarah, a young woman of 25, a friend of Maria's, who looked pale and drawn, her voice barely a whisper when she spoke. The clinking of glasses from the bar seemed miles away, unable to break the palpable sense of loss that hung over their small gathering. Each person seemed wrapped in their own private world of sorrow, the shared space offering little comfort against the cold reality they were facing together, yet alone.","location: pub
388 | mood: sad
389 | people:
390 | - age: 58
391 | gender: male
392 | name: David
393 | - age: 32
394 | gender: female
395 | name: Maria
396 | - age: 65
397 | gender: male
398 | name: Mr. Henderson
399 | - age: 25
400 | gender: female
401 | name: Sarah
402 | time_of_day: night
403 | "
404 | "The first light of day was painting the sky a soft orange above Elm Street. The pavement was still cool from the night. A gentle quiet hung in the air, broken only by the distant chirping of birds and the rustle of leaves in a light breeze. The mood was undeniably calm.
405 |
406 | On a simple wooden bench near the corner sat Evelyn, 68 years old, a female with kind eyes. Beside her was Arthur, a 70 year old male, his arm resting comfortably along the back of the bench. They were talking in low, peaceful tones, their faces relaxed as they watched the day begin on their street.
407 |
408 | Walking slowly along the sidewalk was Liam, a 25 year old male, holding a leash attached to a sleepy looking golden retriever. Liam seemed in no hurry, pausing to breathe in the cool morning air and look up at the sky. His steps were unhurried and his expression serene.
409 |
410 | Across the street, sitting on the top step of a small porch, was Maya, a 22 year old female. She held a warm mug in her hands, occasionally taking a sip. She was simply observing the quiet awakening of the street, a picture of peaceful contentment. The scene on the street was one of perfect morning calm.","location: street
411 | mood: calm
412 | people:
413 | - age: 70
414 | gender: male
415 | name: Arthur
416 | - age: 68
417 | gender: female
418 | name: Evelyn
419 | - age: 25
420 | gender: male
421 | name: Liam
422 | - age: 22
423 | gender: female
424 | name: Maya
425 | time_of_day: morning
426 | "
427 | "Sarah, a woman of forty, sat on the worn living room couch. Beside her, Tom, a man of forty-two, stared blankly at the dark window. Their sixteen-year-old daughter, Emily, a quiet girl, huddled in the armchair across from them, pulling a faded blanket tighter around her shoulders.
428 |
429 | The only light in the room came from a single lamp casting long shadows. Outside, the streetlights were the only signs of life against the deep black sky. It was late, much later than any of them usually stayed up, but sleep felt impossible tonight. The air in their house felt heavy, thick with unspoken grief. Sarah occasionally wiped a tear from her cheek. Tom sighed deeply, a sound that seemed to carry the weight of everything. Emily just looked down at her hands, her face pale and drawn. The house, their familiar home, felt colder than usual despite the lack of a chill in the air. It was just the three of them, bound together in the quiet, dark night, wrapped in a profound sadness.","location: home
430 | mood: sad
431 | people:
432 | - age: 16
433 | gender: female
434 | name: Emily
435 | - age: 40
436 | gender: female
437 | name: Sarah
438 | - age: 42
439 | gender: male
440 | name: Tom
441 | time_of_day: night
442 | "
443 | "The forest floor was a carpet of unseen decay under the absolute blackness. Moonlight struggled to pierce the thick canopy overhead, leaving the woods plunged into a profound, unnerving darkness. The air was still and cold, amplifying every distant snap of a twig or rustle of leaves into something monstrous.
444 |
445 | Three figures huddled together on the barely discernible trail. There was Alex, a seventeen year old female, her breath catching in ragged gasps. Beside her was Ben, an eighteen year old male, trying to project calm but his hands were visibly trembling as he held their single, weak flashlight. Clinging to Ben's arm was Chloe, a sixteen year old female, her wide eyes darting into the oppressive shadows surrounding them. A sound, like something large dragging itself through the underbrush, came from their left. It wasn't an animal they recognized. It sounded heavy, deliberate. Then, silence fell again, heavier and more terrifying than the noise had been. They felt an undeniable presence in the darkness, watching them, waiting. The silence stretched, thick with dread, until a low, guttural noise broke it, closer this time.","location: nature
446 | mood: scary
447 | people:
448 | - age: 17
449 | gender: female
450 | name: Alex
451 | - age: 18
452 | gender: male
453 | name: Ben
454 | - age: 16
455 | gender: female
456 | name: Chloe
457 | time_of_day: night
458 | "
459 | "The faint smell of stale beer hung in the air, mingling with the sharp scent of disinfectant. Morning light, weak and grey, filtered through the high, grimy windows of The Salty Dog pub. Only one table near the back was occupied.
460 |
461 | Sarah, a woman in her early thirties, sat with her hands wrapped around a mug, staring blankly at the chipped Formica surface. Next to her was Tom, a man in his late forties, his shoulders slumped, occasionally letting out a quiet sigh that seemed to carry the weight of the room. Opposite them sat Emily, a young woman barely in her twenties, her face streaked with dried tears, periodically dabbing at her eyes with a tissue. At the head of the table sat David, a man in his sixties, his normally cheerful face set in a deep frown, gazing into his untouched pint of ale as if searching for answers at the bottom of the glass. The silence was thick and heavy, broken only by the distant clatter from the empty bar area. No one spoke, each lost in their own quiet sorrow that filled the morning air of the usually bustling pub.","location: pub
462 | mood: sad
463 | people:
464 | - age: 65
465 | gender: male
466 | name: David
467 | - age: 21
468 | gender: female
469 | name: Emily
470 | - age: 32
471 | gender: female
472 | name: Sarah
473 | - age: 47
474 | gender: male
475 | name: Tom
476 | time_of_day: morning
477 | "
478 | "The air in The Rusty Mug hung thick with the smell of stale beer and damp wood. Only a few dim bulbs cast pools of weak light across the worn tables. Outside, the world was absolute blackness, the kind that only comes deep in the night. It was well past midnight.
479 |
480 | Arthur, a man aged sixty-five, sat alone at a small table near the back. His male form was hunched, his shoulders tight with tension. He nervously traced the rim of his glass. He just wanted the night to be over.
481 |
482 | A figure emerged from the shadows near the bar. It was Elara, a woman who looked no older than thirty years. Her female eyes seemed unnaturally bright in the gloom as she approached Arthur's table without a sound. She didn't ask to sit; she simply slid into the opposite chair, her gaze fixed on him. A slow, unsettling smile spread across her face, but it didn't touch her eyes. Arthur felt a chill colder than the night air creep up his spine. This wasn't just a pub; it felt like a trap closing around him. The silence between them stretched, thick with unspoken dread.","location: pub
483 | mood: scary
484 | people:
485 | - age: 65
486 | gender: male
487 | name: Arthur
488 | - age: 30
489 | gender: female
490 | name: Elara
491 | time_of_day: night
492 | "
493 | "Elara, a female child of eight years, clung to her father Bens hand as if it were her only lifeline. Ben, a man, thirty-five years old, swallowed hard, attempting to keep his voice steady, but a tremor ran through his arm. They stood motionless on a deserted cobbled street, the ancient stones uneven and slick with the mornings chill dampness. Towering old brick buildings pressed in on them from both sides, their upper floors lost in the low-hanging gloom. It was early morning, the air thick and cold with a grey fog that muffled every distant sound, creating an unnerving silence. The faint, pale light struggled to penetrate the mist, making the street feel isolated and forgotten.
494 |
495 | Suddenly, a form materialized in the swirling grey ahead. It was Marcus, a male, aged fifty, his large silhouette barely visible through the fog. He stood perfectly still, a silent, imposing figure that radiated a profound sense of menace without uttering a single word. Elara let out a small, stifled cry, pressing herself against Bens leg, her small body trembling. Ben felt a primal wave of terror wash over him, but he held his ground, stepping slightly in front of Elara, his heart pounding a frantic rhythm against his ribs. The silence deepened, broken only by their own ragged breathing echoing in the fog. Marcus remained unmoving, his presence a heavy weight in the dense air, making the empty street feel like a trap. The cold fog felt like a shroud, amplifying the chilling fear that gripped them both on that desolate morning.","location: street
496 | mood: scary
497 | people:
498 | - age: 35
499 | gender: male
500 | name: Ben
501 | - age: 8
502 | gender: female
503 | name: Elara
504 | - age: 50
505 | gender: male
506 | name: Marcus
507 | time_of_day: morning
508 | "
509 | "The office was unnervingly quiet, the kind of silence that presses in on you. Outside the tall windows, the city lights were just blurry smears against the absolute black of the sky. It was long past midnight. Only a few desk lamps and a single, failing fluorescent light down the main corridor broke the gloom. That light flickered erratically, making the shadows leap and twist like malevolent shapes on the grey carpet.
510 |
511 | Eliza, a 28-year-old female with dark circles under her wide, nervous eyes, hugged her arms to herself, shivering despite the mild temperature. Ben, a 35-year-old male trying poorly to project calm confidence, kept clearing his throat and adjusting his glasses. Across the silent space, Chloe, a quiet 22-year-old female known for her composure, sat unnaturally still, her gaze fixed on the deep shadows pooling in the corner of a nearby cubicle. Mr. Peterson, their 60-year-old male manager, usually the picture of steady authority, stood by the door to the empty conference room, his face pale and drawn.
512 |
513 | A faint, scratching sound started somewhere in the ceiling tiles above them. It was followed by a low groan from the direction of the server room. Eliza gasped softly. Ben's hand went instinctively to his phone. The air felt thick and cold, charged with a terrifying anticipation. Every shadow seemed deeper, every sound magnified. They were the only living souls on this floor of the towering building, trapped with a growing dread that something unseen was watching them from the darkness.","location: office
514 | mood: scary
515 | people:
516 | - age: 35
517 | gender: male
518 | name: Ben
519 | - age: 22
520 | gender: female
521 | name: Chloe
522 | - age: 28
523 | gender: female
524 | name: Eliza
525 | - age: 60
526 | gender: male
527 | name: Mr. Peterson
528 | time_of_day: night
529 | "
530 | "Clara, a girl of ten years, hugged her knees tightly on the worn living room sofa. Her eyes, wide and darting, scanned the familiar walls that now seemed to press in on her, stripping away their usual comfort. David, a man of forty-five, her father, stood by the window overlooking the front yard, his back rigid, his hands clenched at his sides, a stillness about him that was more unnerving than any movement.
531 |
532 | The late afternoon sun struggled to pierce the thick, bruised clouds hanging low over their small house, casting the world outside in a sickly grey light. Inside, the rooms felt unnaturally dim for this time of day, the usual warmth of their home replaced by a creeping, pervasive chill that sank into their bones. Shadows stretched long and distorted across the floor and walls, lurking in the corners of the living room, making familiar furniture look like hunched, waiting figures. The air was heavy, silent, save for the frantic, uneven pounding of Clara's heart against her ribs and the shallow, strained sound of David's breathing.
533 |
534 | A distinct, slow floorboard creak echoed from the empty upstairs hallway, directly above them. It was loud in the stillness. Both Clara and David froze instantly, their heads snapping upwards in unison, eyes wide with a shared, silent terror that mirrored each other. It creaked again, slower this time, a deliberate, measured sound in the oppressive quiet of their home. It sounded unmistakably like footsteps, moving towards the top of the stairs. David slowly reached for the heavy umbrella leaning by the door, his knuckles white with tension. Clara whimpered low in her throat, burying her face in her hands, the terrifying feeling that they were absolutely not alone in the house gripping her like a cold, unseen hand. The afternoon outside faded further into a premature twilight gloom, leaving the entire house steeped in a palpable dread that settled heavy on everything, promising something terrible.","location: home
535 | mood: scary
536 | people:
537 | - age: 10
538 | gender: female
539 | name: Clara
540 | - age: 45
541 | gender: male
542 | name: David
543 | time_of_day: afternoon
544 | "
545 | "Clara, a woman in her early seventies, sat nestled in her worn, but comfortable, armchair. The light filtering through the large bay window wasn't the harsh brightness of midday; it was the softer, elongated golden light characteristic of the afternoon, casting long shadows across the room. Dust motes shimmered visibly in the thick beams of sunlight. It was several hours past lunch, the peak of the day now behind them, leaving the house cloaked in a quiet stillness that only the late afternoon can bring. Across the polished wooden floor, her son, Thomas, a man in his late forties, was deeply absorbed in a paperback novel. He was sprawled comfortably on the sofa, one leg tucked beneath him, the other stretched out. They weren't talking, yet the air between them was filled with an unspoken understanding, a shared sense of peace. The only sounds that broke the silence were the steady, rhythmic tick-tock of the old grandfather clock standing sentinel in the hallway and the delicate rustle as Thomas carefully turned a page. Clara held a ceramic mug, feeling the gentle warmth seep into her hands as she slowly sipped her tea. Her face was soft, relaxed. Thomas occasionally adjusted his position or shifted his weight, but his movements were slow, deliberate, devoid of any haste. The room felt completely still, wrapped in a blanket of quiet contentment. There was a profound sense of calm, a tranquil tableau of quiet domestic life unfolding peacefully within the walls of their home. The moments stretched out, unhurried and serene.","location: home
546 | mood: calm
547 | people:
548 | - age: 72
549 | gender: female
550 | name: Clara
551 | - age: 48
552 | gender: male
553 | name: Thomas
554 | time_of_day: afternoon
555 | "
556 | "The street was unnaturally quiet for a Tuesday afternoon. Long, distorted shadows stretched across the cracked pavement from buildings that seemed to lean inward. The usual afternoon bustle was absent, replaced by a heavy, oppressive silence that felt like a physical weight.
557 |
558 | Eight year old Anya, a small female child clutching a worn teddy bear, whimpered softly behind her father. Ben, a male adult of forty years, stood protectively in front of her, his shoulders tense. He scanned the empty street, his eyes wide with a fear he was trying to hide.
559 |
560 | Further down the block, near the mouth of a particularly dark alley, stood Clara. She was an elderly female, seventy five years old, her face a mask of apprehension. Her knuckles were white where she gripped her cane. The air felt cold despite the afternoon sun trying to break through the strange haze. A low, scraping sound echoed from somewhere unseen, making Anya bury her face in Ben's leg and Clara flinch violently. The street waited, silent and menacing.","location: street
561 | mood: scary
562 | people:
563 | - age: 8
564 | gender: female
565 | name: Anya
566 | - age: 40
567 | gender: male
568 | name: Ben
569 | - age: 75
570 | gender: female
571 | name: Clara
572 | time_of_day: afternoon
573 | "
574 | "The old gas lamps cast pools of soft, orange light onto the quiet stretch of Elm Street. It was late, the sky a deep, starless black velvet above the rooftops, feeling vast and still. A gentle, cool breeze stirred the leaves in the few trees lining the pavement, creating a soft rustling sound that blended with the faint, distant hum of the sleeping city. The air itself felt cool and clean. The only other sounds were the soft scuffing of shoes on the worn asphalt and the occasional, faraway sound of a car passing on a parallel road.
575 |
576 | Three figures walked slowly, side-by-side, their shadows stretching long and thin ahead of them in the lamplight. Sarah, a woman of thirty years, held the small hand of Leo, a boy of six, who shuffled his feet a little from tiredness but seemed content. Beside them walked Tom, a man aged thirty-two. He had an arm casually around Sarah's shoulders, his stride relaxed and even. Leo occasionally let out a soft yawn, his head nodding slightly as he looked up at the glowing lights, his eyes heavy-lidded. Sarah squeezed his hand gently in response, a silent reassurance.
577 |
578 | They weren't talking much, the need for conversation replaced by a comfortable, shared silence. Tom pointed out a particularly bright star that had managed to pierce through the city glow, a tiny pinprick in the darkness. Sarah smiled and nodded, pulling Leo a little closer to her side. There was no rush in their steps, no tension or urgency in the air surrounding them. Just the quiet, steady presence of each other, the cool night air enveloping them, and the tranquil peace of the deserted street. The overall feeling was one of perfect, settled calm.","location: street
579 | mood: calm
580 | people:
581 | - age: 6
582 | gender: male
583 | name: Leo
584 | - age: 30
585 | gender: female
586 | name: Sarah
587 | - age: 32
588 | gender: male
589 | name: Tom
590 | time_of_day: night
591 | "
592 | "The early morning sun cast long, weak shadows across the empty desks and silent computers. A heavy, unnatural quiet hung in the air of the usually bustling office floor. Sarah, a 28 year old female, stood frozen by the entrance, her eyes wide with fear. The air felt cold despite the building's heating system.
593 |
594 | ""Anything?"" whispered David, a 45 year old male, from behind her. His voice was tight, strained. He gripped a heavy stapler like a weapon.
595 |
596 | Sarah shook her head, unable to speak. A low, guttural moan echoed from the meeting room down the hall. It was the same sound they had heard moments ago, just before Anya had gone to check. Anya, the 22 year old female intern, had volunteered, trying to be brave. Now, only that horrible sound remained.
597 |
598 | The fluorescent lights above them flickered violently, casting monstrous, fleeting shadows. A chair scraped loudly somewhere nearby, though no one was visible. David let out a sharp gasp. The moaning sound grew louder, closer. It was coming from the meeting room doorway now. The air grew colder, thick with an unseen presence. Sarah backed away slowly, bumping into David. The silence that followed the scraping chair was absolute, broken only by their ragged breathing and the approaching, dreadful sound.","location: office
599 | mood: scary
600 | people:
601 | - age: 22
602 | gender: female
603 | name: Anya
604 | - age: 45
605 | gender: male
606 | name: David
607 | - age: 28
608 | gender: female
609 | name: Sarah
610 | time_of_day: morning
611 | "
612 | "The warm morning sun streamed through the kitchen window, casting long, golden stripes across the familiar worn wooden table in their home. It was early morning, the quietest time before the day's rush. Six year old Clara, a female with bright, messy pigtails, giggled gleefully as she chased a piece of rogue cereal across her high chair tray. Sitting opposite her was David, a thirty five year old male, his face softened and crinkled with a wide smile as he watched her antics. He reached out and gently tickled her side, eliciting another burst of pure, joyful laughter that echoed sweetly in the room. The air in the kitchen felt light and cheerful, filled with the simple sounds of breakfast and happy child noises. David poured himself another cup of coffee, the rich aroma mingling with the sweet smell of toast, feeling a profound sense of peace and contentment. This was their favorite time, a quiet moment of shared happiness in their home before the world outside demanded attention. Clara successfully cornered the elusive oat O, popping it into her mouth with a triumphant grin. David chuckled softly, feeling the warmth of the morning sun and the warmth of his daughter's presence fill the room and his heart completely.","location: home
613 | mood: happy
614 | people:
615 | - age: 6
616 | gender: female
617 | name: Clara
618 | - age: 35
619 | gender: male
620 | name: David
621 | time_of_day: morning
622 | "
623 | "The golden light of the early sun spilled onto Elm Street, warming the pavement. The air was crisp, carrying the scent of dew and blooming flowers from nearby gardens. This stretch of the street was quiet, mostly residential with old oak trees just beginning to show green. David, a male aged 30, walked along the sidewalk, holding the hand of Maria, a female aged 28. A soft, contented smile played on Maria's lips as she listened to David talking. Ahead of them, full of boundless energy, skipped Leo, a male aged 5. His bright blue backpack bounced against his small back with each hop. Beside him, Sofia, a female aged 6, twirled, her light jacket billowing slightly, giggling as she tried to catch a floating seed pod. The mood was undeniably happy. David chuckled, watching Leo's playful antics. Maria squeezed David's hand, a shared warmth passing between them. Sofia finally snagged the seed pod, holding it up with a triumphant shout before letting it drift away. Their voices were light, filled with easy conversation and the bright sounds of children's laughter, creating a cheerful bubble on the peaceful morning street. It was a simple moment, overflowing with joy.","location: street
624 | mood: happy
625 | people:
626 | - age: 30
627 | gender: male
628 | name: David
629 | - age: 5
630 | gender: male
631 | name: Leo
632 | - age: 28
633 | gender: female
634 | name: Maria
635 | - age: 6
636 | gender: female
637 | name: Sofia
638 | time_of_day: morning
639 | "
640 | "The air in the old pub hung heavy and cold, thick with dust and the faint smell of stale beer. It was deep into the night, the hour when sanity felt thin and shadows stretched like grasping fingers. Only four people remained. Sarah, a woman of 28, hugged herself tightly, her eyes wide with apprehension. Across the scarred wooden table from her sat Tom, a man of 35, his usual jovial face now etched with fear as he stared towards the dark corner near the bar. Beside him, David, a man of 50, nervously ran a hand through his thinning grey hair, his gaze fixed on the creaking staircase leading to the upper rooms. Anya, a young woman of 22, clutched her hands together, her knuckles white, every muscle tense as a strange whispering seemed to weave through the silence. The dim gas lamps flickered, casting dancing shadows that seemed to shift and writhe. A sudden, sharp rap echoed from behind the locked cellar door, making all four of them jump, their hearts hammering against their ribs in the oppressive, terrifying quiet.","location: pub
641 | mood: scary
642 | people:
643 | - age: 22
644 | gender: female
645 | name: Anya
646 | - age: 50
647 | gender: male
648 | name: David
649 | - age: 28
650 | gender: female
651 | name: Sarah
652 | - age: 35
653 | gender: male
654 | name: Tom
655 | time_of_day: night
656 | "
657 | "The kitchen was filled with the golden light of a new day. Sunbeams streamed through the window above the sink, illuminating dust motes dancing in the air. This was the heart of Clara and Ben's home.
658 |
659 | Clara, a thirty year old woman, hummed softly as she poured coffee into two mugs. She moved with a relaxed grace that spoke of comfort in her surroundings. Beside her, Ben, a thirty two year old man, was expertly flipping pancakes on the griddle, a wide smile on his face as the fluffy discs rose.
660 |
661 | A burst of laughter escaped Clara as Ben dramatically fumbled a pancake, catching it just in time with the spatula. ""Show off!"" she teased affectionately, taking a sip of her coffee. He grinned back, his eyes crinkling at the corners. ""Just keeping you entertained,"" he replied cheerfully. The aroma of coffee and sweet pancakes filled the air, mixing with the easy comfort and joy that settled between them like a warm blanket. They talked about simple things, plans for the day, and shared quiet moments of contentment as the morning progressed. The mood was undoubtedly happy, a perfect start to their day together at home.","location: home
662 | mood: happy
663 | people:
664 | - age: 32
665 | gender: male
666 | name: Ben
667 | - age: 30
668 | gender: female
669 | name: Clara
670 | time_of_day: morning
671 | "
672 | "Sarah, a woman aged 40, leaned back deeply into the large, soft cushions of the couch. Beside her, Tom, a 42-year-old man, chuckled quietly, his arm resting casually around her shoulders as they watched the movie playing on the television screen. Eight-year-old Lily, a little girl with bright eyes, was comfortably curled up between them, happily munching on a bowl of popcorn balanced on her lap. The only illumination in the cozy room came from the flickering light of the television, casting a warm, inviting glow across their faces. Outside the large window, the sky was a deep, inky black, dotted here and there with the faint sparkle of distant stars. They were all together in their familiar living room, a comfortable and personal space filled with cherished belongings. Lily giggled loudly at a particularly funny moment in the film, burying her head playfully into Tom's side. Sarah smiled warmly, reaching out a hand to gently stroke Lily's soft hair. The atmosphere was wonderfully light and easy, filled with the quiet sounds of the movie, the rustling of popcorn, and their soft laughter. It was late, hours after the sun had set and long after dinner, a perfect, simple end to the day spent together safe inside their house. A powerful feeling of contentment and simple joy settled over all three of them, a palpable shared happiness in their peaceful evening at home, just being together.","location: home
673 | mood: happy
674 | people:
675 | - age: 8
676 | gender: female
677 | name: Lily
678 | - age: 40
679 | gender: female
680 | name: Sarah
681 | - age: 42
682 | gender: male
683 | name: Tom
684 | time_of_day: night
685 | "
686 | "The air hung warm and still, thick with the earthy scent of the forest floor and the clean perfume of pine needles from the surrounding trees. Long, gentle shafts of golden sunlight slanted down through the thick canopy of ancient oak trees, creating dancing patterns of light and shadow on the mossy ground beside a clear, slow-moving stream. The sun was well past its zenith, its steady descent marked by the elongated shadows that stretched leisurely across the quiet clearing. It was undeniably afternoon.
687 |
688 | Clara, a woman of sixty-eight years, sat on a smooth, grey stone near the water's edge. Her eyes were closed, her face turned slightly towards the sun, her breathing slow and even. She felt the pleasant warmth on her skin and the subtle breeze on her cheek. Beside her, on a patch of soft grass, sat David, a man of seventy-two. He held a worn paperback book resting in his lap, but his attention was captivated by the gentle, ceaseless ripples of the stream flowing over smooth pebbles. He wasn't reading, just watching. Neither spoke a word, perfectly content in the shared silence and the beauty surrounding them. They felt entirely at ease. The only sounds were the distant, occasional call of a forest bird and the soft, hypnotic murmur of the water. A profound sense of peace settled over the small clearing, an undeniable calm enveloping the two figures bathed in the serene golden afternoon light. They simply existed in the quiet moment.","location: nature
689 | mood: calm
690 | people:
691 | - age: 68
692 | gender: female
693 | name: Clara
694 | - age: 72
695 | gender: male
696 | name: David
697 | time_of_day: afternoon
698 | "
699 | "Eleanor, a woman of sixty-eight, sat in her worn armchair. Her hands rested still on her lap. Across the room, her son David, a male aged forty-two, sat heavily on the sofa. Beside him, his wife Sarah, forty and female, gently held his arm. Their daughter, Emily, a girl of fourteen, huddled on the floor near the coffee table, arms wrapped around her knees. Long shadows stretched across the carpet from the bay window as the afternoon sun dipped lower in the sky. The air in the living room of their house felt thick and quiet. Tears welled in Eleanor's eyes but did not fall. David stared blankly ahead, his jaw set. Sarah's expression was one of deep concern mixed with her own visible sorrow. Emily sniffled softly, her face buried against her knees. The usual warmth of their home was absent, replaced by a profound, shared sadness that permeated the still, sunlit room.","location: home
700 | mood: sad
701 | people:
702 | - age: 42
703 | gender: male
704 | name: David
705 | - age: 68
706 | gender: female
707 | name: Eleanor
708 | - age: 14
709 | gender: female
710 | name: Emily
711 | - age: 40
712 | gender: female
713 | name: Sarah
714 | time_of_day: afternoon
715 | "
716 | "The air was sharp and cool as the early morning sunbeams pierced the dense canopy, creating shifting patterns on the dew-kissed forest floor. The only sounds were the distant call of a bird and the gentle rustle of leaves in a soft breeze. In a small clearing stood four figures, huddled close together but lost in their own quiet sorrow.
717 |
718 | Sarah, a woman of thirty-five, her face etched with quiet pain, held tightly onto the hand of her daughter. Emily, a girl of ten, stared at the ground, her shoulders slightly slumped. Beside them, Mark, a man of thirty-eight, stood with his arm around his young son, Thomas, who at six years old, seemed confused by the heavy silence but mirrored the somber expressions around him.
719 |
720 | No one spoke. They simply stood, surrounded by the ancient trees and the rising light, the weight of their shared sadness hanging thick in the crisp morning air. It was a place they had come to remember, a quiet corner of the world mirroring the quiet ache in their hearts. Tears welled in Sarah's eyes, reflecting the dappled sunlight, a silent testament to the profound grief that bound them together in this tranquil, yet deeply mournful, space.","location: nature
721 | mood: sad
722 | people:
723 | - age: 10
724 | gender: female
725 | name: Emily
726 | - age: 38
727 | gender: male
728 | name: Mark
729 | - age: 35
730 | gender: female
731 | name: Sarah
732 | - age: 6
733 | gender: male
734 | name: Thomas
735 | time_of_day: morning
736 | "
737 | "The Old Oak pub felt timeless, its walls absorbing decades of hushed conversations and clinking glasses. The air carried the faint, pleasant aroma of spilled beer and polished wood. High windows, some with panels of colored glass, let in the diffused light of the afternoon sun, painting elongated shapes across the dusty floorboards. It was well past the midday rush, the kind of quiet lull where the barman reads a newspaper and the only sounds are the soft murmur of voices and the gentle sigh of the beer taps.
738 |
739 | Tucked away at a large, dark wooden table sat four individuals, each lost in their own quiet world yet connected by shared space. Eleanor, a female in her early 70s, held a steaming ceramic mug, her expression serene as she gazed out a window. Opposite her, James, a male in his mid 40s, took slow, deliberate sips from a glass of ale, his shoulders relaxed. Beside James, Liam, a young male of about 22, browsed his phone, occasionally glancing up. Next to Eleanor sat Sarah, a female around 21, her posture easy as she traced patterns on the condensation of her water glass. There was no urgency, no loud laughter or animated discussion, just a comfortable silence punctuated by quiet sips and the turning of a page. The overall feeling in the pub, centered around their table, was one of profound calm and peacefulness.","location: pub
740 | mood: calm
741 | people:
742 | - age: 72
743 | gender: female
744 | name: Eleanor
745 | - age: 45
746 | gender: male
747 | name: James
748 | - age: 22
749 | gender: male
750 | name: Liam
751 | - age: 21
752 | gender: female
753 | name: Sarah
754 | time_of_day: afternoon
755 | "
756 | "The air was cool and smelled of damp earth and pine needles. Soft, gentle light filtered through the canopy of tall trees, casting long, shifting shadows on the narrow trail. Dewdrops clung to the emerald green leaves and spiderwebs like tiny, sparkling jewels.
757 |
758 | Elara, a woman of sixty-eight years, walked slowly along the path, her breath misting slightly in the crisp air. Her movements were unhurried, her gaze taking in the quiet beauty around her. Beside her, Leo, a boy of twelve, ambled along. He wasn't skipping or running, but moving with a relaxed ease, occasionally kicking a loose pebble or pausing to watch a small insect crawl across a fallen log.
759 |
760 | The only sounds were the distant, soft murmur of a hidden stream and the gentle chirping of waking birds. The leaves overhead rustled occasionally in a light, cool breeze that carried the scent of the nearby lake. Neither Elara nor Leo felt the need for conversation; the silence between them was comfortable and filled with shared peacefulness. They simply existed in the moment, breathing in the clean air, letting the quiet soak into them under the early sky.","location: nature
761 | mood: calm
762 | people:
763 | - age: 68
764 | gender: female
765 | name: Elara
766 | - age: 12
767 | gender: male
768 | name: Leo
769 | time_of_day: morning
770 | "
771 | "Clara, a woman aged 68, sat in her favorite armchair by the window. Soft, golden sunlight streamed through the glass, warming the room and casting long shadows. The air was still and quiet, carrying the faint, comforting scent of coffee that had just finished brewing in the kitchen. She held knitting needles, the soft click-clack the only sound besides the occasional chirp of a bird outside. A mug of tea, its warmth spreading through her hands, rested on a small table beside her.
772 |
773 | Across the peaceful living space, Thomas, a man aged 72, was settled comfortably on the sofa. He held his morning newspaper, turning the pages with a gentle rustle. His posture was relaxed, his breathing even. Neither spoke, content in the shared silence of their home as the morning unfolded gently around them. The feeling in the room was one of deep peace, a calm beginning to the day enjoyed together.","location: home
774 | mood: calm
775 | people:
776 | - age: 68
777 | gender: female
778 | name: Clara
779 | - age: 72
780 | gender: male
781 | name: Thomas
782 | time_of_day: morning
783 | "
784 | "Sarah, a female aged 28, leaned back in her chair, a wide smile spreading across her face. Sunlight streamed through the large office windows, casting long afternoon shadows across the polished concrete floor. Across the workstation pod, Mark, a male of 35 years, let out a hearty laugh. Next to him, Javier, a male aged 42, chuckled, wiping a tear of amusement from his eye.
785 |
786 | It was well into the afternoon in the bustling open-plan office. Desks were scattered around, each with monitors and keyboards, surrounded by low partition walls. The usual post-lunch quiet had been broken by their shared joy. Sarah had just finished recounting a funny story about a recent project success, and her colleagues' reactions were exactly what she had hoped for. The air in the office felt light and buoyant. They were all genuinely happy, basking in the glow of a job well done and the simple pleasure of shared laughter in their workplace.","location: office
787 | mood: happy
788 | people:
789 | - age: 42
790 | gender: male
791 | name: Javier
792 | - age: 35
793 | gender: male
794 | name: Mark
795 | - age: 28
796 | gender: female
797 | name: Sarah
798 | time_of_day: afternoon
799 | "
800 | "The afternoon sun bathed the quiet street in a warm, golden light. Long, soft shadows stretched across the pavement, indicating the day was gently progressing. A sense of calm hung in the air, peaceful and still, disturbed only by the soft rustle of leaves on the mature trees lining the sidewalk.
801 |
802 | Clara, a female aged sixty five, sat on a simple wooden bench positioned off the main path. Her expression was one of deep peace, her hands resting calmly in her lap as she watched the scene.
803 |
804 | Nearby, a young boy named Leo, eight years old and male, rode a bicycle back and forth with slow, deliberate movements on the smooth asphalt of the street's edge. His focus was intense but his manner was unhurried.
805 |
806 | Approaching them was David, a man of thirty five years, walking with a relaxed gait. He carried a single bag of groceries, his shoulders loose, contributing to the overall tranquil feeling of the scene. As he neared the bench, a soft smile touched his lips. The three figures shared the peaceful afternoon space, each content in the quiet street setting.","location: street
807 | mood: calm
808 | people:
809 | - age: 65
810 | gender: female
811 | name: Clara
812 | - age: 35
813 | gender: male
814 | name: David
815 | - age: 8
816 | gender: male
817 | name: Leo
818 | time_of_day: afternoon
819 | "
820 | "Anya, a small female of ten years, kept close to her older brother, Ben. Ben, a boy of twelve, tried to walk with confidence, but his twelve year old male legs hurried slightly on the slick, wet cobblestones of Elm Street. It was a narrow street where tall, dark buildings seemed to lean in over them, almost touching the grey sky above. The early morning mist hung thick, clinging to the damp stone walls and obscuring details further down the road. It was morning, but the light was weak and sickly, barely pushing back the deep shadows. The street was deserted, utterly silent save for their quickening footsteps. No cars, no other people hurrying to work, just an unnerving quiet that pressed in on them.
821 |
822 | Ahead, standing perfectly still near a shadowed doorway, was a person. It was Mr. Silas, a male figure in his fifties. He wore a dark coat that seemed to absorb the little light available. He didn't move a muscle, just watched them with eyes that seemed too wide and unnaturally bright in the dim light. His face was pale, unsmiling, a fixed, unsettling expression. Anya whimpered softly, her ten year old female hand tightening its death grip on Ben's sleeve. Ben swallowed hard, his twelve year old male bravado melting away like the mist. The air felt colder now, heavy with unspoken dread. They quickened their pace, their footsteps echoing unnervingly on the wet stone, acutely aware of the fifty year old male's unblinking stare following their progress down the deserted morning street. The oppressive silence felt like a physical weight, and the only thing they could think of was getting away from the still figure watching them.","location: street
823 | mood: scary
824 | people:
825 | - age: 10
826 | gender: female
827 | name: Anya
828 | - age: 12
829 | gender: male
830 | name: Ben
831 | - age: 50
832 | gender: male
833 | name: Mr. Silas
834 | time_of_day: morning
835 | "
836 | "The only light came from a single lamp in the corner of the living room, casting long, melancholy shadows. Clara, a woman of forty-five, sat on the worn sofa, her shoulders slumped forward as if carrying an unbearable weight. Next to her was David, forty-eight and male, utterly still, his gaze fixed blankly on the familiar, patterned rug on the floor. Across the quiet room, perched on the edge of a faded armchair, was seventeen-year-old Emily, female, her face hidden from view, buried deep in her hands.
837 |
838 | Outside, the world was swallowed by the deep black of night; streetlights cast weak, indifferent pools of light through the gap in the heavy living room curtains. The house, usually filled with the comforting sounds of family life, was now unnervingly silent, the kind of profound quiet that settles in deep at night after something truly heavy has happened. No television hummed its familiar background noise, no radio played a distracting tune. Just the soft, ragged sound of someone in the room trying desperately not to cry aloud.
839 |
840 | Clara slowly reached out a hand towards where David sat, a hesitant gesture of comfort, but stopped short, her fingers hovering in the space between them before letting her hand fall heavily back into her lap. Emily sniffled quietly from the armchair, a tiny sound magnified in the oppressive stillness. The air in the room felt thick, heavy with unspoken grief and shared sorrow. They were home, physically together within these familiar walls, under the wide, dark sky of the late night, but each felt miles apart, lost in their own private wells of pain. The rhythmic, loud ticking of the grandfather clock in the silent hall seemed to mock the stillness, each second stretching into an eternity of quiet, shared heartache.","location: home
841 | mood: sad
842 | people:
843 | - age: 45
844 | gender: female
845 | name: Clara
846 | - age: 48
847 | gender: male
848 | name: David
849 | - age: 17
850 | gender: female
851 | name: Emily
852 | time_of_day: night
853 | "
854 | "The gentle light of a new day filtered through the kitchen window. It was early morning, the quietest part of the house. A feeling of peace settled over the familiar space. This calm atmosphere was perfect for easing into the day.
855 |
856 | At the counter, Elena, a female aged 38, slowly poured coffee into a mug. Her movements were unhurried. Sitting at the small table, reading a newspaper, was David, a male aged 40. He sipped his own coffee, the only sound the soft turning of pages. Nearby, on the floor, their daughter, Lily, a female aged 8, was quietly coloring in a book. Her younger brother, Max, a male aged 6, was stacking wooden blocks with careful precision in the corner of the living area, visible from the kitchen. The entire home felt still and serene. No one was rushing, no loud noises disturbed the tranquility. It was just a simple, peaceful start to the day for the family within their own walls.","location: home
857 | mood: calm
858 | people:
859 | - age: 40
860 | gender: male
861 | name: David
862 | - age: 38
863 | gender: female
864 | name: Elena
865 | - age: 8
866 | gender: female
867 | name: Lily
868 | - age: 6
869 | gender: male
870 | name: Max
871 | time_of_day: morning
872 | "
873 | "Sarah, a woman aged 28, clutched her bag tightly. It was early morning on the street. The sky above the rows of grey buildings was a flat, colourless sheet, with only a faint hint of lighter grey suggesting the sun might eventually rise. Lampposts still cast weak, yellow circles onto the damp concrete pavement, offering little comfort. The street was completely empty, the usual city sounds replaced by an unnerving, profound silence that pressed in on her ears. Every one of her own footsteps seemed unnaturally loud. A sense of deep dread had settled over her the moment she stepped outside. Then, she saw him. Further down the deserted street, a male figure was standing motionless in the entryway of a darkened shop. He was just waiting. As she hurried closer, her heart pounding a frantic, fearful rhythm against her ribs, he pushed away from the wall. Without a word, the man began to walk, falling into step directly behind her, maintaining a constant, unnerving distance. His presence felt like a heavy, terrifying weight in the quiet, early morning air. The street stretched ahead, endless and scary, under the pale, indifferent sky.","location: street
874 | mood: scary
875 | people:
876 | - age: 28
877 | gender: female
878 | name: Sarah
879 | time_of_day: morning
880 | "
881 | "Leo, a 28-year-old male, laughed, the sound echoing slightly in the quiet air. Beside him, Clara, a 27-year-old female, giggled, her eyes sparkling under the warm glow of a nearby lamppost. They strolled along the empty street, their footsteps soft on the worn pavement. The sky above was a deep, velvety black canvas, dotted with distant stars that seemed impossibly bright. The only significant light came from the evenly spaced streetlights, casting elongated shadows and pools of yellow on the damp asphalt from an earlier sprinkle of rain. It was late; most shops were dark and shuttered, their windows reflecting the sparse light like black mirrors. The air was cool and still, carrying the faint, sweet scent of night-blooming jasmine from a hidden garden. Leo swung their interlinked hands gently between them. ""That was honestly the best movie I've seen in ages,"" he said, still smiling broadly, a wide, genuine smile that reached his eyes. Clara squeezed his hand in agreement. ""I know! My cheeks actually hurt from laughing so much."" Their conversation flowed easily, light and full of shared amusement from the evening's entertainment. They weren't in a hurry to get home, simply enjoying the peaceful quiet of the deserted street and the comfortable presence of each other. A palpable sense of contentment settled over them both, a clear, bright, uncomplicated happiness that felt easy and complete.","location: street
882 | mood: happy
883 | people:
884 | - age: 27
885 | gender: female
886 | name: Clara
887 | - age: 28
888 | gender: male
889 | name: Leo
890 | time_of_day: night
891 | "
892 | "The afternoon sun cast long, weak shadows across the worn carpet of the office floor. Inside, a heavy silence hung in the air, broken only by the distant hum of servers and the soft, ragged breathing of three occupants. John, a male aged 45, sat rigidly at his desk, his hands clasped so tightly his knuckles were white. Nearby, Sarah, a 32 year old female, quietly wept into a crumpled tissue, her shoulders shaking with silent sobs. Across the small workspace, past rows of silent computers and filing cabinets, Mark, a male aged 58, stood gazing out the window at the indifferent street below. The usual afternoon bustle was absent. Instead, a profound sadness permeated the room, a shared weight pressing down on them all. The air felt thick with unspoken grief. This was not the typical mood of their workplace, but today, sorrow had taken its seat at every desk.","location: office
893 | mood: sad
894 | people:
895 | - age: 45
896 | gender: male
897 | name: John
898 | - age: 58
899 | gender: male
900 | name: Mark
901 | - age: 32
902 | gender: female
903 | name: Sarah
904 | time_of_day: afternoon
905 | "
906 | "The afternoon sun streamed in through the tall windows of The Red Lion pub, casting warm stripes across the polished wooden floor. It was a quiet, relaxed time of day, with only a few patrons scattered throughout the cozy space. At a corner table sat Alice, a 30-year-old female, her face bright with amusement. Across from her was Tom, a 32-year-old male, leaning back in his chair with a wide grin.
907 |
908 | Two half-empty pint glasses sat between them. Alice finished telling a story, and Tom let out a burst of hearty laughter, his shoulders shaking slightly. ""You are kidding me!"" he managed to say between chuckles. Alice laughed along with him, a clear, joyful sound. The easy conversation flowed between them, punctuated by smiles and shared jokes. There was a palpable sense of contentment and lightheartedness in their corner of the pub. They were clearly enjoying their time together, the simple pleasure of good company making the afternoon feel perfect. The mood was undeniably happy.","location: pub
909 | mood: happy
910 | people:
911 | - age: 30
912 | gender: female
913 | name: Alice
914 | - age: 32
915 | gender: male
916 | name: Tom
917 | time_of_day: afternoon
918 | "
919 | "The late afternoon sun slanted gently through the large windows of the office. Dust motes danced in the golden light, illuminating the quiet space. Desks were neat, monitors displayed spreadsheets or documents, but there was no frantic energy in the air. The atmosphere felt still and peaceful.
920 |
921 | Sarah, a woman in her late thirties, typed steadily at her keyboard, the soft click-clack a soothing rhythm. Across from her, David, a man in his mid-forties, leaned back slightly in his chair, reading a report printed on paper, his expression thoughtful and relaxed. By the window, Ben, a man in his early twenties, quietly organized some files, his movements precise and unhurried.
922 |
923 | The only sound beyond the typing and the rustling of paper was the low hum of the air conditioning. Occasionally, one of them would sigh softly or shift in their seat, but the silence would quickly return. There was a shared sense of focused tranquility among them. They weren't talking much, just existing together in the quiet productivity of the calm afternoon. David closed the report, placing it carefully on his desk, a small smile on his face. Sarah finished a paragraph, pausing to stretch her fingers, a calm look on her face. Ben stacked the last file neatly, looking out the window for a moment at the soft light before turning back to his work. The atmosphere remained one of quiet concentration and ease.","location: office
924 | mood: calm
925 | people:
926 | - age: 22
927 | gender: male
928 | name: Ben
929 | - age: 45
930 | gender: male
931 | name: David
932 | - age: 38
933 | gender: female
934 | name: Sarah
935 | time_of_day: afternoon
936 | "
937 | "The streetlights were out, casting long, distorted shadows from what little ambient light leaked from distant windows. It was late night, the kind where the air felt heavy and silent, amplifying every tiny sound. A chill wind snaked through the empty street. Sarah, a 22-year-old female, hugged her thin jacket tighter, her eyes wide and darting nervously down the alley ahead. Beside her, Ben, a 25-year-old male, clenched his fists, trying to project confidence he didn't feel. He kept glancing over his shoulder. They were walking home, but the usual route felt wrong tonight. A slow, shuffling sound echoed from the darkness further down the street. Then, a figure stepped partially out of the deepest shadow near a boarded-up shop. It was Alex, a person about 40 years old who appeared gender non-conforming, their face obscured by a low-pulled hood, moving with an unsettling gait. Sarah gasped softly, clutching Ben's arm. The silence returned, heavier than before, thick with unspoken dread. The dark street seemed to hold its breath.","location: street
938 | mood: scary
939 | people:
940 | - age: 40
941 | gender: other
942 | name: Alex
943 | - age: 25
944 | gender: male
945 | name: Ben
946 | - age: 22
947 | gender: female
948 | name: Sarah
949 | time_of_day: night
950 | "
951 | "The Golden Lion pub was wrapped in a profound silence. Long, pale shafts of morning sun stretched from the tall windows, painting streaks across the worn wooden floor and highlighting dust motes dancing in the stillness above the dark, polished mahogany bar. It was only a little after nine oclock, hours before the usual lively chatter would fill the space. A pervasive calm hung in the air, thick and peaceful, like the quiet before a gentle rain.
952 |
953 | Behind the counter, Brenda, a female with kind eyes and a gentle smile, aged 55, moved with unhurried grace. She slowly polished pint glasses, each soft swipe of the cloth a quiet rhythm. The only sounds were the faint hum of the drinks cooler and the occasional soft clink. Arthur, a male regular of 68 years, sat on his customary stool, his shoulders relaxed, a warm mug of tea warming his hands. His gaze was fixed on the tranquil street outside, a picture of serene contentment.
954 |
955 | At a small, round table by the largest window, Clara, a female aged 30, was deeply absorbed in reading the morning newspaper. Her expression was one of quiet focus, her fingers moving slowly and deliberately as she turned the large pages. Across from her, David, a male aged 45, sat back in his chair, an empty coffee cup held loosely in his hand. His posture was completely relaxed, his eyes resting without urgency on the quiet scene before him. There was no rush, no need for words, just a shared, quiet peace settling over the four of them in the gentle morning light of the old pub.","location: pub
956 | mood: calm
957 | people:
958 | - age: 68
959 | gender: male
960 | name: Arthur
961 | - age: 55
962 | gender: female
963 | name: Brenda
964 | - age: 30
965 | gender: female
966 | name: Clara
967 | - age: 45
968 | gender: male
969 | name: David
970 | time_of_day: morning
971 | "
972 | "Sarah, a woman aged 32, sat at a small wooden table. Across from her was Tom, a man who looked to be 45. They were inside The Dog and Whistle, a pub with worn wooden floors and a faint smell of hops and old wood. Golden light slanted through the tall windows, falling in warm patches on the floor – the kind of light typical of late afternoon. Outside, the street wasn't busy yet, the rush hour still a while off. Inside, only a couple of other tables were occupied, their occupants speaking in hushed tones, adding to the low background hum. A soft murmur of conversation and the quiet clink of ice from the bar were the dominant sounds, not intrusive at all. Sarah held a mug of tea, her fingers wrapped around it for warmth, her gaze occasionally drifting towards the street, her expression relaxed. She took a slow, deliberate sip. Tom cradled a half-empty glass of ale, occasionally rotating it slowly in his hand, his shoulders visibly lowered, no tension in his posture. He took a thoughtful drink. They weren't talking much, their conversation having lulled into a comfortable silence broken only by the quiet sounds of the pub. The air felt still and peaceful, a quiet pocket away from the world outside. It was a calm moment in the late afternoon inside the comfortable old pub.","location: pub
973 | mood: calm
974 | people:
975 | - age: 32
976 | gender: female
977 | name: Sarah
978 | - age: 45
979 | gender: male
980 | name: Tom
981 | time_of_day: afternoon
982 | "
983 | "The air in The Old Anchor pub felt thick and still. Dust motes danced sluggishly in the single weak shaft of sunlight that pierced the grimy front window, illuminating a patch of the worn wooden floorboards. It was early afternoon, the kind where the usual lunchtime rush was long gone and the evening crowd hadn't yet arrived. The pub was quiet, save for the distant murmur of the football commentary on a small screen in the corner.
984 |
985 | At a sticky corner table sat three people. Sarah, a woman of 62, stared blankly into her lukewarm tea, her shoulders slumped. Across from her, Tom, a man aged 45, slowly traced circles on the condensation of his pint glass, his brow furrowed deeply. Next to him, Emily, a young woman of 28, picked nervously at the label on her bottle of soda, her eyes red-rimmed.
986 |
987 | A heavy silence hung between them, punctuated only by the clinking of ice in Emily's glass or a long, drawn-out sigh from Sarah. Their faces were etched with a shared weight, a quiet despair that settled over the table like a shroud. The normally lively pub felt oppressive, mirroring the deep, pervasive sadness that clung to the small group. They sat there, isolated in their grief, the world outside the dusty window seeming very far away.","location: pub
988 | mood: sad
989 | people:
990 | - age: 28
991 | gender: female
992 | name: Emily
993 | - age: 62
994 | gender: female
995 | name: Sarah
996 | - age: 45
997 | gender: male
998 | name: Tom
999 | time_of_day: afternoon
1000 | "
1001 | "Sarah, a woman of twenty-eight years, stood on the quiet residential street. Beside her was Michael, a man aged thirty. The street was lined with old brick buildings, their windows dark and unwelcoming in the dim light. It was early morning; the sun had not yet appeared, leaving the sky a dull, uniform grey. The air was cool and still, carrying the faint scent of exhaust fumes from a distant main road.
1002 |
1003 | A heavy sadness hung between Sarah and Michael, palpable in the silent space surrounding them. Sarah kept her head bowed, her hair falling to shield her face, her shoulders slumped as if bearing an immense weight. Michael stood rigidly beside her, his hands clenched loosely at his sides, his expression a mask of quiet grief. The mood was unmistakably sorrowful, reflected in their still forms and the bleakness of the morning street. They stood there on the pavement, two figures isolated in their shared unhappiness as the slow morning light failed to bring any warmth.","location: street
1004 | mood: sad
1005 | people:
1006 | - age: 30
1007 | gender: male
1008 | name: Michael
1009 | - age: 28
1010 | gender: female
1011 | name: Sarah
1012 | time_of_day: morning
1013 | "
1014 | "Anya, a female aged 32, leaned back in her ergonomic chair, a wide, triumphant smile illuminating her face. Across the large, dark-wood desk from her sat Ben, a male aged 28, shaking his head slightly in disbelief, a soft chuckle escaping his lips. The only light in the vast space came from the small, warm lamp on Anya's desk, casting long, distorted shadows across the silent rows of gray cubicles and towering filing cabinets stretching into the deep darkness of the deserted office. Outside the tall, uncurtained windows, the city below sparkled with a million tiny lights against the deep black canvas of the night sky; it was clearly well past the time most people were home and asleep. A forgotten cleaning cart stood parked near the elevator bank down the silent hall, a clear sign of the late hour. The air felt still and quiet, the usual daytime energy of ringing phones and clicking keyboards having long since dissipated, leaving a peaceful calm. Ben pushed a final stack of printed papers to the side, a triumphant grin spreading across his face. ""We actually did it, Anya,"" he said, his voice resonating with a mix of exhaustion, relief, and genuine pleasure. ""Finished! Hours logged, report submitted, everything done. The big project is officially complete!"" Anya laughed, a clear, light, joyful sound that echoed slightly in the quiet, empty space, but it wasn't lonely. They exchanged a look of shared endurance and pure, unadulterated happiness, the late hour and the deserted office forgotten in the warm glow of their success and the bright feeling of elation.","location: office
1015 | mood: happy
1016 | people:
1017 | - age: 32
1018 | gender: female
1019 | name: Anya
1020 | - age: 28
1021 | gender: male
1022 | name: Ben
1023 | time_of_day: night
1024 | "
1025 | "The air hung thick and cold in the deep woods. Not a single star pierced the ink-black sky above the dense canopy of trees. Snap. A twig broke nearby, sharp against the unnerving silence that had fallen over the forest just moments ago. Liam, a twenty-two year old male, froze, his heart hammering against his ribs. He clutched the worn flashlight, its beam weak and jumpy in his trembling hand. Sweat beaded on his forehead despite the chill. A low growl echoed from somewhere just beyond the reach of the light. Chloe, a twenty year old female, gasped softly beside him. Her hand shot out, gripping his arm with surprising strength, her fingers digging in. Her eyes were wide saucers in the faint light, reflecting the terror he felt. ""What was that?"" she whispered, her voice thin and shaky. The growl came again, closer this time, followed by a heavy shuffling through the undergrowth. It sounded big. Too big. They were alone, miles from anywhere, surrounded by the oppressive darkness and whatever creature was lurking just out of sight. Every rustle of leaves, every distant hoot of an owl, now felt like a threat. The woods felt alive with something ancient and hostile. Their only thought was escape, but which way?","location: nature
1026 | mood: scary
1027 | people:
1028 | - age: 20
1029 | gender: female
1030 | name: Chloe
1031 | - age: 22
1032 | gender: male
1033 | name: Liam
1034 | time_of_day: night
1035 | "
1036 | "The quiet house felt heavy, each room holding its breath. Sunlight, softer now than midday, slanted through the living room window, casting long, dusty beams across the worn rug and the familiar, slightly faded armchair. It was definitely afternoon, the kind where the day starts to stretch towards evening but still feels far off, a time usually filled with a gentle hum of life that was now missing.
1037 |
1038 | Clara sat on the edge of the floral-patterned sofa, her hands clasped tightly in her lap, her knuckles white. She was a woman of fifty-two, her usually bright eyes dull and distant, fixed on something unseen. Her shoulders were slumped, and a quiet, ragged sigh escaped her lips every few minutes, filling the oppressive silence. She was female.
1039 |
1040 | Across the room, near the empty fireplace, sat Lily. She was seventeen, her face pale and streaked with dried tears that occasionally started anew. Her dark hair was uncombed, falling loosely around her face as she hugged her knees to her chest, staring intently at the floor as if searching for answers there. She was female too.
1041 |
1042 | Neither spoke a word. The silence between them was thick with unspoken grief, a heavy blanket smothering any possibility of comfort. The familiar comfort of their home felt alien, filled only with the quiet, overwhelming weight of their shared sorrow. The air itself seemed to mourn alongside them.","location: home
1043 | mood: sad
1044 | people:
1045 | - age: 52
1046 | gender: female
1047 | name: Clara
1048 | - age: 17
1049 | gender: female
1050 | name: Lily
1051 | time_of_day: afternoon
1052 | "
1053 | "Anya, a female aged 28, hummed a cheerful tune as she walked. Beside her, Ben, a male aged 30, grinned broadly, occasionally pointing out a particularly colourful butterfly. They were strolling through a sun-dappled meadow at the edge of a dense forest. Tall grasses swayed gently around their ankles, and wildflowers dotted the landscape in splashes of yellow and purple. The air was warm and smelled of fresh earth and blossoms. It was late afternoon; the sun, a warm orange orb, hung lower in the sky, casting long, soft shadows that stretched across the field. The sounds were of buzzing insects and the distant calls of birds. Anya laughed at something Ben said, a light, joyful sound that echoed the mood of the peaceful scene. They walked hand in hand for a moment, completely content in the tranquil beauty surrounding them. Their easy smiles and relaxed postures clearly showed their happiness in this quiet, natural space under the soft afternoon light.","location: nature
1054 | mood: happy
1055 | people:
1056 | - age: 28
1057 | gender: female
1058 | name: Anya
1059 | - age: 30
1060 | gender: male
1061 | name: Ben
1062 | time_of_day: afternoon
1063 | "
1064 | "The air in the living room hung heavy, thick with a silence that felt wrong. It was a familiar room, usually filled with noise and laughter, but now only the soft sounds of distant traffic drifted through the house. The afternoon sun, typically bright at this hour, was muted by the drawn curtains, casting long, weak shadows across the worn rug and faded armchairs. Every object in the room felt weighted down by the atmosphere.
1065 |
1066 | Clara, a female around forty-five years old, sat rigidly on the edge of the armchair, her body tense. Her eyes, puffy and red from crying, were fixed on a point across the room, though she didn't seem to see anything but her own pain. Her husband, Ben, a male in his late forties, sat beside her on the sofa, his broad shoulders slumped forward, his hands clasped loosely between his knees. He occasionally sighed, a sound that seemed to carry the weight of the world. Their daughter, Lily, a sixteen-year-old female, was curled up at the other end of the sofa, her face buried in a cushion, her body shaking with silent sobs that occasionally broke the stillness. The house, their home, felt cold and empty despite their presence, mirroring the deep sadness that enveloped the three of them on this quiet afternoon. They simply sat there, suspended in their grief.","location: home
1067 | mood: sad
1068 | people:
1069 | - age: 48
1070 | gender: male
1071 | name: Ben
1072 | - age: 45
1073 | gender: female
1074 | name: Clara
1075 | - age: 16
1076 | gender: female
1077 | name: Lily
1078 | time_of_day: afternoon
1079 | "
1080 | "The Red Lion pub felt like a haven from the cool air outside. Laughter echoed softly off the wooden beams, mingling with the clink of glasses and a low murmur of conversation. Warm light spilled from lamps onto polished tables. It was late enough that the evening crowd had settled in, finding comfort in the friendly atmosphere and enjoying the simple pleasure of the night.
1081 |
1082 | At a corner table, four friends were deep in animated chat. Aisha, a woman of 28, was leaning forward, her eyes sparkling with amusement at something Ben, a man of 30, had just said. Ben grinned back, taking a sip from his pint. Across from them sat Chloe, a woman aged 25, her face bright with a wide smile as she listened, occasionally nodding along. David, a man of 32, was mid-story, gesturing with one hand as he delivered the punchline that sent Aisha into a fresh fit of giggles. The air around their table vibrated with easy camaraderie and shared joy. They were simply happy to be there, together.","location: pub
1083 | mood: happy
1084 | people:
1085 | - age: 28
1086 | gender: female
1087 | name: Aisha
1088 | - age: 30
1089 | gender: male
1090 | name: Ben
1091 | - age: 25
1092 | gender: female
1093 | name: Chloe
1094 | - age: 32
1095 | gender: male
1096 | name: David
1097 | time_of_day: night
1098 | "
1099 | "The old house groaned around them, a sound that usually felt comforting but tonight was sinister. Outside, the world was a canvas of deep, impenetrable black, the moon hidden behind thick, suffocating clouds. Inside, only a single lamp cast weak, trembling light in the living room, barely pushing back the shadows that clung to the corners. Sarah, thirty-five years old and female, clutched a worn blanket tighter around her shoulders, her eyes wide and fixed on the dark archway leading to the hall. Beside her, David, a male aged thirty-seven, sat rigid on the sofa, his hand resting protectively on his wife's arm, his jaw clenched tight. On the floor between them, little Lily, an eight-year-old female, whimpered softly, her small body curled into a tight ball, her face buried in her knees. A low, dragging scrape echoed from downstairs, distinct and unnatural in the oppressive silence of the house. Then another, slower, heavier. It wasn't the wind, wasn't the usual settling creaks of the old structure. It was deliberate. A cold dread seeped into the room, thicker than the night air, chilling them to the bone. Sarah squeezed David's hand, her grip desperate. He squeezed back, his knuckles white against his skin. Lily let out a tiny, choked sob that tore at her parents. The scraping came again, this time followed by a soft thud from the bottom of the stairs.","location: home
1100 | mood: scary
1101 | people:
1102 | - age: 37
1103 | gender: male
1104 | name: David
1105 | - age: 8
1106 | gender: female
1107 | name: Lily
1108 | - age: 35
1109 | gender: female
1110 | name: Sarah
1111 | time_of_day: night
1112 | "
1113 | "Sarah, a 28 year old female, leaned back in her ergonomic chair, a wide smile illuminating her face. Beside her, David, a 35 year old male, chuckled softly, his eyes crinkling at the corners with genuine amusement. ""We actually did it,"" David said, stretching his arms above his head with a satisfied groan that was more relief than tiredness. The only light in the room came from the small desk lamps glowing on their monitors and the distant city lights visible through the tall, dark office windows. The main office area stretched out behind them, a silent, empty maze of cubicles, their covers draped over equipment for the night. It was late, long past when most people had gone home, the building hushed except for their quiet voices and occasional bursts of shared laughter that echoed slightly in the stillness. They had just successfully launched the complex new system, a project that had consumed their lives for months. A wave of profound relief mixed with pure, unadulterated joy washed over them both. Sarah felt a lightness in her chest she hadn't experienced in weeks, the weight of responsibility finally lifted. ""I absolutely can't believe it,"" she replied, her voice filled with elation, still grinning from ear to ear. ""Let's get out of this place and celebrate!""","location: office
1114 | mood: happy
1115 | people:
1116 | - age: 35
1117 | gender: male
1118 | name: David
1119 | - age: 28
1120 | gender: female
1121 | name: Sarah
1122 | time_of_day: night
1123 | "
1124 | "The afternoon sun angled sharply through the living room window, casting long, unsettling shadows across the floorboards. A heavy silence pressed in on Sarah, a thirty year old female, making the familiar rooms of their house feel alien and full of unseen things. Tom, a thirty five year old male, stood rigid by the cold fireplace, his jaw tight with tension, listening intently to the quiet. Seven year old Lily, a female, buried her face in her mother's skirt, her small body trembling, her face pale with fear. The air felt thick with an oppressive dread, a feeling that had settled over them since the strange sounds began. This wasnt the usual comfort of their home in the calm afternoon. A faint scratching sound drifted from the upstairs hallway, just above their heads. It stopped abruptly. Then came again, louder this time, a slow deliberate scrape against wood. Tom moved cautiously towards the bottom of the stairs, his eyes scanning the deep shadows pooling on the landing above. Sarah pulled Lily tighter against her, her heart pounding a frantic rhythm against her ribs. The scratching grew louder still, unmistakably deliberate, just outside the closed door at the top of the stairs. It paused, then a low, guttural growl echoed faintly down the stairwell. They waited, frozen in the scary stillness, listening.","location: home
1125 | mood: scary
1126 | people:
1127 | - age: 7
1128 | gender: female
1129 | name: Lily
1130 | - age: 30
1131 | gender: female
1132 | name: Sarah
1133 | - age: 35
1134 | gender: male
1135 | name: Tom
1136 | time_of_day: afternoon
1137 | "
1138 | "The fluorescent lights hummed softly over the rows of empty desks. It was just past eight AM, the early morning sun casting weak rectangles on the carpeted floor of the main office space. A heavy silence hung in the air, thicker than the usual pre-work quiet.
1139 |
1140 | Sarah, a woman of thirty-five, sat hunched at her cubicle, staring blankly at her screen. Her shoulders were slumped, and she occasionally wiped a tear from her cheek with the back of her hand. Across the aisle, David, a forty-two-year-old man, slowly sipped cold coffee from a mug, his gaze fixed on the wall, his face devoid of its usual cheerful expression.
1141 |
1142 | Near the window, Emily, a woman of twenty-eight, stood looking out, but her eyes seemed unfocused, distant. Her posture was stiff, betraying a deep sadness. Ben, a fifty-five-year-old man usually full of jokes, sat heavily in his chair, hands clasped tightly on his desk, his knuckles white. He wasn't working; none of them were really working. The news from yesterday had settled over them like a shroud, leaving them adrift in a shared, quiet grief. The usual morning energy was gone, replaced by a pervasive sense of sorrow and loss.","location: office
1143 | mood: sad
1144 | people:
1145 | - age: 55
1146 | gender: male
1147 | name: Ben
1148 | - age: 42
1149 | gender: male
1150 | name: David
1151 | - age: 28
1152 | gender: female
1153 | name: Emily
1154 | - age: 35
1155 | gender: female
1156 | name: Sarah
1157 | time_of_day: morning
1158 | "
1159 | "Sarah, an eight year old girl, huddled behind her father. Mark, a forty five year old male, stood frozen in the hallway. The late afternoon sun filtered weakly through the blinds of their house windows, casting long, distorted stripes across the worn wooden floorboards. An unnerving silence had fallen over their usually lively home. Sarah whimpered softly, clutching Mark's leg. His hand rested protectively on her head, but his body was rigid with tension. A faint scratching sound came from the attic directly above them. It stopped. Then, a slow, heavy thud echoed through the ceiling. Marks eyes darted upwards, wide with a fear he tried to hide from his daughter. The air in the house felt thick and cold, despite the mild afternoon outside. They were home, safe indoors, but an undeniable sense of dread filled the space, making every shadow seem to stretch and twist into something menacing.","location: home
1160 | mood: scary
1161 | people:
1162 | - age: 45
1163 | gender: male
1164 | name: Mark
1165 | - age: 8
1166 | gender: female
1167 | name: Sarah
1168 | time_of_day: afternoon
1169 | "
1170 | "The sprawling office floor was a maze of dark cubicles and silent machines. Outside the tall windows, the night sky was a vast, starless black, confirming the late hour. An unnerving silence hung in the air, broken only by the faint, irregular hum of the building's old systems. The atmosphere was thick with dread; the mood was undeniably scary.
1171 |
1172 | Sarah, a 28-year-old female, pressed her back against the wall of her cubicle, her breathing shallow. David, a 35-year-old male, gripped the edge of his desk, his knuckles white, eyes wide with apprehension. Down the long hallway, Emily, a 22-year-old female, was visibly trembling, tears welling in her eyes as she stared into the gloom. They were the last ones left working late, isolated on the top floor.
1173 |
1174 | A sudden, sharp rap echoed from a distant wall, making them all freeze. Then, a low, guttural moan seemed to drift from the direction of the server room. Mr. Abernathy, a 60-year-old male security guard, was supposed to have finished his rounds by now, but they hadn't seen him. The moan came again, closer this time, followed by a slow, shuffling sound just around the corner of the main corridor. Emily muffled a sob. David slowly pushed his chair back. Sarah squeezed her eyes shut for a second, bracing herself. The silence that followed felt even more terrifying than the sounds. The scary atmosphere was now suffocating.","location: office
1175 | mood: scary
1176 | people:
1177 | - age: 35
1178 | gender: male
1179 | name: David
1180 | - age: 22
1181 | gender: female
1182 | name: Emily
1183 | - age: 60
1184 | gender: male
1185 | name: Mr. Abernathy
1186 | - age: 28
1187 | gender: female
1188 | name: Sarah
1189 | time_of_day: night
1190 | "
1191 | "The only sound in the vast, silent space was the hum of distant servers and the soft click of a pen cap. Elias, a man in his late forties with salt and pepper hair and tired eyes, stared out the window at the inky blackness reflecting the stark fluorescent lights of the empty floor. Beside him sat Clara, a woman in her early thirties, her shoulders slumped forward, a single tear tracing a path down her cheek.
1192 |
1193 | They were in the main work area, surrounded by unoccupied cubicles, monitors dark and silent like sleeping sentinels. Piles of files and half-empty coffee cups littered desks, remnants of a day long past. The only illumination came from the emergency lights and the faint glow from Elias's phone screen. Outside, the city was a distant galaxy of lights, but here, inside the hushed office building, it felt like the end of the world.
1194 |
1195 | ""I just don't know what we do now,"" Clara whispered, her voice thick with emotion. ""Everything we worked for...""
1196 |
1197 | Elias sighed, the sound heavy in the quiet room. ""I know, Clara. I know."" He didn't look at her, his gaze fixed on the dark reflection. The air between them was thick with shared disappointment and the quiet despair of broken plans. The weight of their failure settled over them like a shroud in the dead of night.","location: office
1198 | mood: sad
1199 | people:
1200 | - age: 32
1201 | gender: female
1202 | name: Clara
1203 | - age: 48
1204 | gender: male
1205 | name: Elias
1206 | time_of_day: night
1207 | "
1208 | "Clara, a female aged 45, stirred her tea slowly, the spoon making a faint chime against the ceramic mug. Across the worn wooden kitchen table sat David, a male aged 48, engrossed in a newspaper, the gentle rustle of pages barely disturbing the quiet. Ten year old Leo, a male, quietly finished his cereal, his gaze fixed on the view outside the window where the soft pink light of dawn was just beginning to paint the tops of the familiar oak trees in the garden. Sunlight, still low and warm, slanted into the room, illuminating dust motes dancing lazily in the still air above the table. The gentle, consistent hum of the old refrigerator was the loudest sound in the room. No one spoke loudly; their voices, if used, were soft and low. There was no sense of rush or urgency in their unhurried movements. The comforting aroma of brewing coffee from the counter mingled subtly with the faint sweetness of a discarded piece of toast on a plate. A profound sense of quiet peace had settled over the room, a palpable feeling of familiar comfort as they eased gently into the very beginning of their day. The air felt still, warm, and undeniably gentle. Clara lifted her mug and took a small, savouring sip of her warm tea. David carefully folded his newspaper section with deliberate slowness. Leo finally pushed his empty bowl slightly away and slid silently from his chair, stretching slowly.","location: home
1209 | mood: calm
1210 | people:
1211 | - age: 45
1212 | gender: female
1213 | name: Clara
1214 | - age: 48
1215 | gender: male
1216 | name: David
1217 | - age: 10
1218 | gender: male
1219 | name: Leo
1220 | time_of_day: morning
1221 | "
1222 | "The late afternoon sun, a mellow orange, filtered through the leaded panes of The Crown and Anchor pub, illuminating floating dust motes in the still air. Inside, the usual boisterous energy of an evening had not yet arrived. The space felt hushed, filled only with the low thrum of the refrigerator behind the bar and the occasional quiet clink of ceramics being stacked. The scent was a comforting mix of polish, old wood, and faintly spilt ale. A few tables were occupied by solitary figures reading or quiet pairs engaged in soft conversation.
1223 |
1224 | In a snug booth by the window, Arthur was seated, a man who seemed to be in his late sixties. His grey hair was neatly combed, and he wore a simple tweed jacket. He held a half-empty pint of amber ale, his gaze fixed on the street outside with a relaxed expression. His posture was slumped comfortably against the worn leather of the booth. Opposite him sat Clara, a woman who appeared to be in her early seventies. Her hands, slightly gnarled with age, cradled a warm mug of tea. She watched the condensation form on the glass, her expression serene. The silence between them wasn't awkward but companionable. They had come here for the quiet respite the pub offered at this time of day, a place where the world outside seemed to pause, allowing for simple, unhurried moments. The overall mood was one of deep, untroubled calm, a perfect backdrop for two people comfortable in each other's presence, sharing the peaceful afternoon.","location: pub
1225 | mood: calm
1226 | people:
1227 | - age: 68
1228 | gender: male
1229 | name: Arthur
1230 | - age: 72
1231 | gender: female
1232 | name: Clara
1233 | time_of_day: afternoon
1234 | "
1235 | "The air in The Old Pig's Snout hung thick and still, even for an afternoon. Dust motes danced in the single shaft of weak sunlight piercing the grimy window, illuminating the worn wooden tables and the sticky floor. It was just past three o'clock, the usual afternoon lull, but this quiet felt wrong, heavy with unspoken things in the pub.
1236 |
1237 | In a dark corner booth sat Silas. He was an old man, perhaps seventy, his male face a roadmap of wrinkles, his eyes unnervingly bright as he stared into his empty glass. Across the room, near the bar, sat Clara, a woman in her late forties. She was female, dressed simply, but her hands twisted nervously in her lap, her gaze flickering between Silas and the door as if trapped. A young man, maybe twenty years old, hovered near the exit. His name was Tom, male, and his face was pale, his eyes wide with a fear he couldn't hide. A sudden, cold draft swept through the room, though no door or window seemed open, and Clara let out a tiny gasp, pulling her worn cardigan tighter. Silas didn't move, his unsettling stare fixed, and Tom swallowed hard, inching infinitesimally closer to the street outside. The silence stretched, taut and terrifying.","location: pub
1238 | mood: scary
1239 | people:
1240 | - age: 48
1241 | gender: female
1242 | name: Clara
1243 | - age: 70
1244 | gender: male
1245 | name: Silas
1246 | - age: 20
1247 | gender: male
1248 | name: Tom
1249 | time_of_day: afternoon
1250 | "
1251 | "The grey light of dawn barely touched the wet pavement of Elm Street. Dew still clung stubbornly to the few blades of grass pushing through cracks near the curb. Arthur, a man of sixty-five years, walked with his shoulders slightly stooped, his gaze fixed on the ground just ahead of his worn shoes. Beside him, Clara, a woman of sixty-two, held a damp handkerchief loosely in her hand, occasionally dabbing at the corners of her eyes. Her face was etched with a quiet sorrow that seemed deeper than usual this morning.
1252 |
1253 | A few steps behind them shuffled Leo, a ten-year-old boy. His normally bright eyes were downcast, and he kicked idly at a loose stone, the small scuffing sound echoing faintly in the oppressive stillness. The usual morning sounds of the neighborhood seemed muted, respectful perhaps, of the heavy silence that hung between the three figures. Each step they took down the familiar street felt slower, burdened by an invisible weight. The air itself felt heavy, thick with unspoken grief that made breathing feel shallow. The rising sun offered no warmth to lift the profound chill that settled deep within their chests. They walked on, a small, somber procession in the quiet morning light, their footsteps the only sound breaking the heavy silence.","location: street
1254 | mood: sad
1255 | people:
1256 | - age: 65
1257 | gender: male
1258 | name: Arthur
1259 | - age: 62
1260 | gender: female
1261 | name: Clara
1262 | - age: 10
1263 | gender: male
1264 | name: Leo
1265 | time_of_day: morning
1266 | "
1267 | "The office building stood silent against the dark night sky, most windows blacked out. Inside, however, on the third floor, a single room buzzed with life. It was unmistakably late, the cleaning crew having finished hours ago, the city lights twinkling like scattered jewels visible through the large windows. Despite the quiet, late hour, the mood in the room was one of pure joy.
1268 |
1269 | Sarah, a 32-year-old female, threw her head back and laughed, a bright, unrestrained sound. Beside her, David, a 45-year-old male, wiped a tear from his eye, a wide grin stretched across his face. Across the small table, littered with the remains of a celebratory pizza, Emily, a 24-year-old female, was beaming, recounting a funny anecdote from the challenging past few weeks. Chris, a 58-year-old male, nodded along, a gentle, happy smile softening the lines around his eyes. They had just received confirmation that their major project was a resounding success, and the sense of relief and shared triumph filled the air, making the late night in the office feel like the best place in the world.","location: office
1270 | mood: happy
1271 | people:
1272 | - age: 58
1273 | gender: male
1274 | name: Chris
1275 | - age: 45
1276 | gender: male
1277 | name: David
1278 | - age: 24
1279 | gender: female
1280 | name: Emily
1281 | - age: 32
1282 | gender: female
1283 | name: Sarah
1284 | time_of_day: night
1285 | "
1286 | "The heavy silence hung in the living room like a thick fog. Outside, the night was complete, not a sliver of moon or star visible through the window of their house. Inside, only a single lamp cast a pool of dim, warm light, failing to lift the profound sadness that settled over everything.
1287 |
1288 | Sarah, a female aged 45, sat hunched on the edge of the sofa, her shoulders slumped, her gaze distant and unfocused. Beside her, Tom, a male aged 48, leaned back, his face etched with quiet pain, his hands clasped tightly in his lap. Across the coffee table, Emily, a female aged 17, sat hugging her knees, her eyes red-rimmed from crying, occasionally letting out a soft, shaky breath. Huddled in the corner of the other sofa was David, a male aged 12, his small frame trembling slightly, burying his face in the worn fabric of a cushion. The air in their home was thick with unspoken grief under the cloak of night.","location: home
1289 | mood: sad
1290 | people:
1291 | - age: 12
1292 | gender: male
1293 | name: David
1294 | - age: 17
1295 | gender: female
1296 | name: Emily
1297 | - age: 45
1298 | gender: female
1299 | name: Sarah
1300 | - age: 48
1301 | gender: male
1302 | name: Tom
1303 | time_of_day: night
1304 | "
1305 | "It was late afternoon on the main office floor. The usual chatter had died down hours ago, replaced by a deep, unsettling quiet that felt heavier than normal. Overhead, the fluorescent lights cast a sterile, pale glow across the rows of empty desks, their faint hum the only consistent sound. Outside, the light filtering through the large windows was starting to fade towards dusk, but it was still clearly daytime.
1306 |
1307 | Sarah, a 28 year old female, sat frozen at her desk, her fingers hovering over the keyboard. Beside her, Mark, a 45 year old male, slowly turned his head, his eyes wide with apprehension. Across the aisle, Priya, a 31 year old female, clutched her hands together tightly, her knuckles white.
1308 |
1309 | A distinct, slow dragging sound echoed from the hallway just outside their office door. It stopped. Then, a soft scratching came from the wall right next to Mark’s cubicle. They exchanged terrified glances. The air felt cold, despite the still afternoon warmth outside. Every shadow seemed to stretch and deepen, holding unseen threats. The silence that followed felt like a scream.","location: office
1310 | mood: scary
1311 | people:
1312 | - age: 45
1313 | gender: male
1314 | name: Mark
1315 | - age: 31
1316 | gender: female
1317 | name: Priya
1318 | - age: 28
1319 | gender: female
1320 | name: Sarah
1321 | time_of_day: afternoon
1322 | "
1323 | "Liam, a 28-year-old male, settled deeper into the well-worn upholstery of the booth, a wide grin fixed on his face. Opposite him, Chloe, a 26-year-old female, leaned forward, her eyes sparkling with mirth as she erupted into another peal of laughter. The low thrum of conversations mixed with the clatter of glasses and the distant jangle of a fruit machine created a familiar, comforting din. Warm, slightly amber light spilled from ornate lamps, illuminating dust motes dancing in the air and casting long, friendly shadows across the dark wooden floor. Outside, the windows showed only the inky blackness of the night, punctuated by the occasional gleam of passing car headlights. The rich, earthy smell of ale and the faint aroma of crisps hung in the air. ""Seriously? You really told the boss *that*?"" Chloe managed between gasps of laughter, wiping a tear from her eye. Liam chuckled, running a hand through his hair. Their easy banter flowed effortlessly, punctuated by shared jokes and happy sighs. Every word exchanged, every shared smile, contributed to the palpable sense of joy and relaxation that enveloped their little corner of the room. They were comfortable, carefree, and genuinely happy to be spending this late hour together in the lively, welcoming space.","location: pub
1324 | mood: happy
1325 | people:
1326 | - age: 26
1327 | gender: female
1328 | name: Chloe
1329 | - age: 28
1330 | gender: male
1331 | name: Liam
1332 | time_of_day: night
1333 | "
1334 | "The small house was enveloped in a stillness that felt unnatural, especially in the kitchen, where mornings were usually bustling. The clock on the wall ticked loudly, the only sound breaking the silence, each tick amplifying the quiet. Outside, the early morning light was dull and grey, filtering weakly through the kitchen window above the sink and failing to brighten the room. The air felt thick, oppressive, saturated with a profound sadness that made breathing feel difficult. This was not the typical cheerful start to the day in this home.
1335 |
1336 | Sarah, a female aged 35, sat hunched over the worn wooden table, her shoulders shaking slightly with silent sobs. Tears tracked down her face, landing silently on the polished surface. Facing away from her, near the window, stood Mark, a male aged 40. His posture was stiff, his hands clenched loosely at his sides, and his gaze fixed on the empty street outside, his expression one of deep sorrow and helplessness.
1337 |
1338 | Between them, a small figure sat motionless. This was Emily, a female aged 8. She sat at the table, her untouched bowl of brightly colored cereal forgotten before her. Her usually lively eyes were downcast, fixed on her hands clasped tightly in her lap, her small face pale. The shared weight of their grief hung visibly in the small space, a silent testament to the sorrow that had settled over their home this morning, replacing the usual warmth with a chilling sadness.","location: home
1339 | mood: sad
1340 | people:
1341 | - age: 8
1342 | gender: female
1343 | name: Emily
1344 | - age: 40
1345 | gender: male
1346 | name: Mark
1347 | - age: 35
1348 | gender: female
1349 | name: Sarah
1350 | time_of_day: morning
1351 | "
1352 | "Leo, an eight-year-old male boy, skipped slightly ahead on the cracked grey pavement. His mother, Maria, a thirty-five-year-old female woman, walked beside him, her hand loosely holding his small one.
1353 |
1354 | The late afternoon sun cast long, warm shadows from the brick buildings lining the street. It wasn't the harsh glare of midday, but a softer, golden light that made the air feel gentle. The sounds of distant traffic were muted, replaced by the quiet hum of a peaceful day drawing to a close.
1355 |
1356 | They had just left the park, giggling about a particularly silly squirrel they'd seen. Leo’s bright blue eyes sparkled as he recounted the squirrel’s antics, his face split in a wide, gap-toothed grin. Maria laughed, a light, joyful sound, squeezing his hand gently. ""It really was quite a performance, wasn't it?"" she said, her own smile mirroring his. The air felt light and easy around them. They continued down the street, their steps buoyant, simple contentment radiating from them both.","location: street
1357 | mood: happy
1358 | people:
1359 | - age: 8
1360 | gender: male
1361 | name: Leo
1362 | - age: 35
1363 | gender: female
1364 | name: Maria
1365 | time_of_day: afternoon
1366 | "
1367 | "The brass fixtures gleamed softly under the pale morning light filtering through the high windows of The Salty Anchor. It was quiet, the usual evening bustle replaced by a peaceful stillness that settled comfortably in the air. Arthur, a man of sixty-seven with kind eyes and salt-and-pepper hair, sat nursing a cup of tea at a small corner table. He wore a simple tweed jacket, his posture relaxed as he gazed out the window at the quiet street. The air carried the faint, clean scent of morning polish mixed with a hint of stale hops from the night before. A gentle hum from a refrigerator was the loudest sound, a soft background noise to the quiet.
1368 |
1369 | Clara, a woman aged fifty-five with short, practical brown hair, stood behind the polished wooden bar, slowly wiping down the counter with a clean cloth. She moved with unhurried efficiency, her expression serene. She glanced over at Arthur and offered a small, warm smile. ""Morning, Arthur,"" she murmured, her voice low and even. Arthur nodded back, a contented sigh escaping his lips. He took a slow sip of his tea, the warmth spreading through him. He appreciated these quiet moments before the day truly began. Clara finished wiping the section of the bar in front of him and leaned against the counter, her stance relaxed. ""Anything else for you, Arthur?"" she asked, her voice still soft. ""No thank you, Clara. This is perfect,"" he replied, gesturing slightly with his teacup towards the peaceful scene outside and inside the pub. He felt a sense of deep contentment, a calmness that settled over him like the morning mist. The sounds of a distant bird singing and the gentle hum of the refrigerator were the only interruptions to the silence. Clara smiled again, a shared understanding passing between them. The pub was their sanctuary in these early hours, a pocket of quiet before the world woke up. The air felt clean and cool, a stark contrast to the warmth of the brewing tea and the quiet companionship they shared in the tranquil morning light.","location: pub
1370 | mood: calm
1371 | people:
1372 | - age: 67
1373 | gender: male
1374 | name: Arthur
1375 | - age: 55
1376 | gender: female
1377 | name: Clara
1378 | time_of_day: morning
1379 | "
1380 | "The campfire had long since died down, leaving only a faint glow. Alex, an 18-year-old male, nervously poked the cold ashes with a stick. Beside him, Ben, a 19-year-old male, clutched a flashlight, its beam occasionally slicing through the oppressive darkness of the dense woods surrounding them. Chloe, a 17-year-old female, huddled closer to Daisy, an 18-year-old female, their shoulders touching for comfort. The air was thick with the smell of damp earth and decaying leaves. Every snap of a twig, every rustle in the undergrowth, sent a jolt of fear through them. The sounds of the forest at night, usually calming, now seemed menacing, alien. They were miles from any road, deep in the wilderness, with only their small tent offering fragile protection. A distant, unidentifiable howl echoed through the trees, raising the fine hairs on their arms. The silence that followed felt heavier, more terrifying than the noise itself. They exchanged wide-eyed glances, each seeing their own fear reflected in the others' faces. The darkness pressed in, an almost physical weight, and the feeling of being watched intensified with every passing second. They knew they shouldn't have camped so far out.","location: nature
1381 | mood: scary
1382 | people:
1383 | - age: 18
1384 | gender: male
1385 | name: Alex
1386 | - age: 19
1387 | gender: male
1388 | name: Ben
1389 | - age: 17
1390 | gender: female
1391 | name: Chloe
1392 | - age: 18
1393 | gender: female
1394 | name: Daisy
1395 | time_of_day: night
1396 | "
1397 | "The old house groaned around them. Liam, an eight-year-old male with wide eyes, clutched the sleeve of his sister Chloe, a sixteen-year-old female whose usual bravado had faded. Mom, Sarah, a forty-year-old female, stood frozen by the bottom of the creaking stairs, her face pale. Long, distorted shadows stretched across the hallway carpet from the single window, remnants of the late afternoon sun struggling through thick clouds. Dust motes danced in the weak light, adding to the unsettling stillness. They were definitely inside their own house, the familiar worn furniture now looking alien and dark. Just minutes ago, a loud, scraping noise had echoed from upstairs, a sound unlike anything they'd ever heard before. It wasn't the wind, wasn't the old pipes. It was slow, deliberate, and seemed to be moving. A cold dread had settled over the family, thick and suffocating. Every shadow seemed to hide something, every creak of the floorboards felt like footsteps other than their own. The air felt heavy, charged with a palpable sense of fear. They stood there, listening, heartbeats thrumming in the oppressive silence of their home, wondering what was upstairs and if it knew they were hiding.","location: home
1398 | mood: scary
1399 | people:
1400 | - age: 16
1401 | gender: female
1402 | name: Chloe
1403 | - age: 8
1404 | gender: male
1405 | name: Liam
1406 | - age: 40
1407 | gender: female
1408 | name: Sarah
1409 | time_of_day: afternoon
1410 | "
1411 | "Clara, a 28 year old female, skipped slightly, her ponytail swaying. Beside her, Leo, a 30 year old male, walked with a relaxed stride, a wide smile fixed on his face. They were on Oak Street, a familiar stretch of road lined with a mix of old brick buildings and cheerful storefronts. The late afternoon sun was beginning its gentle descent, painting the upper floors of the buildings in warm, golden light. Long shadows stretched across the sun-drenched pavement, a clear sign it was well past noon but not yet evening. The air was warm and pleasant, filled with the distant sounds of traffic and the closer sound of their own lighthearted chatter. ""Remember that time we tried to bake bread?"" Clara giggled, recalling a past disaster. Leo threw his head back and laughed, a deep, joyful sound that drew a smile from a woman passing by. The mood between them was undeniably happy. They talked about their day, their dreams, and silly memories, their voices light and cheerful. There was no rush, no stress, just the simple pleasure of shared company on a beautiful afternoon. They paused to look in a shop window, pointing and laughing at a quirky item. Every step felt easy, every word spoken seemed to add to the bubble of contentment surrounding them. The happiness wasn't loud or boisterous, but a deep, settled joy that made the ordinary street feel magical.","location: street
1412 | mood: happy
1413 | people:
1414 | - age: 28
1415 | gender: female
1416 | name: Clara
1417 | - age: 30
1418 | gender: male
1419 | name: Leo
1420 | time_of_day: afternoon
1421 | "
1422 | "The late afternoon sun poured warm golden beams through the large living room window, illuminating dust motes dancing in the air. Outside, the shadows of trees were beginning to stretch across the lawn, a clear sign of the afternoon wearing on towards evening. This familiar space, filled with the scent of just-baked cookies and comfortable worn furniture, was undeniably their home. Sarah, a female aged 35, was doubled over with laughter on the soft sofa. Her husband, Tom, a male aged 37, was on the floor, engaged in a tickle war with their youngest, Leo, a male aged 5. Leo's shrieks of pure delight filled the room, his small body wriggling with joy. Beside them, Emily, a female aged 8, carefully placed the final block on her magnificent tower. A wide smile was plastered across her face as she admired her creation, humming a happy little song to herself. The air vibrated with genuine warmth and contentment. It was a scene of simple, unadulterated happiness shared within these four walls.","location: home
1423 | mood: happy
1424 | people:
1425 | - age: 8
1426 | gender: female
1427 | name: Emily
1428 | - age: 5
1429 | gender: male
1430 | name: Leo
1431 | - age: 35
1432 | gender: female
1433 | name: Sarah
1434 | - age: 37
1435 | gender: male
1436 | name: Tom
1437 | time_of_day: afternoon
1438 | "
1439 | "The faint glow of dawn barely penetrated the dense canopy overhead as Robert (45, male) led the way along the narrow, twisting path. This early morning hike was supposed to be a peaceful escape into nature, but a heavy, unnatural silence had fallen over the woods. Sarah (42, female) walked close behind, her shoulders tense, pulling Emily (10, female) near. The towering pines and ancient oaks seemed to lean in, their branches like skeletal fingers in the diffused light. A thick, clammy mist clung to the ground, smelling of damp earth and decay. Tom (8, male) lagged slightly behind, his eyes wide with a fear he couldnt name, scanning the dense undergrowth. He swore he saw something move just beyond the ferns, a flicker of dark fur or shadow disappearing quickly. A low, guttural sound echoed from somewhere deeper among the trees, unlike any animal they knew. Sarah pulled the children closer, her breath catching in her throat. Robert froze, listening intently, his hand instinctively going to the small multi-tool on his belt. The silence pressed in around them again, thicker than the mist, filled with a growing sense of dread. They were alone, deep in the woods, and the chilling certainty grew that something unseen was watching their every move.","location: nature
1440 | mood: scary
1441 | people:
1442 | - age: 10
1443 | gender: female
1444 | name: Emily
1445 | - age: 45
1446 | gender: male
1447 | name: Robert
1448 | - age: 42
1449 | gender: female
1450 | name: Sarah
1451 | - age: 8
1452 | gender: male
1453 | name: Tom
1454 | time_of_day: morning
1455 | "
1456 | "The late afternoon sun cast long shadows across the worn rug in the living room. Dust motes danced in the golden shafts of light filtering through the window panes of the modest house. An old grandfather clock in the hall ticked with a slow, heavy rhythm that seemed to amplify the silence.
1457 |
1458 | Sarah, a woman of forty five years, sat slumped on the sofa, her shoulders rounded. Beside her, Tom, forty eight and male, stared blankly at the wall, his hands clasped tightly between his knees. Across the room, Emily, a sixteen year old female, hugged her knees to her chest in the armchair, her gaze fixed on the floor. Her younger brother, Alex, a male aged ten, sat cross legged near the cold fireplace, idly tracing patterns on the hearth with his finger, his usual energy completely absent.
1459 |
1460 | The air in the room felt thick and heavy, weighted down by unspoken grief. No one spoke. The only sounds were the distant tick of the clock and the occasional sigh. Each person was lost in their own quiet sorrow, a palpable wave of sadness filling the space between them. The stillness was profound, broken only by the slow passage of time marked by the sun sinking lower outside. It was an afternoon steeped in shared, silent pain.","location: home
1461 | mood: sad
1462 | people:
1463 | - age: 10
1464 | gender: male
1465 | name: Alex
1466 | - age: 16
1467 | gender: female
1468 | name: Emily
1469 | - age: 45
1470 | gender: female
1471 | name: Sarah
1472 | - age: 48
1473 | gender: male
1474 | name: Tom
1475 | time_of_day: afternoon
1476 | "
1477 | "The King's Head pub was a quiet, echoing space this early. It was just past nine in the morning, and weak sunlight filtered hesitantly through the high windows, illuminating dust motes dancing in the still air. The usual evening buzz was absent, replaced by a profound silence broken only by the distant hum of a refrigerator and the faint smell of stale beer mixed with disinfectant. Empty pint glasses were stacked neatly behind the polished wooden bar, and the tables stood bare and unoccupied.
1478 |
1479 | In a booth near the back, two figures sat slumped. Arthur, a man of sixty-five years, rested his forehead in his hand, his shoulders visibly heavy with despair. His face was pale and lined, his gaze fixed on the worn table surface. Across from him sat Eleanor, a woman aged sixty-two. She stared out the window at the quiet street, her eyes red-rimmed and distant. A single, untouched cup of tea sat cooling before her. The atmosphere around them was thick with unspoken sadness, a heavy, palpable gloom that made the empty pub feel even more desolate and unwelcoming. Neither spoke, lost in their own private sorrow in the quiet morning light.","location: pub
1480 | mood: sad
1481 | people:
1482 | - age: 65
1483 | gender: male
1484 | name: Arthur
1485 | - age: 62
1486 | gender: female
1487 | name: Eleanor
1488 | time_of_day: morning
1489 | "
1490 | "The only light came from the desk lamp on Sarah's workspace, casting a small pool of yellow on the scattered reports. Outside the large window, the city lights twinkled like fallen stars in the deep black of night. The usual daytime hum of computers and chatter was replaced by a profound, heavy silence that pressed in from all sides of the empty office floor. Sarah, a female of thirty years, sat slumped forward, her fingers tracing the worn edge of a photograph on her desk. Her eyes were red-rimmed, reflecting the faint light. A sigh escaped her lips, barely audible in the quiet.
1491 |
1492 | ""Still here, Sarah?"" a voice asked softly from the doorway of the small conference room. It was Mark, a male aged thirty-five, his shoulders slightly stooped, holding a half-empty coffee mug. His expression was one of shared weariness and sorrow.
1493 |
1494 | Sarah didn't look up immediately. ""Yeah,"" she murmured, her voice thick with unshed tears. ""Couldn't bring myself to leave.""
1495 |
1496 | Mark walked slowly towards her desk, his footsteps muffled by the office carpet. He stopped beside her, looking down at the photo, then at her. The air between them was thick with unspoken grief, a shared burden that made the late hour feel even longer, amplifying the pervasive sadness that clung to the silent office like a shroud. The city slept outside, but inside these walls, two people carried the weight of their night.","location: office
1497 | mood: sad
1498 | people:
1499 | - age: 35
1500 | gender: male
1501 | name: Mark
1502 | - age: 30
1503 | gender: female
1504 | name: Sarah
1505 | time_of_day: night
1506 | "
1507 | "The afternoon sun slanted through the tall office windows, casting long, gentle shadows across the polished floor. The hum of computers was a low, steady backdrop in the quiet space. It was a calm afternoon.
1508 |
1509 | Sarah, a female aged 35, sat at her desk, her fingers moving rhythmically on the keyboard. Across the room, David, a 48 year old male, leaned back in his chair, reviewing documents with a serene expression. Near the window, Liam, a 22 year old male, carefully organized files on a shelf, his movements deliberate and unhurried.
1510 |
1511 | Sarah paused, a faint smile touching her lips as she finished a task. David softly cleared his throat before returning to his reading. Liam hummed a quiet, tuneless melody as he worked. The only sounds were the soft clicks of keys, the rustle of paper, and the gentle hum of the air conditioning. No one was stressed or hurried. The office felt peaceful, settled into the quiet rhythm of the late afternoon.","location: office
1512 | mood: calm
1513 | people:
1514 | - age: 48
1515 | gender: male
1516 | name: David
1517 | - age: 22
1518 | gender: male
1519 | name: Liam
1520 | - age: 35
1521 | gender: female
1522 | name: Sarah
1523 | time_of_day: afternoon
1524 | "
1525 | "Anya, an eight-year-old girl with bright eyes, skipped ahead on the narrow dirt path that wound through the trees. Her older brother, Leo, a ten-year-old boy full of boundless energy, bounded off the path for a moment to chase a bright yellow butterfly fluttering near a patch of wild flowers. Their parents, Ben, a man of forty with kind eyes, and Clara, a thirty-eight-year-old woman with a warm smile, walked a little slower behind them, their hands occasionally brushing.
1526 |
1527 | The sun was just beginning to climb above the tall pine trees that lined the path, casting long, dancing shadows and dappling the forest floor with warm golden light. The air was crisp and cool, carrying the fresh smell of damp earth and green leaves. Dewdrops glittered like tiny jewels on spiderwebs stretched between low branches. The vibrant sound of birdsong filled the peaceful air, a natural symphony greeting the start of the day.
1528 |
1529 | Anya suddenly stopped, pointing excitedly towards a squirrel scampering up the rough bark of an old oak tree. Leo caught up, giggling at the squirrel's speed. Ben put a comfortable arm around Clara's shoulders, and they shared a look of quiet contentment, watching their children. This simple walk through the quiet woods felt perfect to them all. They were relaxed, easy laughter bubbled up frequently, and everyone was soaking in the peaceful, beautiful atmosphere of the early morning. It was a moment of pure, uncomplicated joy shared between the four of them on their walk.","location: nature
1530 | mood: happy
1531 | people:
1532 | - age: 8
1533 | gender: female
1534 | name: Anya
1535 | - age: 40
1536 | gender: male
1537 | name: Ben
1538 | - age: 38
1539 | gender: female
1540 | name: Clara
1541 | - age: 10
1542 | gender: male
1543 | name: Leo
1544 | time_of_day: morning
1545 | "
1546 | "The cold night air bit at their faces as they stood on the cracked pavement. A lone streetlight overhead cast a weak, orange glow, illuminating dust motes dancing in the still air. Sarah, a woman of forty-two, wrapped her arms tightly around her chest, her shoulders slumped. Beside her, David, a man of forty-five, stared blankly at the darkened windows of the house behind them. His face was etched with a weariness that went deeper than the late hour. Their daughter, Emily, a sixteen-year-old girl, leaned against a lamppost, tears tracing slow paths down her cheeks in the dim light. Her younger brother, Tom, a ten-year-old boy, kicked idly at a loose pebble near the gutter, his lower lip trembling. No one spoke. The silence on the street was heavy, broken only by a distant siren. It felt like the end of everything they knew, a quiet, sorrowful farewell under the indifferent sky.","location: street
1547 | mood: sad
1548 | people:
1549 | - age: 45
1550 | gender: male
1551 | name: David
1552 | - age: 16
1553 | gender: female
1554 | name: Emily
1555 | - age: 42
1556 | gender: female
1557 | name: Sarah
1558 | - age: 10
1559 | gender: male
1560 | name: Tom
1561 | time_of_day: night
1562 | "
1563 | "The streetlights cast long, yellow pools onto the wet pavement. It was late; the shops lining the road were dark and quiet, their windows reflecting the soft glow. Sarah, a woman of twenty-eight years, held the small hand of Maria, her six-year-old daughter. Maria skipped slightly ahead, her bright yellow raincoat bobbing with her movement, humming a tune under her breath. Beside Sarah walked Tom, a man of thirty. He let out a hearty laugh at something Sarah had just said, the sound echoing slightly in the stillness of the night. Trailing slightly behind Tom was his son, David, a boy of five, who giggled loudly, trying to mimic his father's laugh even though he hadn't heard the joke. A warm, shared smile passed between Sarah and Tom as they watched the children. Maria turned back, her face alight with pure excitement, pointing a mittened finger at a particularly bright streetlight that seemed to hum softly above them. David ran up to join her, his small legs pumping, nearly tripping in his eagerness. Tom put a comfortable, easy arm around Sarah's shoulder as they continued their walk home. The air was cool and damp, carrying the faint, clean smell of rain that had recently fallen. They weren't doing anything extraordinary, just walking home together after visiting friends, but the simple act was filled with joy. The children's boundless energy despite the late hour, the easy laughter shared between everyone, and the quiet companionship of the adults filled the empty street with a palpable sense of simple, undeniable happiness. The late night street felt less like a public thoroughfare and more like their own private, glowing path.","location: street
1564 | mood: happy
1565 | people:
1566 | - age: 5
1567 | gender: male
1568 | name: David
1569 | - age: 6
1570 | gender: female
1571 | name: Maria
1572 | - age: 28
1573 | gender: female
1574 | name: Sarah
1575 | - age: 30
1576 | gender: male
1577 | name: Tom
1578 | time_of_day: night
1579 | "
1580 | "Elara, a woman aged 68, sat peacefully on a sun-warmed stone. Beside her, Liam, a boy of 12, carefully stacked smooth, flat stones he found in the streambed. They were nestled in a secluded clearing deep within a sprawling forest. Ancient oak and pine trees stood sentinel around the edges, their leaves whispering in the soft breeze. The air held the cool dampness of dawn, mingled with the fresh scent of moss and earth. Above, the sky was a pale blue canvas, painted with the first delicate strokes of golden light as the sun began its ascent over the distant hills.
1581 |
1582 | The sounds were hushed and gentle: the continuous, soothing trickle of the stream flowing over polished pebbles, the sleepy cooing of a dove hidden high in the canopy, the soft rustle of leaves. Elara closed her eyes for a moment, breathing deeply, a serene smile touching her lips. Liam, finished with his stone tower, simply watched the water flow, his young face reflecting the quiet peace of the surroundings. The tranquility of the morning was palpable, a quiet stillness that settled deep within them both. It was early morning, and a profound sense of calm enveloped the clearing.","location: nature
1583 | mood: calm
1584 | people:
1585 | - age: 68
1586 | gender: female
1587 | name: Elara
1588 | - age: 12
1589 | gender: male
1590 | name: Liam
1591 | time_of_day: morning
1592 | "
1593 |
--------------------------------------------------------------------------------
/dot.env:
--------------------------------------------------------------------------------
1 | GEMINI_API_KEY=
--------------------------------------------------------------------------------
/generative-learning.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "cell_type": "markdown",
5 | "metadata": {},
6 | "source": [
7 | "# Datasets Are All You Need\n",
8 | "\n",
9 | "**Can an LLM teach itself how to prompt just by looking at a dataset?**\n",
10 | "\n",
11 | "_Spoilet alert: it sure can 😉_\n",
12 | "\n",
13 | "In this simple example, we use Gemini 2.5 Flash, Google DeepMind's fast and inexpensive model (and yet very powerful, with built-in \"reasoning\" abilities) to iteratively compare the inputs and outputs in a dataset and improve a prompt for transforming from one input to the other, with high accuracy.\n",
14 | "\n",
15 | "Similar setups work just as well with other reasoning models.\n",
16 | "\n",
17 | "**Why should you care?** While this example is simple, it demonstrates how **datasets can drive development in Generative AI projects**. While the analogy to traditional ML processes is being stretched here just a bit, we use our dataset as input for training, as validation data for discovering our \"hyperparameters\" (a prompt), and for testing the final results."
18 | ]
19 | },
20 | {
21 | "cell_type": "code",
22 | "execution_count": 1,
23 | "metadata": {
24 | "id": "RgODZfKiBJdM"
25 | },
26 | "outputs": [],
27 | "source": [
28 | "%pip install --upgrade python-dotenv nest_asyncio google-genai pandas pyyaml\n",
29 | "\n",
30 | "from IPython.display import clear_output ; clear_output()"
31 | ]
32 | },
33 | {
34 | "cell_type": "code",
35 | "execution_count": null,
36 | "metadata": {},
37 | "outputs": [],
38 | "source": [
39 | "import os\n",
40 | "import json\n",
41 | "import asyncio\n",
42 | "\n",
43 | "from dotenv import load_dotenv\n",
44 | "import nest_asyncio\n",
45 | "\n",
46 | "from textwrap import dedent\n",
47 | "from IPython.display import display, Markdown\n",
48 | "\n",
49 | "import pandas as pd\n",
50 | "\n",
51 | "import yaml\n",
52 | "\n",
53 | "from google import genai\n",
54 | "\n",
55 | "load_dotenv()\n",
56 | "\n",
57 | "nest_asyncio.apply()\n",
58 | "\n",
59 | "_gemini_client_aio = genai.Client(api_key=os.getenv('GEMINI_API_KEY')).aio\n",
60 | "\n",
61 | "async def gemini(prompt):\n",
62 | " response = await _gemini_client_aio.models.generate_content(\n",
63 | " model='gemini-2.5-flash-preview-04-17',\n",
64 | " contents=prompt,\n",
65 | " )\n",
66 | " return response.text\n",
67 | "\n",
68 | "def md(str): display(Markdown(str))\n",
69 | "\n",
70 | "def display_df(df):\n",
71 | " display(df.style.set_properties(\n",
72 | " **{'text-align': 'left', 'vertical-align': 'top', 'white-space': 'pre-wrap', 'width': '50%'},\n",
73 | " ))"
74 | ]
75 | },
76 | {
77 | "cell_type": "markdown",
78 | "metadata": {},
79 | "source": [
80 | "We've installed and imported some packages, and created some helper facilities.\n",
81 | "\n",
82 | "Now, let's look at our dataset.\n",
83 | "\n",
84 | "The dataset is of very short stories (input), parsed into YAML (output). The dataset was generated purposefully for this example, since relying on a publicly available dataset would mean accepting that the LLM would have seen it during pre-training.\n",
85 | "\n",
86 | "The task is pretty straightforward and, as you'll see, can be discovered by the LLM in only a few steps. More complex tasks can be achieved too, ideally with larger datasets, stronger LLMs, higher \"reasoning\" budget, and more iteration."
87 | ]
88 | },
89 | {
90 | "cell_type": "code",
91 | "execution_count": 3,
92 | "metadata": {},
93 | "outputs": [
94 | {
95 | "data": {
96 | "text/html": [
97 | "\n",
105 | "
\n",
106 | " \n",
107 | "
\n",
108 | "
\n",
109 | "
input
\n",
110 | "
output
\n",
111 | "
\n",
112 | " \n",
113 | " \n",
114 | "
\n",
115 | "
0
\n",
116 | "
The campfire crackled softly, a gentle murmur in the profound quiet of the night. Sarah, a woman of 35, sat cross-legged, her eyes reflecting the low flames, a look of peaceful contemplation on her face. Beside her, Mark, a man aged 38, reclined against a fallen log, hands clasped behind his head, utterly absorbed in the vast, star-dusted canvas above. His breathing was deep and relaxed. A few feet away, Lily, an 8-year-old girl, hummed a soft, tuneless song while gently sifting cool earth through her fingers. Her older brother, Tom, a 10-year-old boy, lay flat on his back on a thick blanket, his gaze fixed on the silvery path the moon cast across the smooth, dark surface of the lake just beyond the trees. The air was cool and still, carrying only the clean scents of pine needles, damp soil, and woodsmoke. Aside from the occasional distant hoot of an owl or the almost inaudible lapping of water, the stillness was complete. They were deep in a secluded clearing, surrounded by ancient trees and the quiet presence of the water. A palpable sense of peace and tranquility settled over the small group, each person finding their own quiet space in the communal calm under the expansive night sky.
The late afternoon sun cast long, gentle shadows across the quiet workspace. Sarah, a female aged 32, sat at her desk, her gaze fixed on the monitor in front of her. The only sounds were the low hum of the computer equipment and the occasional soft click of a mouse. It was clearly an office environment, with rows of tidy desks, filing cabinets lining one wall, and a whiteboard covered in faded markers. Across the aisle, Mark, a male aged 45, was leaning back in his chair, a half-empty mug of lukewarm coffee beside his keyboard. He was looking out the large window, his expression peaceful and relaxed. The air in the room felt still and calm, a sense of tranquil productivity pervading the space. Neither person spoke, content in the quiet routine of the workday winding down. The light filtering through the blinds indicated the sun was lower in the sky, firmly placing the time in the afternoon. Everything felt unhurried and serene.
Sarah, a 28 year old female, nervously hugged her arms, the silence of the place pressing in. Beside her, Mark, a 35 year old male, kept glancing towards the darker corners of the room. They were the only two left. The office occupied the entire fifth floor, a sprawling maze of empty cubicles and silent computers under the glow of emergency lights. Desks stretched out into the gloom, monitors reflecting only the dim light. Outside the large windows, the city was a distant sparkle against the absolute black of the night sky. It was well after midnight, the building quiet and deserted. An unsettling stillness hung in the air, broken only by the faint, inexplicable sounds the old building seemed to make in the dark. A cold draft slithered through the space, raising goosebumps on Sarah's arms. Mark shifted his weight, the sound unnaturally loud. They both felt it, the palpable sense of not being alone, of unseen eyes watching them from the shadows that clung to the edges of the empty office. It was an oppressive, chilling feeling.
\n"
167 | ],
168 | "text/plain": [
169 | ""
170 | ]
171 | },
172 | "metadata": {},
173 | "output_type": "display_data"
174 | },
175 | {
176 | "name": "stdout",
177 | "output_type": "stream",
178 | "text": [
179 | "100 items in dataset.\n"
180 | ]
181 | }
182 | ],
183 | "source": [
184 | "dataset = pd.read_csv('dataset.csv')\n",
185 | "\n",
186 | "display_df(dataset.head(3))\n",
187 | "\n",
188 | "print(f'{len(dataset)} items in dataset.')"
189 | ]
190 | },
191 | {
192 | "cell_type": "markdown",
193 | "metadata": {},
194 | "source": [
195 | "Just like in a traditional ML project, we'll split our dataset to training, validation, and testing subsets. We want to avoid testing on data that was seen during training. Note that the analogy isn't perfect - some data from the validation set leaks into training as we provide feedback to the LLM on previous runs. The testing set, however, is clearn."
196 | ]
197 | },
198 | {
199 | "cell_type": "code",
200 | "execution_count": 4,
201 | "metadata": {},
202 | "outputs": [
203 | {
204 | "name": "stdout",
205 | "output_type": "stream",
206 | "text": [
207 | "training: (25, 2)\n"
208 | ]
209 | },
210 | {
211 | "data": {
212 | "text/html": [
213 | "\n",
221 | "
\n",
222 | " \n",
223 | "
\n",
224 | "
\n",
225 | "
input
\n",
226 | "
output
\n",
227 | "
\n",
228 | " \n",
229 | " \n",
230 | "
\n",
231 | "
24
\n",
232 | "
The air in The Rusty Tankard felt heavy, thick with the scent of stale beer and unspoken words. Outside, the streetlights cast long, weak shadows, the sky a deep, starless black. It was late, well past nine, the usual evening bustle having faded into a quiet murmur.\n",
233 | "\n",
234 | "Around a small, sticky table sat four people. There was David, a man of 58, his shoulders slumped, eyes fixed on the condensation ring his glass left on the wood. Across from him was his daughter, Maria, a woman of 32, her fingers tracing patterns on the tabletop, a deep sigh escaping her lips every so often. To David's left sat their neighbour, Mr. Henderson, a quiet man of 65, who simply held his drink, his gaze distant. Completing the group was Sarah, a young woman of 25, a friend of Maria's, who looked pale and drawn, her voice barely a whisper when she spoke. The clinking of glasses from the bar seemed miles away, unable to break the palpable sense of loss that hung over their small gathering. Each person seemed wrapped in their own private world of sorrow, the shared space offering little comfort against the cold reality they were facing together, yet alone.
The afternoon sun bathed the quiet street in a warm, golden light. Long, soft shadows stretched across the pavement, indicating the day was gently progressing. A sense of calm hung in the air, peaceful and still, disturbed only by the soft rustle of leaves on the mature trees lining the sidewalk.\n",
293 | "\n",
294 | "Clara, a female aged sixty five, sat on a simple wooden bench positioned off the main path. Her expression was one of deep peace, her hands resting calmly in her lap as she watched the scene.\n",
295 | "\n",
296 | "Nearby, a young boy named Leo, eight years old and male, rode a bicycle back and forth with slow, deliberate movements on the smooth asphalt of the street's edge. His focus was intense but his manner was unhurried.\n",
297 | "\n",
298 | "Approaching them was David, a man of thirty five years, walking with a relaxed gait. He carried a single bag of groceries, his shoulders loose, contributing to the overall tranquil feeling of the scene. As he neared the bench, a soft smile touched his lips. The three figures shared the peaceful afternoon space, each content in the quiet street setting.
Elara, a woman aged 68, sat peacefully on a sun-warmed stone. Beside her, Liam, a boy of 12, carefully stacked smooth, flat stones he found in the streambed. They were nestled in a secluded clearing deep within a sprawling forest. Ancient oak and pine trees stood sentinel around the edges, their leaves whispering in the soft breeze. The air held the cool dampness of dawn, mingled with the fresh scent of moss and earth. Above, the sky was a pale blue canvas, painted with the first delicate strokes of golden light as the sun began its ascent over the distant hills.\n",
354 | "\n",
355 | "The sounds were hushed and gentle: the continuous, soothing trickle of the stream flowing over polished pebbles, the sleepy cooing of a dove hidden high in the canopy, the soft rustle of leaves. Elara closed her eyes for a moment, breathing deeply, a serene smile touching her lips. Liam, finished with his stone tower, simply watched the water flow, his young face reflecting the quiet peace of the surroundings. The tranquility of the morning was palpable, a quiet stillness that settled deep within them both. It was early morning, and a profound sense of calm enveloped the clearing.
\n"
370 | ],
371 | "text/plain": [
372 | ""
373 | ]
374 | },
375 | "metadata": {},
376 | "output_type": "display_data"
377 | }
378 | ],
379 | "source": [
380 | "training_dataset = dataset.iloc[:25].reset_index(drop=True)\n",
381 | "validation_dataset = dataset.iloc[25:50].reset_index(drop=True)\n",
382 | "testing_dataset = dataset.iloc[50:100].reset_index(drop=True)\n",
383 | "\n",
384 | "print(f'training: {training_dataset.shape}')\n",
385 | "display_df(training_dataset.tail(1))\n",
386 | "\n",
387 | "print(f'validation: {validation_dataset.shape}')\n",
388 | "display_df(validation_dataset.tail(1))\n",
389 | "\n",
390 | "print(f'testing: {testing_dataset.shape}')\n",
391 | "display_df(testing_dataset.tail(1))"
392 | ]
393 | },
394 | {
395 | "cell_type": "markdown",
396 | "metadata": {},
397 | "source": [
398 | "In the training process, we iteratively feed the samples from the traning set to the LLM, along with a request to analyse the samples and craft a prompt for transforming from the input to the output. We then apply the generated prompt to all the samples in out validation set, calculate the accuracy, and use the results as feedback for the LLM in a subsequent run. We continue iterating until we have a prompt that achieves high accuracy on the validation set."
399 | ]
400 | },
401 | {
402 | "cell_type": "code",
403 | "execution_count": null,
404 | "metadata": {},
405 | "outputs": [],
406 | "source": [
407 | "def compare_responses(res1, res2):\n",
408 | " try:\n",
409 | " return yaml.safe_load(res1) == yaml.safe_load(res2)\n",
410 | " except:\n",
411 | " return False\n",
412 | "\n",
413 | "async def discover_prompt(training_dataset, validation_dataset):\n",
414 | " epochs = []\n",
415 | " run_again = True\n",
416 | "\n",
417 | " while run_again:\n",
418 | " print(f'Epoch {len(epochs) + 1}\\n\\n')\n",
419 | "\n",
420 | " epoch_prompt = None\n",
421 | "\n",
422 | " training_sample_prompt = '\\n'\n",
423 | " for i, row in training_dataset.iterrows():\n",
424 | " training_sample_prompt += (\n",
425 | " \"\\n\"\n",
426 | " \"\\n\"\n",
427 | " + str(row['input']) + \"\\n\"\n",
428 | " \"\\n\"\n",
429 | " \"\\n\"\n",
432 | " \"\\n\"\n",
433 | " )\n",
434 | " training_sample_prompt += ''\n",
435 | " training_sample_prompt = dedent(training_sample_prompt)\n",
436 | "\n",
437 | " if len(epochs) == 0:\n",
438 | " epoch_prompt = dedent(f\"\"\"\n",
439 | " You are an expert AI engineer.\n",
440 | " Your goal is to create the most accurate and effective prompt for an LLM.\n",
441 | " Below you are provided with a set of training samples.\n",
442 | " Each samples consists of an input and an output.\n",
443 | " You should create a prompt that will generate the output given the input.\n",
444 | "\n",
445 | " Instructions: thinking carefully about the training samples to understand the exact transformation required.\n",
446 | " Output: output only the generated prompt, without any additional text or structure (no quoting, no JSON, no XML, etc...)\n",
447 | "\n",
448 | " {training_sample_prompt}\n",
449 | " \"\"\")\n",
450 | " else:\n",
451 | " epoch_prompt = dedent(f\"\"\"\n",
452 | " You are an expert AI engineer.\n",
453 | " Your goal is to create the most accurate and effective prompt for an LLM.\n",
454 | " Below you are provided with a set of training samples.\n",
455 | " Each samples consists of an input and an output.\n",
456 | " You should create a prompt that will generate the output given the input.\n",
457 | "\n",
458 | " Instructions: thinking carefully about the training samples to understand the exact transformation required.\n",
459 | " Output: output only the generated prompt, without any additional text or structure (no quoting, no JSON, no XML, etc...)\n",
460 | "\n",
461 | " You have information about the previous training epochs:\n",
462 | " \n",
463 | " {json.dumps(epochs)}\n",
464 | " \n",
465 | "\n",
466 | " You need to improve the prompt.\n",
467 | " Remember that you can rewrite the prompt completely if needed -\n",
468 | " the previous prompt is provided here for your review.\n",
469 | " \n",
470 | " {training_sample_prompt}\n",
471 | " \"\"\")\n",
472 | "\n",
473 | " transform_prompt = await gemini(epoch_prompt)\n",
474 | "\n",
475 | " validation_prompts = []\n",
476 | " expected = []\n",
477 | " for _, row in validation_dataset.iterrows():\n",
478 | " expected.append(str(row['output']))\n",
479 | " validation_prompts.append(f\"\"\"{transform_prompt}\n",
480 | "\n",
481 | " \n",
482 | " {str(row['input'])}\n",
483 | " \n",
484 | " \"\"\")\n",
485 | "\n",
486 | " results = await asyncio.gather(*(gemini(p) for p in validation_prompts))\n",
487 | "\n",
488 | " validation_results = [\n",
489 | " {'expected': exp, 'result': res, 'match': compare_responses(exp, res)}\n",
490 | " for exp, res in zip(expected, results)\n",
491 | " ]\n",
492 | "\n",
493 | " validation_accuracy = sum([1 for r in validation_results if r['match']]) / len(validation_results)\n",
494 | " epochs.append({\n",
495 | " 'epoch_number': len(epochs),\n",
496 | " 'prompt': transform_prompt,\n",
497 | " 'validation_accuracy': validation_accuracy,\n",
498 | " 'validation_results': validation_results\n",
499 | " }) \n",
500 | "\n",
501 | " print(f'New prompt:\\n___\\n{transform_prompt}\\n___\\n')\n",
502 | " print(f\"Validation accuracy: {validation_accuracy:.2%}\\n___\\n\\n\")\n",
503 | "\n",
504 | " run_again = len(epochs) <= 23 and epochs[-1]['validation_accuracy'] <= 0.9\n",
505 | " return epochs[-1]['prompt'], epochs[-1]['validation_accuracy']\n"
506 | ]
507 | },
508 | {
509 | "cell_type": "code",
510 | "execution_count": null,
511 | "metadata": {},
512 | "outputs": [
513 | {
514 | "name": "stdout",
515 | "output_type": "stream",
516 | "text": [
517 | "Epoch 1\n",
518 | "\n",
519 | "\n",
520 | "New prompt:\n",
521 | "___\n",
522 | "You are an expert information extraction bot. Your task is to analyze the provided text and extract specific details about the scene described.\n",
523 | "\n",
524 | "Extract the following information:\n",
525 | "1. `location`: Identify the primary setting (e.g., nature, office, street, home, pub).\n",
526 | "2. `mood`: Determine the prevailing atmosphere or emotional tone. Choose from 'calm', 'scary', 'sad', 'happy'.\n",
527 | "3. `people`: Create a list of each named individual mentioned. For each person, extract or infer their `age` (use a reasonable number if an approximate range is given), `gender` (choose from 'male', 'female', or 'other' if specified), and `name`. List the people in alphabetical order by name.\n",
528 | "4. `time_of_day`: Determine the time of day based on descriptions of light, activities, or explicit mentions. Choose from 'morning', 'afternoon', 'night'.\n",
529 | "\n",
530 | "Format your output strictly as YAML, following this exact structure:\n",
531 | "\n",
532 | "```text\n",
533 | "location: \n",
534 | "mood: \n",
535 | "people:\n",
536 | "- age: \n",
537 | " gender: \n",
538 | " name: \n",
539 | "- age: \n",
540 | " gender: \n",
541 | " name: \n",
542 | "... # continue for all identified people, sorted alphabetically by name\n",
543 | "time_of_day: \n",
544 | "```\n",
545 | "\n",
546 | "Ensure the list of people is correctly formatted with `-` for each item and indented sub-fields.\n",
547 | "Provide *only* the YAML output. Do not include any introductory text, explanations, or surrounding characters like markdown fences (```).\n",
548 | "\n",
549 | "Here is the text to process:\n",
550 | "___\n",
551 | "\n",
552 | "Validation accuracy: 4.00%\n",
553 | "___\n",
554 | "\n",
555 | "\n",
556 | "Epoch 2\n",
557 | "\n",
558 | "\n",
559 | "New prompt:\n",
560 | "___\n",
561 | "Analyze the provided text to extract specific details and structure the output as YAML.\n",
562 | "\n",
563 | "Extract the following information:\n",
564 | "1. `location`: Identify the primary setting. Choose from 'nature', 'office', 'street', 'home', 'pub'.\n",
565 | "2. `mood`: Determine the prevailing atmosphere or emotional tone. Choose from 'calm', 'scary', 'sad', 'happy'.\n",
566 | "3. `people`: Create a list of each named individual mentioned. For each person, extract their `name`, `age` (use a single, reasonable number if an approximate range is given), and `gender` (choose from 'male', 'female', or 'other' if specified). List the people in alphabetical order by `name`.\n",
567 | "4. `time_of_day`: Determine the time of day based on descriptions of light, activities, or explicit mentions. Choose from 'morning', 'afternoon', 'night'.\n",
568 | "\n",
569 | "Format your output strictly as YAML, following this exact structure:\n",
570 | "\n",
571 | "```text\n",
572 | "location: \n",
573 | "mood: \n",
574 | "people:\n",
575 | "- age: \n",
576 | " gender: \n",
577 | " name: \n",
578 | "- age: \n",
579 | " gender: \n",
580 | " name: \n",
581 | "... # continue for all identified people, sorted alphabetically by name\n",
582 | "time_of_day: \n",
583 | "```\n",
584 | "\n",
585 | "Ensure the list of people is correctly formatted with `-` for each item and indented sub-fields (`age`, `gender`, `name`). Maintain the exact indentation and spacing shown in the example.\n",
586 | "\n",
587 | "Output *only* the YAML. Do not include any introductory text, explanations, or surrounding characters like markdown fences (```).\n",
588 | "___\n",
589 | "\n",
590 | "Validation accuracy: 40.00%\n",
591 | "___\n",
592 | "\n",
593 | "\n",
594 | "Epoch 3\n",
595 | "\n",
596 | "\n",
597 | "New prompt:\n",
598 | "___\n",
599 | "You are an expert AI assistant specializing in structured data extraction from text. Your task is to analyze the provided scene description and extract specific details, presenting them in a precise YAML format.\n",
600 | "\n",
601 | "Extract the following information:\n",
602 | "1. `location`: Identify the primary setting. Choose one of: 'nature', 'office', 'street', 'home', 'pub'.\n",
603 | "2. `mood`: Determine the dominant atmosphere or emotional tone. Choose one of: 'calm', 'scary', 'sad', 'happy'.\n",
604 | "3. `people`: Identify every named individual. For each person, extract or infer their `name`, `age`, and `gender`.\n",
605 | " * `name`: The full name as it appears, including titles like 'Mr.', 'Mrs.', etc., if used.\n",
606 | " * `age`: A single integer number. Extract the exact age if explicitly stated. If a range (e.g., 'late fifties', 'around sixty') or approximation is given, determine the most reasonable single integer based on context and the provided examples (e.g., 'late fifties' -> 58, 'early sixties' -> 62, 'around sixty' -> 60, 'perhaps fifty' -> 50, 'mid-thirties' -> 35).\n",
607 | " * `gender`: Determine their gender. Choose one of: 'male', 'female', or 'other'. Infer if necessary based on pronouns, names, or titles (e.g., 'Mr.' implies male, 'Mrs.' implies female). Use 'other' only if explicitly stated or strongly implied as non-binary.\n",
608 | " List these individuals alphabetically by their `name`.\n",
609 | "4. `time_of_day`: Determine the time period based on context clues (light, activities, explicit mentions). Choose one of: 'morning', 'afternoon', 'night'.\n",
610 | "\n",
611 | "Format your output strictly as YAML. The top-level keys (`location`, `mood`, `people`, `time_of_day`) should be at the root. `people` should be a YAML list where each item is an object (`-` followed by indented keys) with keys `age`, `gender`, and `name`. Maintain the *exact* structure and indentation shown in the training samples.\n",
612 | "\n",
613 | "**CRITICAL:** Your output must be *only* the YAML content. Do not include any introductory text, explanations, conversation, or surrounding characters like markdown fences (```text) or similar wrappers.\n",
614 | "\n",
615 | "Here is the text to process:\n",
616 | "___\n",
617 | "\n",
618 | "Validation accuracy: 68.00%\n",
619 | "___\n",
620 | "\n",
621 | "\n",
622 | "Epoch 4\n",
623 | "\n",
624 | "\n",
625 | "New prompt:\n",
626 | "___\n",
627 | "Extract specific information from the provided text about a scene and format it strictly as YAML.\n",
628 | "\n",
629 | "Fields to extract:\n",
630 | "1. `location`: The primary setting. Must be one of: nature, office, street, home, pub.\n",
631 | "2. `mood`: The dominant atmosphere or emotional tone. Must be one of: calm, scary, sad, happy.\n",
632 | "3. `people`: A list of each named individual. For each person:\n",
633 | " * `name`: The full name, including titles (e.g., Mr., Mrs.) if present.\n",
634 | " * `age`: A single integer. Use the exact age if given. If a range or approximation is given, estimate a reasonable single integer (e.g., 'late fifties' -> 58, 'early sixties' -> 62, 'around sixty' -> 60, 'perhaps fifty' -> 50, 'mid-thirties' -> 35, 'early twenties' -> 22, 'late twenties' -> 28).\n",
635 | " * `gender`: The gender. Must be one of: male, female, other. Infer if necessary using pronouns, names, or titles. Use 'other' only if explicitly stated or strongly implied as non-binary.\n",
636 | " The list of people must be sorted alphabetically by `name`.\n",
637 | "4. `time_of_day`: The time period. Must be one of: morning, afternoon, night.\n",
638 | "\n",
639 | "Output Format:\n",
640 | "Produce the extracted information in the following YAML structure. Maintain the *exact* indentation and spacing as shown below.\n",
641 | "\n",
642 | "location: \n",
643 | "mood: \n",
644 | "people:\n",
645 | " - age: \n",
646 | " gender: \n",
647 | " name: \n",
648 | " - age: \n",
649 | " gender: \n",
650 | " name: \n",
651 | "... # continue for all identified people, sorted alphabetically by name\n",
652 | "time_of_day: \n",
653 | "\n",
654 | "Strict Output Requirement:\n",
655 | "Your response must contain *only* the YAML content specified above. Do not include any markdown code block fences (```text or ```), introductory sentences, conversational text, explanations, or any other characters before or after the YAML. Start your response immediately with the YAML, at the very first character.\n",
656 | "\n",
657 | "Text to process:\n",
658 | "\n",
659 | "___\n",
660 | "\n",
661 | "Validation accuracy: 96.00%\n",
662 | "___\n",
663 | "\n",
664 | "\n",
665 | "Transform prompt:\n",
666 | "___\n",
667 | "Extract specific information from the provided text about a scene and format it strictly as YAML.\n",
668 | "\n",
669 | "Fields to extract:\n",
670 | "1. `location`: The primary setting. Must be one of: nature, office, street, home, pub.\n",
671 | "2. `mood`: The dominant atmosphere or emotional tone. Must be one of: calm, scary, sad, happy.\n",
672 | "3. `people`: A list of each named individual. For each person:\n",
673 | " * `name`: The full name, including titles (e.g., Mr., Mrs.) if present.\n",
674 | " * `age`: A single integer. Use the exact age if given. If a range or approximation is given, estimate a reasonable single integer (e.g., 'late fifties' -> 58, 'early sixties' -> 62, 'around sixty' -> 60, 'perhaps fifty' -> 50, 'mid-thirties' -> 35, 'early twenties' -> 22, 'late twenties' -> 28).\n",
675 | " * `gender`: The gender. Must be one of: male, female, other. Infer if necessary using pronouns, names, or titles. Use 'other' only if explicitly stated or strongly implied as non-binary.\n",
676 | " The list of people must be sorted alphabetically by `name`.\n",
677 | "4. `time_of_day`: The time period. Must be one of: morning, afternoon, night.\n",
678 | "\n",
679 | "Output Format:\n",
680 | "Produce the extracted information in the following YAML structure. Maintain the *exact* indentation and spacing as shown below.\n",
681 | "\n",
682 | "location: \n",
683 | "mood: \n",
684 | "people:\n",
685 | " - age: \n",
686 | " gender: \n",
687 | " name: \n",
688 | " - age: \n",
689 | " gender: \n",
690 | " name: \n",
691 | "... # continue for all identified people, sorted alphabetically by name\n",
692 | "time_of_day: \n",
693 | "\n",
694 | "Strict Output Requirement:\n",
695 | "Your response must contain *only* the YAML content specified above. Do not include any markdown code block fences (```text or ```), introductory sentences, conversational text, explanations, or any other characters before or after the YAML. Start your response immediately with the YAML, at the very first character.\n",
696 | "\n",
697 | "Text to process:\n",
698 | "\n",
699 | "___\n",
700 | "\n",
701 | "Validation accuracy: 96.00%\n",
702 | "___\n",
703 | "\n"
704 | ]
705 | }
706 | ],
707 | "source": [
708 | "\n",
709 | "transform_prompt, transform_validation_accuracy = await discover_prompt(training_dataset, validation_dataset)\n",
710 | "\n",
711 | "print(f\"Transform prompt:\\n___\\n{transform_prompt}\\n___\\n\")\n",
712 | "print(f\"Validation accuracy: {transform_validation_accuracy:.2%}\\n___\\n\")"
713 | ]
714 | },
715 | {
716 | "cell_type": "markdown",
717 | "metadata": {},
718 | "source": [
719 | "Pretty cool! In only a few steps, we managed to refine the prompt and increase the accuracy.\n",
720 | "\n",
721 | "Let's try the resulting prompt on our testing set. Can it perform as well on examples it hasn't encountered yet?"
722 | ]
723 | },
724 | {
725 | "cell_type": "code",
726 | "execution_count": 9,
727 | "metadata": {},
728 | "outputs": [
729 | {
730 | "name": "stdout",
731 | "output_type": "stream",
732 | "text": [
733 | "Running test on 50 samples...\n",
734 | "Testing complete.\n",
735 | "\n",
736 | "Found 2 mismatches:\n"
737 | ]
738 | },
739 | {
740 | "data": {
741 | "text/markdown": [
742 | "**Mismatch 1:**\n",
743 | "Input:\n",
744 | "```\n",
745 | "Anya, a small female of ten years, kept close to her older brother, Ben. Ben, a boy of twelve, tried to walk with confidence, but his twelve year old male legs hurried slightly on the slick, wet cobblestones of Elm Street. It was a narrow street where tall, dark buildings seemed to lean in over them, almost touching the grey sky above. The early morning mist hung thick, clinging to the damp stone walls and obscuring details further down the road. It was morning, but the light was weak and sickly, barely pushing back the deep shadows. The street was deserted, utterly silent save for their quickening footsteps. No cars, no other people hurrying to work, just an unnerving quiet that pressed in on them.\n",
746 | "\n",
747 | "Ahead, standing perfectly still near a shadowed doorway, was a person. It was Mr. Silas, a male figure in his fifties. He wore a dark coat that seemed to absorb the little light available. He didn't move a muscle, just watched them with eyes that seemed too wide and unnaturally bright in the dim light. His face was pale, unsmiling, a fixed, unsettling expression. Anya whimpered softly, her ten year old female hand tightening its death grip on Ben's sleeve. Ben swallowed hard, his twelve year old male bravado melting away like the mist. The air felt colder now, heavy with unspoken dread. They quickened their pace, their footsteps echoing unnervingly on the wet stone, acutely aware of the fifty year old male's unblinking stare following their progress down the deserted morning street. The oppressive silence felt like a physical weight, and the only thing they could think of was getting away from the still figure watching them.\n",
748 | "```\n",
749 | "Expected:\n",
750 | "```\n",
751 | "location: street\n",
752 | "mood: scary\n",
753 | "people:\n",
754 | "- age: 10\n",
755 | " gender: female\n",
756 | " name: Anya\n",
757 | "- age: 12\n",
758 | " gender: male\n",
759 | " name: Ben\n",
760 | "- age: 50\n",
761 | " gender: male\n",
762 | " name: Mr. Silas\n",
763 | "time_of_day: morning\n",
764 | "\n",
765 | "```\n",
766 | "Result:\n",
767 | "```\n",
768 | "location: street\n",
769 | "mood: scary\n",
770 | "people:\n",
771 | " - age: 10\n",
772 | " gender: female\n",
773 | " name: Anya\n",
774 | " - age: 12\n",
775 | " gender: male\n",
776 | " name: Ben\n",
777 | " - age: 55\n",
778 | " gender: male\n",
779 | " name: Mr. Silas\n",
780 | "time_of_day: morning\n",
781 | "```\n",
782 | "___"
783 | ],
784 | "text/plain": [
785 | ""
786 | ]
787 | },
788 | "metadata": {},
789 | "output_type": "display_data"
790 | },
791 | {
792 | "data": {
793 | "text/markdown": [
794 | "**Mismatch 2:**\n",
795 | "Input:\n",
796 | "```\n",
797 | "Anya, a female aged 32, leaned back in her ergonomic chair, a wide, triumphant smile illuminating her face. Across the large, dark-wood desk from her sat Ben, a male aged 28, shaking his head slightly in disbelief, a soft chuckle escaping his lips. The only light in the vast space came from the small, warm lamp on Anya's desk, casting long, distorted shadows across the silent rows of gray cubicles and towering filing cabinets stretching into the deep darkness of the deserted office. Outside the tall, uncurtained windows, the city below sparkled with a million tiny lights against the deep black canvas of the night sky; it was clearly well past the time most people were home and asleep. A forgotten cleaning cart stood parked near the elevator bank down the silent hall, a clear sign of the late hour. The air felt still and quiet, the usual daytime energy of ringing phones and clicking keyboards having long since dissipated, leaving a peaceful calm. Ben pushed a final stack of printed papers to the side, a triumphant grin spreading across his face. \"We actually did it, Anya,\" he said, his voice resonating with a mix of exhaustion, relief, and genuine pleasure. \"Finished! Hours logged, report submitted, everything done. The big project is officially complete!\" Anya laughed, a clear, light, joyful sound that echoed slightly in the quiet, empty space, but it wasn't lonely. They exchanged a look of shared endurance and pure, unadulterated happiness, the late hour and the deserted office forgotten in the warm glow of their success and the bright feeling of elation.\n",
798 | "```\n",
799 | "Expected:\n",
800 | "```\n",
801 | "location: office\n",
802 | "mood: happy\n",
803 | "people:\n",
804 | "- age: 32\n",
805 | " gender: female\n",
806 | " name: Anya\n",
807 | "- age: 28\n",
808 | " gender: male\n",
809 | " name: Ben\n",
810 | "time_of_day: night\n",
811 | "\n",
812 | "```\n",
813 | "Result:\n",
814 | "```\n",
815 | "location: office\n",
816 | "mood: happy\n",
817 | "people:\n",
818 | " - age: 28\n",
819 | " gender: male\n",
820 | " name: Ben\n",
821 | " - age: 32\n",
822 | " gender: female\n",
823 | " name: Anya\n",
824 | "time_of_day: night\n",
825 | "```\n",
826 | "___"
827 | ],
828 | "text/plain": [
829 | ""
830 | ]
831 | },
832 | "metadata": {},
833 | "output_type": "display_data"
834 | },
835 | {
836 | "name": "stdout",
837 | "output_type": "stream",
838 | "text": [
839 | "\n",
840 | "Testing Accuracy: 96.00%\n"
841 | ]
842 | }
843 | ],
844 | "source": [
845 | "async def test_prompt(prompt_to_test, test_data):\n",
846 | " \"\"\"Tests the given prompt against the test dataset and reports accuracy.\"\"\"\n",
847 | " test_prompts = []\n",
848 | " expected_outputs = []\n",
849 | " for _, row in test_data.iterrows():\n",
850 | " expected_outputs.append(str(row['output']))\n",
851 | " test_prompts.append(f\"\"\"{prompt_to_test}\n",
852 | "\n",
853 | "\n",
854 | "{str(row['input'])}\n",
855 | "\n",
856 | "\"\"\")\n",
857 | "\n",
858 | " print(f\"Running test on {len(test_prompts)} samples...\")\n",
859 | " results = await asyncio.gather(*(gemini(p) for p in test_prompts))\n",
860 | " print(\"Testing complete.\")\n",
861 | "\n",
862 | " test_results = [\n",
863 | " {'input': test_data.iloc[i]['input'], 'expected': exp, 'result': res, 'match': compare_responses(exp, res)}\n",
864 | " for i, (exp, res) in enumerate(zip(expected_outputs, results))\n",
865 | " ]\n",
866 | "\n",
867 | " test_accuracy = sum([1 for r in test_results if r['match']]) / len(test_results)\n",
868 | " \n",
869 | " # Display mismatches\n",
870 | " mismatches = [r for r in test_results if not r['match']]\n",
871 | " if mismatches:\n",
872 | " print(f\"\\nFound {len(mismatches)} mismatches:\")\n",
873 | " for i, mismatch in enumerate(mismatches[:5]): # Show first 5 mismatches\n",
874 | " md(f\"\"\"**Mismatch {i+1}:**\n",
875 | "Input:\n",
876 | "```\n",
877 | "{mismatch['input']}\n",
878 | "```\n",
879 | "Expected:\n",
880 | "```\n",
881 | "{mismatch['expected']}\n",
882 | "```\n",
883 | "Result:\n",
884 | "```\n",
885 | "{mismatch['result']}\n",
886 | "```\n",
887 | "___\"\"\")\n",
888 | " else:\n",
889 | " print(\"\\nNo mismatches found!\")\n",
890 | "\n",
891 | "\n",
892 | " return test_accuracy, test_results\n",
893 | "\n",
894 | "test_accuracy, test_results_details = await test_prompt(transform_prompt, testing_dataset)\n",
895 | "\n",
896 | "print(f\"\\nTesting Accuracy: {test_accuracy:.2%}\")"
897 | ]
898 | },
899 | {
900 | "cell_type": "markdown",
901 | "metadata": {},
902 | "source": [
903 | "Not perfect, but very high accuracy for very little effort.\n",
904 | "\n",
905 | "In this example:\n",
906 | "1. We provided a dataset, but no instructions on how to prompt to achieve the transformation from inputs to outputs.\n",
907 | "2. We iteratively fed a subset of our samples to the LLM, getting it to discover an effective prompt.\n",
908 | "3. Testing the resulting prompt, we can see that it performs well on new examples.\n",
909 | "\n",
910 | "Datasets really are all you need!\n",
911 | "\n",
912 | "___\n",
913 | "\n",
914 | "PS If you liked this demo and are looking for more, visit my [AI Expertise hub](https://ai.intellectronica.net/) and [subscribe to my newsletter](https://sub.ai.intellectronica.net/) (low volume, high value)."
915 | ]
916 | }
917 | ],
918 | "metadata": {
919 | "colab": {
920 | "authorship_tag": "ABX9TyOgU/ZZ6QdPgJgsWA2PABSv",
921 | "private_outputs": true,
922 | "provenance": []
923 | },
924 | "kernelspec": {
925 | "display_name": "Python 3",
926 | "name": "python3"
927 | },
928 | "language_info": {
929 | "codemirror_mode": {
930 | "name": "ipython",
931 | "version": 3
932 | },
933 | "file_extension": ".py",
934 | "mimetype": "text/x-python",
935 | "name": "python",
936 | "nbconvert_exporter": "python",
937 | "pygments_lexer": "ipython3",
938 | "version": "3.12.1"
939 | }
940 | },
941 | "nbformat": 4,
942 | "nbformat_minor": 0
943 | }
944 |
--------------------------------------------------------------------------------
/make-dataset.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "cell_type": "code",
5 | "execution_count": 1,
6 | "metadata": {
7 | "id": "RgODZfKiBJdM"
8 | },
9 | "outputs": [],
10 | "source": [
11 | "%pip install --upgrade python-dotenv nest_asyncio pydantic google-genai requests pandas pyyaml\n",
12 | "\n",
13 | "from IPython.display import clear_output ; clear_output()"
14 | ]
15 | },
16 | {
17 | "cell_type": "code",
18 | "execution_count": 2,
19 | "metadata": {},
20 | "outputs": [],
21 | "source": [
22 | "import os\n",
23 | "import random\n",
24 | "import asyncio\n",
25 | "\n",
26 | "from dotenv import load_dotenv\n",
27 | "import nest_asyncio\n",
28 | "\n",
29 | "from textwrap import dedent\n",
30 | "from IPython.display import display, Markdown\n",
31 | "def md(str): display(Markdown(str))\n",
32 | "\n",
33 | "from pydantic import BaseModel, Field\n",
34 | "from enum import Enum\n",
35 | "\n",
36 | "import pandas as pd\n",
37 | "\n",
38 | "import yaml\n",
39 | "\n",
40 | "from google import genai\n",
41 | "from google.genai import types\n",
42 | "\n",
43 | "load_dotenv()\n",
44 | "\n",
45 | "nest_asyncio.apply()\n",
46 | "\n",
47 | "_gemini_client_aio = genai.Client(api_key=os.getenv('GEMINI_API_KEY')).aio\n",
48 | "\n",
49 | "G25PRO = 'gemini-2.5-pro-preview-03-25'\n",
50 | "G25FLASH = 'gemini-2.5-flash-preview-04-17'\n",
51 | "\n",
52 | "async def gemini(\n",
53 | " prompt,\n",
54 | " pro = False, max_tokens = None, temperature = None,\n",
55 | " budget = None, schema = None):\n",
56 | " config = {}\n",
57 | " if max_tokens is not None:\n",
58 | " config['max_output_tokens'] = max_tokens\n",
59 | " if temperature is not None:\n",
60 | " config['temperature'] = temperature\n",
61 | " if budget is not None:\n",
62 | " config['thinking_config'] = {'thinking_budget': budget}\n",
63 | " if schema is not None:\n",
64 | " config['response_mime_type'] = 'application/json'\n",
65 | " config['response_schema'] = schema\n",
66 | " \n",
67 | " response = await _gemini_client_aio.models.generate_content(\n",
68 | " model=(G25PRO if pro else G25FLASH),\n",
69 | " contents=prompt,\n",
70 | " config=config,\n",
71 | " )\n",
72 | " \n",
73 | " if schema is not None:\n",
74 | " return response.parsed\n",
75 | " else:\n",
76 | " return response.text"
77 | ]
78 | },
79 | {
80 | "cell_type": "code",
81 | "execution_count": null,
82 | "metadata": {},
83 | "outputs": [],
84 | "source": [
85 | "class Location(str, Enum):\n",
86 | " NATURE = 'nature'\n",
87 | " OFFICE = 'office'\n",
88 | " PUB = 'pub'\n",
89 | " STREET = 'street'\n",
90 | " HOME = 'home'\n",
91 | "\n",
92 | "class Mood(str, Enum):\n",
93 | " HAPPY = 'happy'\n",
94 | " SAD = 'sad'\n",
95 | " CALM = 'calm'\n",
96 | " SCARY = 'scary'\n",
97 | "\n",
98 | "class TimeOfDay(str, Enum):\n",
99 | " MORNING = 'morning'\n",
100 | " AFTERNOON = 'afternoon'\n",
101 | " EVENING = 'night'\n",
102 | "\n",
103 | "class Gender(str, Enum):\n",
104 | " MALE = 'male'\n",
105 | " FEMALE = 'female'\n",
106 | " OTHER = 'other'\n",
107 | "\n",
108 | "class Person(BaseModel):\n",
109 | " name: str = Field(description=\"Name of the person\")\n",
110 | " age: int = Field(description=\"Age of the person\")\n",
111 | " gender: Gender = Field(description=\"Gender of the person\")\n",
112 | "\n",
113 | "class Story(BaseModel):\n",
114 | " people: list[Person] = Field(description=\"List of people in the story\")\n",
115 | " location: Location = Field(description=\"Location of the story\")\n",
116 | " time_of_day: TimeOfDay = Field(description=\"Time of day in the story\")\n",
117 | " mood: Mood = Field(description=\"Mood of the story\")\n",
118 | "\n",
119 | "async def create_story():\n",
120 | " num_people = random.randint(2, 4)\n",
121 | " location = random.choice([loc.value for loc in Location])\n",
122 | " mood = random.choice([mood.value for mood in Mood])\n",
123 | " time_of_day = random.choice([time.value for time in TimeOfDay])\n",
124 | "\n",
125 | " prompt = dedent(f\"\"\"\n",
126 | " - Write a very short story depicting a situation.\n",
127 | " - Describe, the people (with their name, age, gender ({', '.join([gender.value for gender in Gender])}).\n",
128 | " - Describe the location, the time of day, and the mood with sufficient detail,\n",
129 | " to allow the reader to discern them clearly and unambiguously. The reader will be tested\n",
130 | " on their ability to identify the people, location, time of day, and mood from the story,\n",
131 | " so be sure to include enough detail for them to do so, and help them out by ensuring that\n",
132 | " the story describes them clearly enough to make them easy to identify.\n",
133 | " - Don't use any special characters or markdown formatting.\n",
134 | " - The story should be roughly 350 tokens long.\n",
135 | "\n",
136 | " \n",
137 | " - Number of people: {num_people}\n",
138 | " - Location: {location}\n",
139 | " - Time of day: {time_of_day}\n",
140 | " - Mood: {mood}\n",
141 | " \n",
142 | " \"\"\")\n",
143 | "\n",
144 | " response = await gemini(prompt, max_tokens=2500, temperature=0.8, budget=2000)\n",
145 | "\n",
146 | " return prompt, response\n",
147 | "\n",
148 | "async def parse_story(story):\n",
149 | " prompt = dedent(f\"\"\"\n",
150 | " Parse the story and extract the following information:\n",
151 | " - People: name, age, gender ({', '.join([gender.value for gender in Gender])})\n",
152 | " - Location: {', '.join([loc.value for loc in Location])}\n",
153 | " - Time of day: {', '.join([time.value for time in TimeOfDay])}\n",
154 | " - Mood: {', '.join([mood.value for mood in Mood])}\n",
155 | "\n",
156 | " \n",
157 | " {story}\n",
158 | " \n",
159 | " \"\"\")\n",
160 | " response = await gemini(prompt, schema=Story, budget=3000, temperature=0.3)\n",
161 | " response.people = sorted(response.people, key=lambda x: x.name)\n",
162 | " return yaml.dump(\n",
163 | " response.model_dump(mode='json', by_alias=True),\n",
164 | " sort_keys=True, indent=2\n",
165 | " )"
166 | ]
167 | },
168 | {
169 | "cell_type": "code",
170 | "execution_count": 11,
171 | "metadata": {},
172 | "outputs": [
173 | {
174 | "data": {
175 | "text/markdown": [
176 | "### Prompt\n",
177 | "\n",
178 | "```\n",
179 | "- Write a very short story depicting a situation.\n",
180 | "- Describe, the people (with their name, age, gender (male, female, other).\n",
181 | "- Describe the location, the time of day, and the mood with sufficient detail,\n",
182 | " to allow the reader to discern them clearly and unambiguously. The reader will be tested\n",
183 | " on their ability to identify the people, location, time of day, and mood from the story,\n",
184 | " so be sure to include enough detail for them to do so, and help them out by ensuring that\n",
185 | " the story describes them clearly enough to make them easy to identify.\n",
186 | "- Don't use any special characters or markdown formatting.\n",
187 | "- The story should be roughly 350 tokens long.\n",
188 | "\n",
189 | "\n",
190 | " - Number of people: 2\n",
191 | " - Location: office\n",
192 | " - Time of day: afternoon\n",
193 | " - Mood: sad\n",
194 | "\n",
195 | "```\n",
196 | "\n",
197 | "### Response\n",
198 | "\n",
199 | "Sarah, a woman in her late 30s, sat quietly at her desk. Across the small cubicle partition, Mark, a man in his early 40s, looked down at his hands resting on his keyboard. They were in their office, surrounded by other empty desks, humming computers, and stacks of files. The fluorescent lights overhead cast a sterile glow. It was late afternoon; weak sunlight slanted through the blinds on the far window, painting long, pale stripes across the carpeted floor. The usual office bustle had faded, replaced by a heavy silence. Sarah dabbed at her eyes with a tissue, her shoulders slumping slightly. Mark let out a slow, shaky breath, the sound barely audible in the quiet room. The air between them felt thick with shared sadness, a quiet grief hanging heavy in the late day air.\n",
200 | "\n",
201 | "### Parsed\n",
202 | "\n",
203 | "```\n",
204 | "location: office\n",
205 | "mood: sad\n",
206 | "people:\n",
207 | "- age: 42\n",
208 | " gender: male\n",
209 | " name: Mark\n",
210 | "- age: 38\n",
211 | " gender: female\n",
212 | " name: Sarah\n",
213 | "time_of_day: afternoon\n",
214 | "\n",
215 | "```"
216 | ],
217 | "text/plain": [
218 | ""
219 | ]
220 | },
221 | "metadata": {},
222 | "output_type": "display_data"
223 | }
224 | ],
225 | "source": [
226 | "\n",
227 | "prompt, response = await create_story()\n",
228 | "parsed = await parse_story(response)\n",
229 | "\n",
230 | "md(f\"### Prompt\\n\\n```{prompt}```\\n\\n### Response\\n\\n{response}\\n\\n### Parsed\\n\\n```\\n{parsed}\\n```\")"
231 | ]
232 | },
233 | {
234 | "cell_type": "code",
235 | "execution_count": 12,
236 | "metadata": {},
237 | "outputs": [
238 | {
239 | "data": {
240 | "text/html": [
241 | "\n",
249 | "
\n",
250 | " \n",
251 | "
\n",
252 | "
\n",
253 | "
input
\n",
254 | "
output
\n",
255 | "
\n",
256 | " \n",
257 | " \n",
258 | "
\n",
259 | "
0
\n",
260 | "
The campfire crackled softly, a gentle murmur in the profound quiet of the night. Sarah, a woman of 35, sat cross-legged, her eyes reflecting the low flames, a look of peaceful contemplation on her face. Beside her, Mark, a man aged 38, reclined against a fallen log, hands clasped behind his head, utterly absorbed in the vast, star-dusted canvas above. His breathing was deep and relaxed. A few feet away, Lily, an 8-year-old girl, hummed a soft, tuneless song while gently sifting cool earth through her fingers. Her older brother, Tom, a 10-year-old boy, lay flat on his back on a thick blanket, his gaze fixed on the silvery path the moon cast across the smooth, dark surface of the lake just beyond the trees. The air was cool and still, carrying only the clean scents of pine needles, damp soil, and woodsmoke. Aside from the occasional distant hoot of an owl or the almost inaudible lapping of water, the stillness was complete. They were deep in a secluded clearing, surrounded by ancient trees and the quiet presence of the water. A palpable sense of peace and tranquility settled over the small group, each person finding their own quiet space in the communal calm under the expansive night sky.
The late afternoon sun cast long, gentle shadows across the quiet workspace. Sarah, a female aged 32, sat at her desk, her gaze fixed on the monitor in front of her. The only sounds were the low hum of the computer equipment and the occasional soft click of a mouse. It was clearly an office environment, with rows of tidy desks, filing cabinets lining one wall, and a whiteboard covered in faded markers. Across the aisle, Mark, a male aged 45, was leaning back in his chair, a half-empty mug of lukewarm coffee beside his keyboard. He was looking out the large window, his expression peaceful and relaxed. The air in the room felt still and calm, a sense of tranquil productivity pervading the space. Neither person spoke, content in the quiet routine of the workday winding down. The light filtering through the blinds indicated the sun was lower in the sky, firmly placing the time in the afternoon. Everything felt unhurried and serene.
Sarah, a 28 year old female, nervously hugged her arms, the silence of the place pressing in. Beside her, Mark, a 35 year old male, kept glancing towards the darker corners of the room. They were the only two left. The office occupied the entire fifth floor, a sprawling maze of empty cubicles and silent computers under the glow of emergency lights. Desks stretched out into the gloom, monitors reflecting only the dim light. Outside the large windows, the city was a distant sparkle against the absolute black of the night sky. It was well after midnight, the building quiet and deserted. An unsettling stillness hung in the air, broken only by the faint, inexplicable sounds the old building seemed to make in the dark. A cold draft slithered through the space, raising goosebumps on Sarah's arms. Mark shifted his weight, the sound unnaturally loud. They both felt it, the palpable sense of not being alone, of unseen eyes watching them from the shadows that clung to the edges of the empty office. It was an oppressive, chilling feeling.