Haystack rest api document response in xml instead of JSON #4541
Unanswered
sivakumarl
asked this question in
Questions
Replies: 1 comment
-
This seem related to issue #4406, can you confirm? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
I am trying to launch the haystack explore_the_world demo, able to launch the app successfully , but unfortunately the response from the haystack rest api is not able parse and display in the streamlit ui because the documents in the response are not in valid JSON format. Can you please assist if i am missing any configuration for haystack rest api side. Thanks
Response:
INFO: haystack:{"request": "query="What's the capital of France?" params={'filters': {}, 'Retriever': {'top_K': 3}, 'Reader': {'top_K': 3}, 'Query': {'debug': False}} debug=False","response": {"query": "What's the capital of France?",
"no_ans gap": 11.180335521697998,
"answers": ["<Answer: answer='Paris', score=0.985830759811401, context='everal islands in Oceania and the Indian Ocean. Du..'>",
"<Answer: answer='Paris', score=0.86905918653547 context='===Major Cities===\n\nFrance is highly urbanized c...'>",
"<Answer: answer='', score=0.59128055815517484, context=None>"],
"documents": ["**‹Document: id=658ca7dc53719244fae720632498a9e, content==='\n\n'''France'''(), officialy the '''French Republic'''(), is a transcontinental country spanning W...'>",
"<Document: id=273478d4a0093583bbda0c0d86e19151, content ='\n\n'''Paris''' () is the capital and most populous city of France, with an estimated population of 2,...'>",
"<Document: id=1a55d81dc0602aa40485c462c8aadzb, content='===Major Cities===\n\nFrance is highly urbanized country, with its largest cities(in terms of metro...'>_**")],
"root_node": "Query", "params":{"filters":{} "Retriever": {"top_K': 3} ,"Reader": {"top_K': 3}, "Query": {}}, "node_id": "Reader"}, "time": "7.63"}
Regards,
Siva Kumar.
Beta Was this translation helpful? Give feedback.
All reactions