-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Auto-fixing Output Parser Node): Only run retry chain on parsing …
…errors (#11569)
- Loading branch information
1 parent
d960777
commit 21b31e4
Showing
5 changed files
with
203 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserAutofixing/prompt.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export const NAIVE_FIX_PROMPT = `Instructions: | ||
-------------- | ||
{instructions} | ||
-------------- | ||
Completion: | ||
-------------- | ||
{completion} | ||
-------------- | ||
Above, the Completion did not satisfy the constraints given in the Instructions. | ||
Error: | ||
-------------- | ||
{error} | ||
-------------- | ||
Please try again. Please only respond with an answer that satisfies the constraints laid out in the Instructions:`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters