mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-09 05:37:25 +00:00
Add metadata for FAQ style QA (#106)
This commit is contained in:
parent
42b60b5578
commit
73aed42f14
@ -86,7 +86,7 @@ class Finder:
|
||||
for doc in documents:
|
||||
#TODO proper calibratation of pseudo probabilities
|
||||
cur_answer = {"question": doc.meta["question"], "answer": doc.text, "context": doc.text,
|
||||
"score": doc.query_score, "offset_start": 0, "offset_end": len(doc.text),
|
||||
"score": doc.query_score, "offset_start": 0, "offset_end": len(doc.text), "meta": doc.meta
|
||||
}
|
||||
if self.retriever.embedding_model:
|
||||
probability = (doc.query_score + 1) / 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user