Skip to content
Snippets Groups Projects
Unverified Commit 7af03d92 authored by yisding's avatar yisding Committed by GitHub
Browse files

more anthropic prompts (#504)

parent d903da62
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment