Skip to content

Refactor pipeline for better generalizability & Add TransformersReader #1

Merged
tholor merged 5 commits intomasterfrom
transformers_reader
Jan 13, 2020
Merged

Refactor pipeline for better generalizability & Add TransformersReader #1
tholor merged 5 commits intomasterfrom
transformers_reader

Conversation

@tholor
Copy link
Copy Markdown
Member

@tholor tholor commented Jan 13, 2020

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

Advantages:

  • users can leverage quite easily other community models (from here: https://huggingface.co/models)
  • simpler workflow for transformer users to use their own models (no need to convert to FARM model)

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