Created
November 2, 2023 13:14
-
-
Save joshreini1/ba7fba7ebe01c02dc2b83683b0fd9ee3 to your computer and use it in GitHub Desktop.
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
claude_2 = LiteLLM(model_engine="claude-2") | |
context_relevance = ( | |
Feedback(claude_2.qs_relevance_with_cot_reasons,name = "Context Relevance") | |
.on_input() | |
.on(TruLlama.select_source_nodes().node.text) | |
.aggregate(np.mean) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment