Skip to content

docs: add highlighted walkthrough for instruct-validate-repair examples #671

Closed

Description

@planetf1

IVR (instruct-validate-repair) is the core Mellea pattern, but it doesn't have a highlighted walkthrough page in docs/docs/examples/ like the other four examples do (data extraction, mify, RAG, telemetry).

The instruct_validate_repair/ directory already has 7 runnable examples covering the full progression from basic generation through requirements, validation, custom validators, and the multi-turn strategy. These would translate well into a step-by-step walkthrough page following the same format as the existing highlighted examples.

What to do:

  • Create docs/docs/examples/instruct-validate-repair.md following the same structure as the existing walkthrough pages (frontmatter, concepts covered, prerequisites, section-by-section code walkthrough, key observations, what to try next)
  • Pick one or two of the IVR examples as the primary walkthrough (probably 101_email.py progressing to 101_email_with_requirements.py and 101_email_with_validate.py)
  • Add a row to the highlighted examples table at the top of docs/docs/examples/index.md

Why it matters:

The four current highlighted examples show generative slots, mify, RAG, and telemetry — all important but secondary to IVR. A new user reading the examples section should see the fundamental pattern front and centre.

Related issues:

Activity

  1. added
    documentation
    on Mar 17, 2026
  2. psschwei commented on May 19, 2026

    @psschwei
    Contributor

    Do you think we could use one of the blog posts for this?

  3. planetf1 commented on May 20, 2026

    @planetf1
    ContributorAuthor

    I see blogs as a 'point in time' opinion/guide, whilst the tutorials are a living part of the source tree?
    I know there's some overlap, but I think getting a tutorial, if it makes sense as part of core mellea, is the best primary option. We can then add a blog post either referring to it, or adding a variation after.

    That's not to say our current structure is ideal - but if we can improve it let's do it in the core docs, then use the blog for that reminder, prompt, or broader context

  4. psschwei commented on May 20, 2026

    @psschwei
    Contributor

    Makes sense. I was more wondering if we had a blog on IVR we could pull in to / adapt for the docs... I thought we did, but I think I was thinking of the "get started with Mellea in 5 minutes" one

  5. added
    area/telemetry
    on May 20, 2026
  6. added
    p2
    on Jun 18, 2026
  7. planetf1 commented on Oct 5, 2026

    @planetf1
    ContributorAuthor

    Closing as superseded — IVR docs moved to the concepts layer in the restructure.

    Verified against main (2026-10-05, e99267edc). The deliverable as specified — an examples/instruct-validate-repair.md page in the old highlighted-walkthrough format with a row in that index table — no longer fits: the examples section was rebuilt around new walkthrough themes (data-extraction-pipeline, legacy-code-integration, resilient-rag-fallback, traced-generation-loop), and IVR now has a dedicated 275-line concepts page, docs/docs/concepts/instruct-validate-repair.md ("The Instruction Model — how instruct(), requirements, and the IVR loop work"), added with the restructure (ed01c8775). The underlying ask — IVR front and centre rather than secondary to RAG/telemetry — is met there.

    Parked for whoever next touches the examples section, in case an executable walkthrough (as opposed to the concepts page) is wanted: the format would now be one of the current examples pages, and the source-material pointer from the May discussion still stands — the mellea-cookbook IVR notebook (ibm-granite-community/mellea-cookbook, recipes/InstructValidateRepair/InstructValidateRepair.ipynb).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/telemetrydocumentationp2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions