Find answers from the community

Updated 2 months ago

Response

Sorry, I am quite new to this -> I am calling load_index_from_storage(), then on the index as_query_engine() and then I use .query() on the query engine. Is that not right?
W
r
7 comments
It is fine, if you want to return the whole object, I would suggest you extract the required content from the response object , maje a dict and return that.

Flask has this issue with json serialization of pydantic object
Its funny you are right
If I print the response string
before returning it, its clearly there
flask just does something weird when I simply return response.response (despite technically it being just a string?)
I solved it by calling str() on the query engines response πŸ™‚
Add a reply
Sign up and join the conversation on Discord