1. Learn
  2. /
  3. Courses
  4. /
  5. Natural Language Processing (NLP) in Python

Connected

Exercise

Generating natural answers with abstractive QA

Customer support chatbots aim to provide helpful, conversational answers, not just exact text snippets. To achieve this, they use abstractive question answering, which generates concise and fluent responses based on the context. Your task is to apply Hugging Face's "text2text-generation" pipeline with a model trained for abstractive QA to create natural answers from product information.

Instructions

100 XP
  • Create a qa_pipeline using the "fangyuan/hotpotqa_abstractive" model with the "text2text-generation" task.
  • Use the provided context and question to generate an abstractive answer.