Compare commits

...

1 Commits

Author SHA1 Message Date
yisding 60ed8beee7 anthropic prompts 2024-02-01 13:45:49 -08:00
+14 -1
View File
@@ -36,7 +36,10 @@ Answer:`;
export type TextQaPrompt = typeof defaultTextQaPrompt;
export const anthropicTextQaPrompt = ({ context = "", query = "" }) => {
export const anthropicTextQaPrompt: TextQaPrompt = ({
context = "",
query = "",
}) => {
return `Context information:
<context>
${context}
@@ -72,6 +75,16 @@ SUMMARY:"""
export type SummaryPrompt = typeof defaultSummaryPrompt;
export const anthropicSummaryPrompt: SummaryPrompt = ({ context = "" }) => {
return `Summarize the following text. Try to use only the information provided. Try to include as many key details as possible.
<original-text>
${context}
</original-text>
SUMMARY:
`;
};
/*
DEFAULT_REFINE_PROMPT_TMPL = (
"The original query is as follows: {query_str}\n"