{"version":3,"file":"refine_prompts.cjs","names":["PromptTemplate"],"sources":["../../../src/chains/summarization/refine_prompts.ts"],"sourcesContent":["import { PromptTemplate } from \"@langchain/core/prompts\";\n\nconst refinePromptTemplate = `Your job is to produce a final summary\nWe have provided an existing summary up to a certain point: \"{existing_answer}\"\nWe have the opportunity to refine the existing summary\n(only if needed) with some more context below.\n------------\n\"{text}\"\n------------\n\nGiven the new context, refine the original summary\nIf the context isn't useful, return the original summary.\n\nREFINED SUMMARY:`;\n\nexport const REFINE_PROMPT = /* #__PURE__ */ new PromptTemplate({\n  template: refinePromptTemplate,\n  inputVariables: [\"existing_answer\", \"text\"],\n});\n"],"mappings":";AAeA,MAAa,gCAAgC,yCAAIA,eAAe;CAC9D,UAd2B;;;;;;;;;;;;CAe3B,gBAAgB,CAAC,mBAAmB,OAAO;CAC5C,CAAC"}