Backend ServicesWeb search context
LLMSlim + Exa
Live web search results as bounded, untrusted context for planning.
ExaSearchSource searches the web with Exa and returns each result as an untrusted RAG ContextItem with its URL, so fresh pages can join an agent’s context without promoting themselves into instructions. A usage guard caps requests and spend.
1. Package installation
Install LLMSlim and the official Exa SDK using your package manager.
pip install 'llmslim[exa]'2. Architecture & execution flow
3. Production code pattern
from llmslim.integrations.exa import ExaSearchSource
source = ExaSearchSource.from_env() # reads EXA_API_KEY
items = await source.search("Sarvam-105B context window", limit=5)
# Pass items to plan_context(documents=items); web results stay untrusted.4. Deployment best practices
5. Key optimization tips
Frequently asked questions
Troubleshooting
Searches are refused before reaching Exa
The usage guard stopped them. Raise LLMSLIM_EXA_REQUESTS_PER_MINUTE or LLMSLIM_EXA_MAX_REQUESTS deliberately, or wait for the window to pass.