An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Update language matching in query-suggestor and researcher agents
Yoshiki Miurae36f5dc17a28
diff --git a/lib/agents/query-suggestor.tsx b/lib/agents/query-suggestor.tsxindex 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.tsxindex 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: {