Skip to content

Individual LLM calls for all sections - #2864

Draft
sandeshit wants to merge 2 commits into
developfrom
feature/dref-summary-per-section
Draft

sandeshit wants to merge 2 commits into
developfrom
feature/dref-summary-per-section

Conversation

@sandeshit

Copy link
Copy Markdown
Contributor

Changes

  • Individual LLM calls for all the sections.

Checklist

  • Updated/ran unit tests
  • Updated CHANGELOG.md

@sandeshit sandeshit changed the title feat(dref): implement per-section summary Individual LLM calls for all sections Oct 12, 2026
Comment thread dref/models.py
default=SummaryStatus.PENDING,
)

section_status = models.JSONField(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

section_status is write-only so, nothing reads it, and with all or nothing it doesn't change behavior. Do we need this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is intentionally left for diagnosis and quick checks in case of failures.

Comment thread dref/summary.py
)
raise SectionGenerationError("no LLM response")

def generate_all(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When a summary is retriggered, are all sections regenerated, or only the failed ones?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All sections are regenerated.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, if one section fails, will all the other successful sections be retriggered?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes dai. All or none is done

Comment thread dref/models.py
default=SummaryStatus.PENDING,
)

section_status = models.JSONField(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't exposed in the serializer. Do we need to expose it or not? if yes then lets add on serializer.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we need to expose this in the serializer. Its strictly for quick checks in case of failure only.

@susilnem
susilnem marked this pull request as draft October 14, 2026 13:19
@sandeshit
sandeshit requested a review from susilnem October 15, 2026 05:13
@sandeshit
sandeshit force-pushed the feature/dref-summary-per-section branch from abaccec to 7af9714 Compare October 15, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants