π§ Closed-Domain QA Prompts
Abstract
This section covers the prompts for "Closed-Domain Question Answering".
Question Answering (QA) is a natural language processing task which involves generating the desired answer for the given question. Question Answering can be open-domain QA or closed-domain QA depending on whether the chatbot is provided with the relevant context or not.
In the case of closed-domain QA, a question along with relevant context is given. Here the context is nothing but the relevant text having the answer.
Assume that you have a long paragraph of text and a question to be answered based on the paragraph (closed-domain QA). For this, you can write a prompt like this
Prompt
Answer the given question based on the given context.
Context: Artificial intelligence (AI) is like having a super helpful and smart robot friend! Imagine
trying to learn a new language, like French. AI can help by translating things for you, suggesting the best
words to use, and even checking your grammar. It's like having a personal language tutor, but way faster
and more efficient! Just like AI can help with languages, it can be used to do lots of other amazing
things, like driving cars, diagnosing diseases, and even composing music!
Question: What is AI compared to?
Constraint: Please start the answer with the delimiter βAnswerβ. Don't give any explanations.
Answer:
Output