Find answers from the community

Updated 2 months ago

got error ```---------------------------------------------------------------------------T

got error
Plain Text
TypeError                                 Traceback (most recent call last)
Cell In[38], line 1
----> 1 prediction_dataset = await rag_dataset.amake_predictions_with(
      2     query_engine=flare_query_engine, show_progress=True
      3 )

TypeError: BaseLlamaDataset.amake_predictions_with() got an unexpected keyword argument 'query_engine'
k
L
a
5 comments
Please stand by @andysingal as I search the knowledge base. I normally take about 20 seconds or so. :wave:
----------------------
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:

Plain Text
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:
----------------------
there is no keyword argument in amake_predictions_with

Just do prediction_dataset = await rag_dataset.amake_predictions_with(flare_query_engine, show_progress=True)
is this all running on gpt-4 , i have it initially set up
Plain Text
service_context = ServiceContext.from_defaults(llm=OpenAI(model="gpt-3.5-turbo-0613", temperature=0), chunk_size=512, callback_manager=callback_manager)
@Logan M no idea , how long it runs
Attachment
Screenshot_2023-12-21_at_10.30.34_PM.png
Add a reply
Sign up and join the conversation on Discord