Replies: 1 comment 2 replies
-
Hi @lipsa7! It seems that your document store is empty. Can you share some more details about your setup? What document store and retriever are you using? How did you add documents to your document store? |
Beta Was this translation helpful? Give feedback.
2 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.
-
Everything runs without errors but it returns blank answers from the 2 pdfs
from haystack.nodes import FARMReader
reader = FARMReader(model_name_or_path="deepset/roberta-base-squad2", use_gpu=True)
from haystack.pipelines import ExtractiveQAPipeline
pipe = ExtractiveQAPipeline(reader, retriever)
prediction = pipe.run(
query="What are principal audit procedures?",
params={
"Retriever": {"top_k": 10},
"Reader": {"top_k": 5}
}
)
Output:
{'answers': [],
'documents': [],
'node_id': 'Reader',
'params': {'Reader': {'top_k': 5}, 'Retriever': {'top_k': 10}},
'query': 'What are principal audit procedures?',
'root_node': 'Query'}
Beta Was this translation helpful? Give feedback.
All reactions