Skip to content

Refactor pipeline for better generalizability & Add TransformersReader - #1

Merged
tholor merged 5 commits into
masterfrom
transformers_reader
Jan 13, 2020
Merged

tholor merged 5 commits into
masterfrom
transformers_reader

Conversation

@tholor

@tholor tholor commented Jan 13, 2020

Copy link
Copy Markdown
Member

Add an option to use QA models from huggingface's Transformers as a Reader.

Advantages:

Hand in hand with this addition, it became clear that we want the pipeline to be more generalizable:

  • let the retriever return documents and not only indexes+scores
  • don't require the retriever to have a df in memory with the docs (needed for scaling, e.g. with elasticsearch backend)
  • make input to reader.predict more explicit
  • simplify the format of the dict returned by reader.predict

@baronsengir007

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants