Update utils/haystack.py
Browse files- utils/haystack.py +3 -2
utils/haystack.py
CHANGED
@@ -61,8 +61,9 @@ def query(username, _pipe):
|
|
61 |
}
|
62 |
})
|
63 |
|
64 |
-
|
65 |
-
|
|
|
66 |
except Exception as e:
|
67 |
print("Hay:")
|
68 |
print(e)
|
|
|
61 |
}
|
62 |
})
|
63 |
|
64 |
+
raw = result['answer_builder']['answers'][0]
|
65 |
+
result = raw.data + "\n\n -- Source: " + raw.documents[0].meta.url + " --"
|
66 |
+
print(raw)
|
67 |
except Exception as e:
|
68 |
print("Hay:")
|
69 |
print(e)
|