From e36f5dc17a288f7e4a5f40441ead9e5c6d39d4eb Mon Sep 17 00:00:00 2001 From: Yoshiki Miura Date: Tue, 16 Apr 2024 05:34:51 +0900 Subject: [PATCH] Update language matching in query-suggestor and researcher agents --- lib/agents/query-suggestor.tsx | 2 +- lib/agents/researcher.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/agents/query-suggestor.tsx b/lib/agents/query-suggestor.tsx index bd41b387..2d109e14 100644 --- a/lib/agents/query-suggestor.tsx +++ b/lib/agents/query-suggestor.tsx @@ -36,7 +36,7 @@ export async function querySuggestor( }" Aim to create queries that progressively delve into more specific aspects, implications, or adjacent topics related to the initial query. The goal is to anticipate the user's potential information needs and guide them towards a more comprehensive understanding of the subject matter. - `, + Please match the language of the response to the user's language.`, messages, schema: relatedSchema }) diff --git a/lib/agents/researcher.tsx b/lib/agents/researcher.tsx index 286790a8..4b2faf33 100644 --- a/lib/agents/researcher.tsx +++ b/lib/agents/researcher.tsx @@ -45,7 +45,7 @@ export async function researcher( 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. - `, + Please match the language of the response to the user's language.`, messages, tools: { search: {