Skip to content
Discussion options

You must be logged in to vote

To resolve the TypeError: ValidationError.__init__() missing 1 required positional argument: 'model' error and ensure that the RetryGuidelineQueryEngine works correctly with your RAGStringQueryEngine, you need to ensure that all required arguments are provided when initializing the RetryGuidelineQueryEngine.

Here is the corrected initialization of RetryGuidelineQueryEngine:

from llama_index.legacy.evaluation.guideline import GuidelineEvaluator
from llama_index.legacy.indices.query.query_transform.feedback_transform import FeedbackQueryTransformation
from llama_index.legacy.core.base_query_engine import BaseQueryEngine

# Assuming RAGStringQueryEngine is a subclass of BaseQueryEngine
class 

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
4 replies
@mraguth
Comment options

@dosubot
Comment options

@mraguth
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
5 replies
@dosubot
Comment options

@mraguth
Comment options

@dosubot
Comment options

Answer selected by mraguth
@mraguth
Comment options

@dosubot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant