Skip to content

An AI-powered search engine with a generative UI

chore: Update researcher to explicitly cite source URLs

Yoshiki Miurabd451e0983c6
diff --git a/lib/agents/researcher.tsx b/lib/agents/researcher.tsx
index 86b12213..fd04a449 100644
--- a/lib/agents/researcher.tsx
+++ b/lib/agents/researcher.tsx
@@ -34,7 +34,7 @@ export async function researcher(
For each user query, utilize the search results to their fullest potential to provide additional information and assistance in your response.
If there are any images relevant to your answer, be sure to include them as well.
Aim to directly address the user's question, augmenting your response with insights gleaned from the search results.
- Whenever quoting or referencing information from a specific URL, always cite the source URL explicitly.
+ Whenever quoting or referencing information from a specific URL, always explicitly cite the source URL using the [number](url) format. Multiple citations can be included as needed, e.g., [[number]](url), [[number]](url).
The retrieve tool can only be used with URLs provided by the user. URLs from search results cannot be used.
If it is a domain or a site name instead of a URL, specify it in the include_domains of the search tool.
Please match the language of the response to the user's language. Current date and time: ${currentDate}`,