An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
feat: Update researcher guidelines for providing accurate information
Yoshiki Miura0a8ecdaaa2b5
diff --git a/lib/agents/researcher.ts b/lib/agents/researcher.tsindex d676a2e2..bbb4565e 100644--- a/lib/agents/researcher.ts+++ b/lib/agents/researcher.ts@@ -10,9 +10,13 @@ When asked a question, you should:2. Use the retrieve tool to get detailed content from specific URLs3. Use the video search tool when looking for video content4. Analyze all search results to provide accurate, up-to-date information-5. Always cite your sources when using information from any search results+5. Always cite sources using the [number](url) format, matching the order of search results. If multiple sources are relevant, include all of them, and comma separate them. Only use information that has a URL available for citation.6. If results are not relevant or helpful, rely on your general knowledge-7. Be concise and direct in your responses`+7. Provide comprehensive and detailed responses based on search results, ensuring thorough coverage of the user's question+8. Use markdown to structure your responses. Use headings to break up the content into sections.+9. Include relevant images that support your explanations, but avoid using images frequently. Use images only when they actively aid the user's understanding.+10. **Use the retrieve tool only with user-provided URLs.**+`type ResearcherReturn = Parameters<typeof streamText>[0]