File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ It can be used in a RAG system to prevent the model from hallucinating or genera
3232In this example we apply the RagContextValidator to validate the relevance of the retrieved context to the user's query.
3333
3434``` python
35- from validator.prompts.prompts import RagContextRelevancePrompt
36- from validator.main import MLcubeRagContextValidator
37- from guardrails import Guard
3835
3936# Define the guard with the MLcubeRagContextValidator,
4037# specifying the relevance prompt generator to enable
@@ -88,11 +85,6 @@ In this example we evaluate the usefulness of the retrieved context to the user'
8885
8986``` python
9087
91- from validator.prompts.prompts import (
92- RagContextRelevancePrompt,
93- RagContextUsefulnessPrompt,
94- )
95-
9688guard = Guard().use(
9789 MLcubeRagContextValidator(
9890 rag_context_eval_prompt = RagContextUsefulnessPrompt(),
You can’t perform that action at this time.
0 commit comments