Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Simplify Structured Output Parser wrapping and fix auto-fixing output parser #8778

Conversation

OlegIvaniv
Copy link
Contributor

@OlegIvaniv OlegIvaniv commented Feb 29, 2024

Summary

  • Use more straightforward wrapping for the 1.1 version of Structured Output Parser, universally wrapping it in output instead of letting the LM choose the wrapping approach
  • Prevent wrapping of OutputParserException when calling parsing method, since Langchain relies on it to run the retry chain for auto-fixing the output
    CleanShot 2024-02-29 at 21 31 37

Related tickets and issues

Include links to Linear ticket or Github issue or Community forum post. Important in order to close automatically and provide context to reviewers.

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

…rapping and fix auto-fixing output parser

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
@OlegIvaniv OlegIvaniv force-pushed the ai-101-auto-wrap-output-parser-json-if-not-in-correct-format branch from 7561d49 to 1b94c60 Compare February 29, 2024 20:33
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Feb 29, 2024
Copy link
Contributor

@michael-radency michael-radency left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

cypress bot commented Mar 1, 2024

2 flaky tests on run #4257 ↗︎

0 342 12 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 OlegIvaniv 🗃️ e2e/*
Project: n8n Commit: 1b94c6093a
Status: Passed Duration: 03:41 💡
Started: Mar 1, 2024 7:35 AM Ended: Mar 1, 2024 7:39 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay Screenshots Video
Flakiness  19-execution.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Execution > should test manual workflow stop Test Replay Screenshots Video

Review all test suite changes for PR #8778 ↗︎

Copy link
Contributor

github-actions bot commented Mar 1, 2024

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@OlegIvaniv OlegIvaniv changed the title fix(Structured Output Parser Node): Simplify structure ouput parser wrapping and fix auto-fixing output parser fix: Simplify Structured Output Parser wrapping and fix auto-fixing output parser Mar 1, 2024
Copy link
Contributor

github-actions bot commented Mar 1, 2024

✅ All Cypress E2E specs passed

@OlegIvaniv OlegIvaniv merged commit 7d82dc1 into master Mar 1, 2024
28 of 29 checks passed
@OlegIvaniv OlegIvaniv deleted the ai-101-auto-wrap-output-parser-json-if-not-in-correct-format branch March 1, 2024 07:41
netroy pushed a commit that referenced this pull request Mar 5, 2024
…utput parser (#8778)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
@github-actions github-actions bot mentioned this pull request Mar 5, 2024
netroy pushed a commit that referenced this pull request Mar 6, 2024
…utput parser (#8778)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
@github-actions github-actions bot mentioned this pull request Mar 6, 2024
@janober
Copy link
Member

janober commented Mar 6, 2024

Got released with n8n@1.31.1

@github-actions github-actions bot mentioned this pull request Mar 6, 2024
TaylorHo pushed a commit to TaylorHo/n8n that referenced this pull request Mar 17, 2024
…utput parser (n8n-io#8778)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants