home/roleplay/deepset-question-answering-per-document

Deepset Question Answering Per Document

GPTClaudeGemini··340 copies·updated 2026-07-14
deepset-question-answering-per-document.prompt
Given a set of `document` and a single `query`, this prompt is designed to answer the query once per document.

## How to use in Haystack

To use this prompt with Haystack, we recommend defining an `output_parser` with `AnswerParser()` in the `PromptTemplate`. This way, the result of the `PromptNode` will return Haystack `Answer` objects

when to use it

Community prompt sourced from the open-source GitHub repo deepset-ai/prompthub (Apache-2.0). A "Deepset Question Answering Per Document" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

deepset-ai/prompthub · Apache-2.0