feat: add Exa AI-powered search tool#164
Open
tgonzalezc5 wants to merge 1 commit intoOpenLAIR:mainfrom
Open
Conversation
Add Exa (exa.ai) as a new search source in the Research News feed, alongside arXiv, HuggingFace, X, and Xiaohongshu. - New search_exa.py script using the Exa REST API with neural/semantic search - Registers Exa in the server-side SOURCE_REGISTRY with configurable queries, category filter (research paper, news, etc.), and date range - Full frontend integration: source icon, filter bar, settings dialog, dashboard stats, unified feed, and i18n (en, zh-CN, ko) - Uses shared scoring_utils for consistent relevance/recency/quality scoring - Sets x-exa-integration tracking header for API attribution - Requires EXA_API_KEY environment variable (added to .env.example) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
search_exa.pyscript using the Exa REST API with configurable search queries, category filters (research paper,news,company, etc.), and date rangesscoring_utilsfor consistent relevance/recency/popularity/quality scoring across all sourcesUsage
Files changed
server/scripts/research-news/search_exa.py— new Exa search scriptserver/routes/news.js— register Exa in SOURCE_REGISTRYsrc/components/news-dashboard/view/useNewsDashboardData.ts— addexato NewsSourceKey typesrc/components/news-dashboard/view/SourceFilterBar.tsx— add Exa button/colorssrc/components/news-dashboard/view/SourceIcon.tsx— add Exa iconsrc/components/news-dashboard/view/SourceSettingsDialog.tsx— add Exa-specific settings UIsrc/components/news-dashboard/view/NewsDashboard.tsx— add Exa stat cardsrc/components/news-dashboard/view/UnifiedFeed.tsx— add Exa feed stylingsrc/i18n/locales/{en,zh-CN,ko}/news.json— add Exa translationspublic/icons/news/exa.svg— Exa source icon.env.example— add EXA_API_KEYTest plan
EXA_API_KEYenv var and start the server