Skip to content

Template: example-evolver (few-shot promotion pipeline) #48

@marklubin

Description

@marklubin

Related

Part of the templates collection. Builds on #36 (Constructs Library) and #37 (Buildfile programming model).

Who Grabs This

Anyone whose few-shot examples are stale, hand-picked, or rotting. Strategically important — expands Synix from "memory" into runtime cognition artifacts.

Pipeline

successful conversations → example extraction → scoring → promotion

Layers:

Layer Transform Cardinality
conversations parse 1:1 per conversation
candidates example_extractor 1:N (pull exemplary exchanges from conversations)
scored example_scorer 1:1 (score each candidate on clarity, relevance, diversity)
promoted promoter N:1 (top-K selection → few-shot set)

Projection: flat file output — a ready-to-use few-shot prompt section.

Why This Matters

Stops prompt rot. Few-shot examples evolve with usage instead of decaying.

Also quietly expands Synix from "memory" → runtime cognition artifacts (few-shots, policies, retrieval configs). Strategically important.

Acceptance Criteria

  • synix init --template example-evolver produces a runnable project
  • Ships with example conversations of varying quality
  • Output is a usable few-shot prompt section
  • Scoring is transparent (user can see why examples were chosen)
  • Builds in < 2 minutes on Haiku
  • Improvement is obvious without explanation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttemplatesSynix pipeline templates — runnable cognition patterns

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions