Open MatMaxMatrix opened 3 weeks ago
Hey @MatMaxMatrix! 👋 I'm here to help you with any bugs, questions, or becoming a contributor. I'm Dosu, a bot that's here to assist you while waiting for a human maintainer.
I found a similar discussion regarding the initialization of RetryGuidelineQueryEngine
and the parameters it accepts. The correct parameter for the query engine is query_engine
, not base_query_engine
. The RetryGuidelineQueryEngine
should be initialized with the following parameters:
query_engine: BaseQueryEngine
guideline_evaluator: GuidelineEvaluator
resynthesize_query: bool = False
max_retries: int = 3
callback_manager: Optional[CallbackManager] = None
query_transformer: Optional[FeedbackQueryTransformation] = None
Make sure to use query_engine
instead of base_query_engine
when initializing the RetryGuidelineQueryEngine
[1].
To continue talking to Dosu, mention @dosu.
Hi, I would like to work on this issue. Thank you.
Documentation Issue Description
I encountered an error when trying to use RetryGuidelineQueryEngine in my code with the keyword argument base_query_engine. The error message is as follows: init() got an unexpected keyword argument 'base_query_engine'
Documentation Link
https://docs.llamaindex.ai/en/stable/examples/evaluation/RetryQuery/