Skip to content

Add Exa as a search backend - #263

Open
kesku wants to merge 1 commit into
Alibaba-NLP:mainfrom
kesku:kesku/add-exa-support
Open

Add Exa as a search backend#263
kesku wants to merge 1 commit into
Alibaba-NLP:mainfrom
kesku:kesku/add-exa-support

Conversation

@kesku

@kesku kesku commented Jul 30, 2026

Copy link
Copy Markdown

Hi! Right now the search tool is wired to Serper only. This PR adds Exa as an optional backend so folks can use semantic web search instead (or as a Plan B if they don't have a Serper key).

What changed

  • exa_search() in inference/tool_search.py, same result shape as the existing Serper path
  • Pick the backend with SEARCH_PROVIDER=exa (Serper stays the default)
  • If only EXA_API_KEY is set, it falls back to Exa automatically
  • Docs + .env.example updated

Usage

SEARCH_PROVIDER=exa
EXA_API_KEY=your_key

Existing Serper setups keep working as-is. Happy to tweak anything if you'd like this shaped differently!

@kesku
kesku force-pushed the kesku/add-exa-support branch from d59cdf4 to 4d4c02f Compare July 30, 2026 23:06
@kesku
kesku force-pushed the kesku/add-exa-support branch from 4d4c02f to 79005bb Compare July 30, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant