Skip to content

'search_cord19.py' only outputs number of datapacks, without response to query #22

@samunaai

Description

@samunaai

Context
Hello There!👋🏿👋🏿
I am facing an issue in running the code for the QA engine in the 3-part Forte tutorial, also described in the QA.md.

Issue
When I run python examples/pipeline/inference/search_cord19.py, it appears the python file search_cord19.py is written (in the __main__ loop) to only output the number of datapacks (= 11 in the screenshot below), instead of the response to the query.

This seems different from other Forte based examples such as the Forte Chatbot [link], whereby the output datapacks obtained from query_pipeline.process_dataset(), are further processed with more lines of code, before the chatbot output is shown.

In other words, it appears that some code in the last part of QA python file may have been ommitted? This was also the case in prior version of the search_cord19.py found in the commit history, as well as the 3-part blog post. Perhaps there may be some lines of code I can add to the python file, to allow for the answer to be displayed in response to a query?

Warm regards,

Screenshots
image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions