Skip to content
Merged
Changes from all 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
21 changes: 21 additions & 0 deletions cocode/pipelex_libraries/pipelines/swe_diff/swe_diff.plx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ steps = [
{ pipe = "draft_changelog_from_git_diff", result = "draft_changelog" },
{ pipe = "polish_changelog", result = "structured_changelog" },
{ pipe = "format_changelog_as_markdown", result = "markdown_changelog" },
{ pipe = "finalize_changelog" },
]

[pipe.draft_changelog_from_git_diff]
Expand Down Expand Up @@ -138,3 +139,23 @@ jinja2 = """
{% endif %}
"""

[pipe.finalize_changelog]
type = "PipeLLM"
definition = "Polish and improve the changelog"
inputs = { structured_changelog = "StructuredChangelog" }
output = "MarkdownChangelog"
llm = "llm_for_swe"
system_prompt = """
You are an expert technical writer. Your task is to polish and improve a changelog to make it more clear, concise, and well-structured.
"""
prompt_template = """
Review and polish the following changelog:

@structured_changelog

Remove redundancy: I don't want to see echos between "Changed" and "Fixed" or "Added".
Remove trivial changes.
Keep the markdown formatting and the standard structure of the changelog.
It's OK to remove some sections if they are empty after removing redundancy and trivial changes.
"""