Update utils/haystack.py
Browse files- utils/haystack.py +1 -1
utils/haystack.py
CHANGED
@@ -59,7 +59,7 @@ def query(prompt, _pipe):
|
|
59 |
}
|
60 |
})
|
61 |
|
62 |
-
raw =
|
63 |
result = raw.data + "\n\n -- Source: " + raw.documents[0].content + " --"
|
64 |
print(raw)
|
65 |
except Exception as e:
|
|
|
59 |
}
|
60 |
})
|
61 |
|
62 |
+
raw = replies['answer_builder']['answers'][0]
|
63 |
result = raw.data + "\n\n -- Source: " + raw.documents[0].content + " --"
|
64 |
print(raw)
|
65 |
except Exception as e:
|