agsamantha/node_modules/langchain/dist/output_parsers/prompts.js

20 lines
549 B
JavaScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
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 =
/* #__PURE__ */ PromptTemplate.fromTemplate(NAIVE_FIX_TEMPLATE);