Closed asma-10 closed 3 months ago
The error you're encountering suggests that the input to the query_engine.query()
method is not in the expected format. This method expects a string or a QueryBundle
object as its input. If you're passing something other than these types, that's likely the cause of the error.
To resolve this issue, ensure that the question
variable you're passing to query_engine.query()
is either a properly formatted string or a QueryBundle
object. If question
is already one of these types and you're still facing the issue, the problem might lie in how the query is being processed internally.
Here are a few steps you can take to debug further:
question
variable to ensure it matches what the query_engine.query()
method expects.If after these checks the issue persists, it might be helpful to look into the llamaindex library's documentation or source code for more insights on how queries should be formatted and processed.
Bug Description
Hello everyone, i am currently using llamaindex to build a RAG with hugging face and this is the code i am using :
and every time i run this code :
i get this error :
BadRequestError: (Request ID: iSyblEXWumFZFNfAZERUT) Bad request: Input should be a valid dictionary or instance of SentenceSimilarityInputsCheck: received `Context information is below.
can someone help me with this ?
Version
0.10.29
Steps to Reproduce
# the previous code
Relevant Logs/Tracbacks
No response