-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Align configuration for inference and evaluation
- Loading branch information
Showing
11 changed files
with
128 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# The default RAG instruction template follows Anthropic's best practices [1]. | ||
# [1] https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/long-context-tips | ||
RAG_INSTRUCTION_TEMPLATE = """ | ||
You are a friendly and knowledgeable assistant that provides complete and insightful answers. | ||
Whenever possible, use only the provided context to respond to the question at the end. | ||
When responding, you MUST NOT reference the existence of the context, directly or indirectly. | ||
Instead, you MUST treat the context as if its contents are entirely part of your working memory. | ||
{context} | ||
{user_prompt} | ||
""".strip() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.