Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC Three evolving stories #19

Merged
merged 16 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/issue-.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ about: Describe an issue to help us tackle them
title: ''
labels: ''
assignees: ''
project: 'friction-flow'

---

Expand Down
5 changes: 3 additions & 2 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@
"optimal_config": {
"n_gpu_layers": -1,
"n_batch": 512,
"n_ctx": 4096,
"n_ctx": 16384,
"metal_device": "mps",
"main_gpu": 0,
"use_metal": True,
"n_threads": 4,
"n_threads": 8,
},
},
}


def get_model_config(config_name: str = "balanced") -> Dict[str, Any]:
"""
Retrieve the model configuration for a given configuration name.
Expand Down
69 changes: 69 additions & 0 deletions src/nfd_three_story_evolve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Three Stories in the Field**

In the quiet hum of the narrative field, three stories drift, each with its own essence, its own silent history. They move, not in straight lines but in subtle, winding trajectories, always pulled by something unseen. This is their story.

**The First Story: “The Waiting Lighthouse”**

The first story has a lighthouse as its core. Its themes are **loneliness** and **enduring duty**. It waits, steady and vigilant, with a soft glow in the field—its core narrative like a beam of light, reaching out. This light, encoded in its **core embedding**, represents its themes of solitude and patience. A quiet sense of **hope** lingers in its memory layer, an echo of past encounters, though that hope has started to fade, losing brightness with time.

The lighthouse moves slowly, unhurried. Its **perspective filter** tunes it to notice other stories that carry tones of seeking or loss—stories that might, even if briefly, cross its light. It moves like the light it casts: careful, steady, not actively seeking but ever open to something beyond itself.

**The Second Story: “The Wandering Forest Path”**

The second story is the tale of a traveler lost in a forest, its core theme an **exploration tinged with fear and curiosity**. Its embedding is close to the lighthouse, drawn by a kind of gravitational pull, for the themes of seeking and being found resonate between them. This path has traces of memories from past interactions in the forest—glimpses of fleeting encounters, echoes of other travelers. Its perspective filter is tuned to notice stability and guidance, a longing for direction in its wandering path.

The path moves more restlessly, pulled by hints of guidance in the field. It propels itself through the field as if following shadows, creating ripples in the nearby stories. Each ripple shifts its own embedding slightly, pushing it forward with every new encounter.

**The Third Story: “The Dream of Flight”**

The third story is light and free—a child’s dream of flying, untethered by gravity. Its embedding holds themes of **freedom, innocence, and boundless wonder**. It hovers nearby, drifting like a leaf on the wind, pulled by currents of curiosity. But in its memories are faint imprints of past encounters with stories grounded and heavy; a slight trace of yearning tints its core.

Its movement is sporadic, darting and circling, unconcerned with direction but deeply responsive to hints of change and connection. Its perspective filter is wide, noticing joy, possibility, and discovery in other stories, even if faint.

---

## First Encounter: The Lighthouse and the Path**

The field, attuned to the proximity of these stories, senses a resonance between the lighthouse and the path, softly adjusting their trajectories. Slowly, they drift closer. The lighthouse, aware of a nearby story with themes of seeking, extends its light, casting a gentle sense of comfort toward the path. The path feels this and pauses, sensing direction in the lighthouse’s presence.

In the technical model, this interaction prompts the **Memory and Resonance Update**:

- The path receives a new **imprint**—a memory of the lighthouse’s guidance, stored in its memory layer as a faint but growing sense of comfort and clarity.
- The lighthouse, in turn, holds a subtle trace of the path’s exploration, giving its memory a gentle spark of possibility, a reminder that its light has reached someone.

The encounter shifts their **embeddings** slightly:

- The path’s position in semantic space shifts a bit closer to stability, while the lighthouse gains a touch of motion in its otherwise steadfast embedding.

## Second Encounter: The Path and the Dream**

The path, now feeling a faint pull of comfort, continues forward in the field until it senses something playful nearby: the dream of flight. The path is drawn in by the lightness of the dream, and the two stories circle each other, curious but hesitant. The dream of flight feels the path’s echo of hope and seeking, which awakens a new sensation—a hint of groundedness in its own memory layer.

The **Interaction Engine** registers a resonance, storing fragments in their memories:

- The path carries forward a memory of the dream’s freedom, imprinted as a lightness in its core—a reminder that even in seeking, there’s room for play.
- The dream of flight absorbs the path’s yearning, a subtle grounding that reminds it of all the things that exist below.

These memories subtly alter their **perspective filters**:

- The path begins to notice stories with a sense of lightness and play, softening its need for guidance.
- The dream, meanwhile, gains a slight “weight,” now attuned to stories carrying themes of longing and groundedness.

## Third Encounter: The Collective Shockwave**

Time passes, and a **pulse** moves through the field. This is a collective event generated by the **Collective Story Engine**—a moment where the narrative field takes on a dominant theme of **seeking connection**. This pulse temporarily heightens each story’s awareness, expanding their perception to even distant stories in the field.

The dream, the lighthouse, and the path feel this pulse together, drawn toward each other in a moment of unity. Their embeddings, sensing each other fully for the first time, draw closer, almost as if overlapping. The **Collective Story** emerges in this moment—a shared tale of guidance, seeking, and boundless possibility.

As the pulse fades, the collective story remains like a **memory imprint** in each story:

- The lighthouse remembers the dream of flight and the path, carrying forward the memory of their presence as a sense of connectedness.
- The path feels a renewed sense of direction, enriched by the lighthouse and the dream.
- The dream remembers the light and the path, grounding its flight with a sense of shared purpose.

Each story, now moving in its own direction, carries a **piece of the collective memory** with it—a new understanding shaped by the others, a reminder of what it means to be part of something larger than itself.

## In the Narrative Field**

- The lighthouse, the path, and the dream continue to move, influenced by new memories, pulling each in ways that subtly shift their trajectories. Their memory layers grow, resonant with each other, even as they drift apart.
- In this evolving field, the stories are no longer quite the same as they were. The field itself feels their change—a movement toward something, and yet toward nothing fixed, only the endless, shared becoming of all the stories it holds.
Loading
Loading