Running a QA Pipeline
Pull answers from a passage.
What a Pipeline Gives You
A Hugging Face pipeline wraps a model and tokenizer into one easy call. You hand it a question and context, it hands back an answer. 🚀
Import the Helper
Everything starts with one import. The pipeline function from the transformers library builds the whole QA stack for you.
from transformers import pipeline