Skip to content

Conversation

@psriramsnc
Copy link
Collaborator

@psriramsnc psriramsnc commented Jan 14, 2026

πŸš€ SyGra now supports Self Refinement

Summary 🧾✨

This PR adds Self Refinement as a first-class SyGra feature πŸ”πŸ€–. This uses newly implemented sygra.recipes.self_refinement recipe as a subgraph inside a task 🧩. Generated datasets that include judge scores βœ…πŸ“Š and a reflection trajectory πŸͺžπŸ§  for each prompt.

Feature implemented: πŸš€

  • Added self_refinement under recipes.
  • Added examples.self_refinement under tasks which uses the above recipe as a sub graph
  • Added a new feature doc: docs/features/self_refinement.md describing the Self Refinement workflow πŸ”„, outputs

Performance impact (if any): ⚑

N/A

How to Test the feature πŸ§ͺ

Steps for reviewers to verify functionality:

Run the example task and observe generated artifacts ▢️:
Run: python main.py --task examples.self_refinement --num_records 2 πŸƒβ€β™‚οΈπŸ’»

Observe output JSON under tasks/examples/self_refinement/ (e.g., output_.json) πŸ“¦πŸ•’
self_refine.generate_candidate and self_refine.judge_candidate are tracked πŸ“ˆπŸ§Ύ

Screenshots (if applicable) πŸ“Έ

N/A

Checklist βœ…

  • Lint fixes and unit testing done
  • End to end task testing
  • Documentation updated

Notes πŸ—’οΈ

N/A

@psriramsnc psriramsnc self-assigned this Jan 14, 2026
@psriramsnc psriramsnc added the enhancement New feature or request label Jan 14, 2026
@psriramsnc psriramsnc marked this pull request as ready for review January 14, 2026 08:39
@psriramsnc psriramsnc requested a review from a team as a code owner January 14, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants