1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Working with Hugging Face

Connected

अभ्यास

Building a Q&A pipeline

In the previous exercise, we extracted text from a multi-page document using PyPDF and prepared it as a single string.

Now, you’ll build a question-answering pipeline using Hugging Face to retrieve specific answers from the document.

Both the pipeline module and document_text have been preloaded for you.

निर्देश

100 XP
  • Initialize a question-answering pipeline with the correct task and model.
  • Pass the question and document_text to the pipeline.
  • Print the result to view the answer.