agsamantha/node_modules/langchain/dist/chains/question_answering/refine_prompts.d.ts

18 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import { PromptTemplate, ChatPromptTemplate } from "@langchain/core/prompts";
import { ConditionalPromptSelector } from "@langchain/core/example_selectors";
export declare const DEFAULT_REFINE_PROMPT_TMPL = "The original question is as follows: {question}\nWe have provided an existing answer: {existing_answer}\nWe have the opportunity to refine the existing answer\n(only if needed) with some more context below.\n------------\n{context}\n------------\nGiven the new context, refine the original answer to better answer the question. \nIf the context isn't useful, return the original answer.";
export declare const DEFAULT_REFINE_PROMPT: PromptTemplate<{
context: any;
existing_answer: any;
question: any;
}, any>;
export declare const CHAT_REFINE_PROMPT: ChatPromptTemplate<any, any>;
export declare const REFINE_PROMPT_SELECTOR: ConditionalPromptSelector;
export declare const DEFAULT_TEXT_QA_PROMPT_TMPL = "Context information is below. \n---------------------\n{context}\n---------------------\nGiven the context information and no prior knowledge, answer the question: {question}";
export declare const DEFAULT_TEXT_QA_PROMPT: PromptTemplate<{
context: any;
question: any;
}, any>;
export declare const CHAT_QUESTION_PROMPT: ChatPromptTemplate<any, any>;
export declare const QUESTION_PROMPT_SELECTOR: ConditionalPromptSelector;