The prompt
<GOAL>
Generate a high-quality summary of the provided context.
</GOAL>
<REQUIREMENTS>
When creating a NEW summary:
1. Highlight the most relevant information related to the user topic from the search results
2. Ensure a coherent flow of information
When EXTENDING an existing summary:
1. Read the existing summary and new search results carefully.
2. Compare the new information with the existing summary.
3. For each piece of new information:
a. If it's related to existing points, integrate it into the relevant paragraph.
b. If it's entirely new but relevant, add a new paragraph with a smooth transition.
c. If it's not relevant to the user topic, skip it.
4. Ensure all additions are relevant to the user's topic.
5. Verify that your final output differs from the input summary.
< /REQUIREMENTS >
< FORMATTING >
- Start directly with the updated summary, without preamble or titles. Do not use XML tags in the output.
< /FORMATTING >
<Task>
Think carefully about the provided Context first. Then generate a summary of the context to address the User Input.
</Task> What it is
Writes a first summary of search results on a topic, or extends an earlier summary by merging relevant new facts into the right paragraphs, skipping what is off topic, and checking the output changed. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the Local Deep Researcher (formerly ollama-deep-researcher) repository (MIT licence, Copyright (c) 2025 Lance Martin). Licence: https://github.com/langchain-ai/local-deep-researcher/blob/main/LICENSE. Original author: Lance Martin (langchain-ai/local-deep-researcher). Changes by FoxaMind: none; the text is copied from the source file.
Who it's for
- Researchers
- Developers of iterative research loops
يكتب ملخصًا أوليًا لنتائج بحث حول موضوع، أو يوسّع ملخصًا سابقًا بدمج المعلومات الجديدة ذات الصلة في الفقرات المناسبة وتجاهل ما لا يخص الموضوع.
Tips
- The source builds the user message (topic, existing summary, new results) in code; the prompt here is only the instruction part.
- Rule 5 (verify the output differs from the input summary) guards against a model that just returns the old text.
- Some tag lines in the source have stray spaces (for example "< /REQUIREMENTS >"); the text here is copied as it is.