chat-ui
45153fb9 - feat: improve search query formulation with dynamic year and examples

Commit
12 days ago
feat: improve search query formulation with dynamic year and examples Tested with 15 diverse queries comparing results with Exa MCP flow. Key improvements: - Dynamic current year (${currentYear}) instead of hardcoded 2024 - Added multiple concrete examples for colon-ending query format - Stronger emphasis on statement format vs questions - Clearer phrasing for time-sensitive topic handling Results: - Colon format compliance: 13% -> 93% (14/15 queries) - Current year usage: 87% -> 100% (no outdated years) - Consistent 3-6 keyword usage across all test queries Model now correctly produces queries like: - "SpaceX Starship latest test flight results 2026:" - "Claude Opus 4.5 benchmark performance comparison:" - "GitHub Copilot pricing plans cost 2026:"
Author
Committer
Parents
Loading