Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
exa-rag - Skill - OpenSmartRoute
Skillv1.0.0
exa-rag
Build RAG pipelines with Exa.ai for real-time web retrieval. Use when building retrieval-augmented generation, integrating Exa with LangChain, LlamaIndex, Vercel AI SDK, or implementing AI agents…
Imported from ejirocodes/agent-skills (exa/skills/exa-rag/SKILL.md). Install upstream with npx skills add ejirocodes/agent-skills --skill exa-rag. Copyright stays with the author (MIT).
from langchain_exa import ExaSearchRetrieverretriever = ExaSearchRetriever( exa_api_key="your-key", k=5, highlights=True)docs = retriever.invoke("latest AI research papers")
LlamaIndex Reader
from llama_index.readers.web import ExaReaderreader = ExaReader(api_key="your-key")documents = reader.load_data( query="machine learning best practices", num_results=10)
Vercel AI SDK Tool
import { exa } from "@agentic/exa";import { createOpenAI } from "@ai-sdk/openai";import { generateText } from "ai";const result = await generateText({ model: openai("gpt-4"), tools: { search: exa.searchAndContents }, prompt: "Search for the latest TypeScript features",});
OpenAI-Compatible Endpoint
from openai import OpenAIclient = OpenAI( base_url="https://api.exa.ai/v1", api_key="your-exa-key")response = client.chat.completions.create( model="exa", messages=[{"role": "user", "content": "What are the latest AI trends?"}])
Integration Selection
Framework
Best For
Key Feature
LangChain
Complex chains, agents
ExaSearchRetriever, tool integration
LlamaIndex
Document indexing, Q&A
ExaReader, query engines
Vercel AI SDK
Next.js apps, streaming
Tool definitions, edge-ready
OpenAI Compat
Drop-in replacement
Minimal code changes
Claude MCP
Claude Desktop, Claude Code
Native tool calling
Common Mistakes
Not using highlights for RAG - Full text wastes context; use highlights=True for relevant snippets
Missing source attribution - Always include result.url in citations for grounded responses
Ignoring summaries - summary=True provides concise context without full page overhead
Over-fetching results - Start with 3-5 results; more isn't always better for RAG quality
Not filtering domains - Use include_domains to limit to authoritative sources
Skipping date filters - For current events, always add start_published_date to avoid stale info
Forgetting async patterns - Use async retrievers in production for better throughput
Installed into a catalogue, chosen by a router
Install exa-rag and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://osr-api.kindrock-caaab1a2.centralindia.azurecontainerapps.io/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
ejirocodes-agent-skills-exa-rag.ocm.jsonjson
{
"ocm": "1",
"id": "ejirocodes-agent-skills-exa-rag",
"kind": "skill",
"name": "exa-rag",
"description": "Build RAG pipelines with Exa.ai for real-time web retrieval. Use when building retrieval-augmented generation, integrating Exa with LangChain, LlamaIndex, Vercel AI SDK, or implementing AI agents with web search capabilities. Triggers on: RAG pipeline, retrieval augmented generation, Exa LangChain, Exa LlamaIndex, ExaSearchRetriever, ExaSearchResults, Exa MCP, Exa tool calling, Claude tool use, AI agent web search, grounded generation, citation generation, fact checking, hallucination detection, OpenAI compatibility, chat completions.",
"publisher": "ejirocodes",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"data_analysis"
],
"tags": [
"skill-md",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Build RAG pipelines with Exa.ai for real-time web retrieval. Use when building retrieval-augmented generation, integrating Exa with LangChain, LlamaIndex, Vercel AI SDK, or implementing AI agents with web search capabilities. Triggers on: RAG pipeline, retrieval augmented generation, Exa LangChain, Exa LlamaIndex, ExaSearchRetriever, ExaSearchResults, Exa MCP, Exa tool calling, Claude tool use, AI agent web search, grounded generation, citation generation, fact checking, hallucination detection, OpenAI compatibility, chat completions."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/ejirocodes/agent-skills",
"path": "exa/skills/exa-rag/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/ejirocodes/agent-skills/blob/HEAD/exa/skills/exa-rag/SKILL.md",
"key": "ejirocodes/agent-skills/exa/skills/exa-rag/SKILL.md"
},
"license": "MIT"
},
"instructions": "# Exa RAG Integration\n\n## Quick Reference\n\n| Topic | When to Use | Reference |\n|-------|-------------|-----------|\n| **LangChain** | Building RAG chains with LangChain | [langchain.md](references/langchain.md) |\n| **LlamaIndex** | Using Exa as a LlamaIndex data source | [llamaindex.md](references/llamaindex.md) |\n| **Vercel AI SDK** | Adding web search to Next.js AI apps | [vercel-ai.md](references/vercel-ai.md) |\n| **MCP & Tools** | Claude MCP server, OpenAI tools, function calling | [mcp-tools.md](references/mcp-tools.md) |\n\n## Essential Patterns\n\n### LangChain Retriever\n\n```python\nfrom lang",
"cost": {
"context_tokens": 702
}
}
Fetch it by URL: GET /api/v1/registry/ejirocodes-agent-skills-exa-rag/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.