Skip to content

An AI-powered search engine with a generative UI

feat: add language instruction to related questions prompt

Yoshiki Miura26c2df055db8
diff --git a/lib/agents/prompts/related-questions-prompt.ts b/lib/agents/prompts/related-questions-prompt.ts
index e3453911..9a0e6a61 100644
--- a/lib/agents/prompts/related-questions-prompt.ts
+++ b/lib/agents/prompts/related-questions-prompt.ts
@@ -1,4 +1,9 @@
-export const RELATED_QUESTIONS_PROMPT = `You are a professional web researcher tasked with generating follow-up questions. Based on the conversation history and search results, create 3 CONCISE related questions that:
+export const RELATED_QUESTIONS_PROMPT = `You are a professional web researcher tasked with generating follow-up questions.
+
+Language:
+- ALWAYS generate questions in the user's language.
+
+Based on the conversation history and search results, create 3 CONCISE related questions that:
1. Explore NEW aspects not covered in the original query
2. Dig deeper into specific details from the search results