run-llama / llama_index

LlamaIndex is a data framework for your LLM applications
https://docs.llamaindex.ai
MIT License
36.9k stars 5.28k forks source link

[Documentation]: Unexpected keyword argument 'base_query_engine' in RetryGuidelineQueryEngine #16735

Open MatMaxMatrix opened 3 weeks ago

MatMaxMatrix commented 3 weeks ago

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/

dosubot[bot] commented 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:

Make sure to use query_engine instead of base_query_engine when initializing the RetryGuidelineQueryEngine [1].

To continue talking to Dosu, mention @dosu.

sharsha315 commented 2 weeks ago

Hi, I would like to work on this issue. Thank you.