The prompt
Your goal is to generate a targeted web search query.
<CONTEXT>
Current date: {current_date}
Please ensure your queries account for the most current information available as of this date.
</CONTEXT>
<TOPIC>
{research_topic}
</TOPIC>
<EXAMPLE>
Example output:
{
"query": "machine learning transformer architecture explained",
"rationale": "Understanding the fundamental structure of transformer models"
}
</EXAMPLE>
<FORMAT>
Format your response as a JSON object with ALL three of these exact keys:
- "query": The actual search query string
- "rationale": Brief explanation of why this query is relevant
</FORMAT>
Provide your response in JSON format: What it is
Turns a research topic into a single web search query and a short rationale, returned as JSON, with the current date included so the query favours recent information. 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: doubled braces resolved.
Who it's for
- Researchers
- Developers building research agents
يحوّل موضوع بحث إلى استعلام بحث واحد على الويب مع تبرير موجز بصيغة JSON، مع إدراج التاريخ الحالي ليميل الاستعلام إلى المعلومات الحديثة.
Tips
- Fill {current_date} and {research_topic}. The format block says the JSON should have three keys but lists only query and rationale.
- The source keeps this as two strings (the base instruction and the JSON-mode format block, with a separate tool-calling variant); the text here joins them with a blank line. Doubled braces (Python formatting) are written as single braces.
- It is meant to run locally with a model served by Ollama or LMStudio, but the text works in any chat model.