mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
21 lines
534 B
TypeScript
21 lines
534 B
TypeScript
import { PromptTemplate } from '@langchain/core/prompts';
|
|
|
|
export const NAIVE_FIX_TEMPLATE = `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:`;
|
|
|
|
export const NAIVE_FIX_PROMPT = PromptTemplate.fromTemplate(NAIVE_FIX_TEMPLATE);
|