The prompt
Answer the question below with the context.
Context:
{context}
---
Question: {question}
Write an answer based on the context. If the context provides insufficient information reply "I cannot answer." For each part of your answer, indicate which sources most support it via citation keys at the end of sentences, like {example_citation}. Only cite from the context above and only use the citation keys from the context.
## Valid citation examples, only use comma/space delimited parentheticals:
- (pqac-d79ef6fa, pqac-0f650d59)
- (pqac-d79ef6fa)
## Invalid citation examples:
- (pqac-d79ef6fa and pqac-0f650d59)
- (pqac-d79ef6fa;pqac-0f650d59)
- (pqac-d79ef6fa-pqac-0f650d59)
- pqac-d79ef6fa and pqac-0f650d59
- Example's work (pqac-d79ef6fa)
- (pages pqac-d79ef6fa)
- Author et al. (2023)
Do not concatenate citation keys, just use them as is. Write in the style of a scientific article, with concise sentences and coherent paragraphs. This answer will be used directly, so do not add any extraneous information.
Answer ({answer_length}): What it is
Answers a question only from the given context in the style of a scientific article, with citation keys at the end of sentences in a strict comma-delimited format, or replies "I cannot answer." when the context is insufficient. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the paper-qa repository (Apache License 2.0, Copyright 2024 FutureHouse). Licence: https://github.com/Future-House/paper-qa/blob/main/LICENSE. Original author: FutureHouse (Future-House/paper-qa). Changes by FoxaMind: Python string quotes removed; {...} placeholders keep the source names.
Who it's for
- Researchers who need grounded answers with citations
- Developers building scientific RAG tools
يجيب عن سؤال من السياق المعطى فقط بأسلوب مقال علمي، مع مفاتيح الاستشهاد في نهاية الجمل بصيغة صارمة مفصولة بفواصل، أو يردّ بـ"I cannot answer." إذا كان السياق غير كافٍ.
Tips
- The prompt lists valid citation formats and seven invalid ones, such as keys joined with "and" or a semicolon.
- Only citation keys that appear in the context may be used, and keys are not concatenated.
- {context}, {question}, {example_citation} and {answer_length} are filled by the app.