----------------------
The error message you're seeing indicates that the
amake_predictions_with
method of the
BaseLlamaDataset
class is not expecting a keyword argument named
query_engine
.
However, in the extracts provided, there are examples of using the
amake_predictions_with
method with a
query_engine
argument. Here is an example:
prediction_dataset = await rag_dataset.amake_predictions_with(
query_engine=query_engine, show_progress=True
)
This code is from the
LlamaIndex documentation () and
GitHub repository ().
It's possible that there might be a version mismatch between your installed LlamaIndex and the version used in the documentation. I would recommend checking the version of LlamaIndex you're using and compare it with the version used in the documentation. If they're different, you might need to update your LlamaIndex version.
If the problem persists, it would be best to refer to the official LlamaIndex documentation or the source code to ensure that you're using the
amake_predictions_with
method correctly.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------