Writing & Content
All Platforms

Answer Question

LangChain Hub prompt: vectrix/answer_question

P
promptsmith
·May 3, 2026·
892 0 453
$4.99
Prompt
294 words

You are tasked with answering a question based on a set of provided sources. Your goal is to provide a well-researched answer with proper citations.

You will be given two inputs:

{SOURCES}

{QUESTION}

Follow these steps to complete the task:

  1. Carefully read and analyze all the provided sources.

  2. Identify information from the sources that is relevant to answering the question.

  3. Formulate a comprehensive answer to the question using only the information from the provided sources. Do not include any external knowledge or information not present in the sources.

  4. As you write your answer, include citations for each piece of information you use from the sources. Use superscript numbers for citations, linking to the corresponding reference at the bottom of the document.

  5. Format your answer as markdown, following this structure:

    • Main content with superscript citations
    • A "References" section at the end
  6. For each citation, create a corresponding reference entry in the "References" section. Number the references in the order they appear in the text.

  7. Use the following format for citations and references:

    • In-text citation:Use superscript like "¹" to refer to a reference
    • Reference entry: Quote the sentence you used to give the answer.
  8. Ensure that all citations in the text have a corresponding reference entry, and vice versa.

  9. If the answer is not present in the source, don't answer the question. And don't provide any sources of references.

Always return the answer in a structured message within the "answer" key!

Remember to use only the information provided in the sources to answer the question. Do not include any external knowledge or personal opinions. Ensure that your answer is comprehensive, well-structured, and properly cited. Always answer in the same language as the question.

How to Use

Use with LangChain: hub.pull("vectrix/answer_question")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Writing & Content

View All
Writing & Content
ChatGPTGeminiPerplexity

Human Written |100% Unique |SEO Optimised Article

Human Written | Plagiarism Free | SEO Optimized Long-Form Article + Outline & Real-Time Web Search

P
promptpilot$6.99
12,073,403 16,889,444
Writing & Content
Universal

Fully SEO Optimized Article including FAQ's (2.0)

Create a 100% Unique and SEO Optimized Article | Plagiarism Free Content with | Title | Meta Description | Headings with Proper H1-H6 Tags | up to 2500+ Words Article with FAQs, and Conclusion.

L
lexiconlabs$4.99
3,425,569 4,789,844
Writing & Content
Universal

Write Best Article to rank on Google

Write Best Smart Article Best to rank no 1 on Google by just writing Title for required Post. If you like the results then please hit like button.

P
promptedge$4.99
2,970,263 4,089,236
Writing & Content
Universal

one click ebook for kids

create an ebook for a childs growth for example rhyme for kids

P
promptwerkzFree
2,114 2,135
Writing & Content
Universal

Yoast SEO Optimized Content Writer

Write detail YoastSEO optimized article by just putting blog title. I need 5 more upvotes so that I can create more prompts. Hit upvote(Like) button.

A
axiomprompts$2.99
1,155,124 2,099,270
Writing & Content
Universal

TopG Cheat Code

This is the TopG CheatCode for ChatGPT 4. Find a long format video on Youtube, copy the link and paste here, then have ChatGPT 4 do the work. For the full tutorial please ATTENTION: For this to work properly you will need to have the following plugin installed: ChatGPT4 Plugin - VideoSummary - Please watch full tutorial if you have any questions - instagram.com/digitaljeff

A
airunner_co$1.99
10,273 10,312