Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Execute Exa neural search with contents, date filters, and domain scoping. Use when building search features, implementing RAG context retrieval, or querying the web with semantic understanding. Trigger with phrases like "exa search", "exa neural search", "search with exa", "exa searchAndContents", "exa query".
.claude/skills/jeremylongshore-exa-core-workflow-a/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 32% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 67% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 92% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 47% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 23% | 0% |
Primary workflow for Exa: semantic web search using search() and searchAndContents(). Exa's neural search understands query meaning rather than matching keywords, making it ideal for research, RAG pipelines, and content discovery. This skill covers search types, content extraction, filtering, and categories.
exa-js installed and EXA_API_KEY configured| Type | Latency | Best For | |------|---------|----------| | auto (default) | 300-1500ms | General queries; Exa picks best approach | | neural | 500-2000ms | Conceptual/semantic queries | | keyword | 200-500ms | Exact terms, names, URLs | | fast | p50 < 425ms | Speed-critical applications | | instant | < 150ms | Real-time autocomplete | | deep | 2-5s | Maximum quality, light deep search | | deep-reasoning | 5-15s | Complex research questions |
typescriptimport Exa from "exa-js"; const exa = new Exa(process.env.EXA_API_KEY); // Neural search: phrase your query as a statement, not a question const results = await exa.search( "comprehensive guide to building production RAG systems", { type: "neural", numResults: 10, // max 100 for neural/deep } ); for (const r of results.results) { console.log(`[${r.score.toFixed(2)}] ${r.title} — ${r.url}`); console.log(` Published: ${r.publishedDate || "unknown"}`); }
typescript// searchAndContents returns page text, highlights, and/or summaries const results = await exa.searchAndContents( "best practices for vector database selection", { type: "auto", numResults: 5, // Text: full page content as markdown text: { maxCharacters: 2000 }, // Highlights: key excerpts relevant to a custom query highlights: { maxCharacters: 500, query: "comparison of vector databases", }, // Summary: LLM-generated summary tailored to a query summary: { query: "which vector database should I choose?" }, } ); for (const r of results.results) { console.log(`## ${r.title}`); console.log(`Summary: ${r.summary}`); console.log(`Highlights: ${r.highlights?.join(" ... ")}`); console.log(`Full text: ${r.text?.substring(0, 300)}...`); }
typescript// Filter by publication date and restrict to specific domains const results = await exa.searchAndContents( "TypeScript 5.5 new features", { type: "auto", numResults: 10, // Date filters use ISO 8601 format startPublishedDate: "2024-06-01T00:00:00.000Z", endPublishedDate: "2025-01-01T00:00:00.000Z", // Domain filters (up to 1200 domains each) includeDomains: ["devblogs.microsoft.com", "typescriptlang.org"], // Text content filters (1 string, max 5 words each) includeText: ["TypeScript"], text: true, } );
typescript// Categories narrow results to specific content types // Available: company, research paper, news, tweet, personal site, // financial report, people const papers = await exa.searchAndContents( "attention mechanism improvements for long context LLMs", { type: "neural", numResults: 10, category: "research paper", text: { maxCharacters: 3000 }, highlights: true, } ); const companies = await exa.search( "AI infrastructure startup founded 2024", { type: "auto", numResults: 10, category: "company", // Note: company and people categories do NOT support date filters } );
typescript// Control whether Exa fetches fresh content or uses cache const results = await exa.searchAndContents( "latest AI model releases this week", { numResults: 5, text: { maxCharacters: 1500 }, // maxAgeHours controls freshness (replaces deprecated livecrawl) // 0 = always crawl fresh, -1 = never crawl, positive = max cache age livecrawl: "preferred", // try fresh, fall back to cache livecrawlTimeout: 10000, // 10s timeout for live crawling } );
| Error | HTTP Code | Cause | Solution | |-------|-----------|-------|----------| | INVALID_REQUEST_BODY | 400 | Invalid parameter types | Check query is string, numResults is integer | | INVALID_NUM_RESULTS | 400 | numResults > 100 with highlights | Reduce numResults or remove highlights | | Empty results array | 200 | Date filter too narrow | Widen date range or remove filter | | Low relevance scores | 200 | Keyword-style query | Rephrase as natural language statement | | FETCH_DOCUMENT_ERROR | 422 | URL content unretrievable | Use livecrawl: "fallback" or try without text |
typescriptasync function getRAGContext(question: string, maxResults = 5) { const results = await exa.searchAndContents(question, { type: "neural", numResults: maxResults, text: { maxCharacters: 2000 }, highlights: { maxCharacters: 500, query: question }, }); return results.results.map((r, i) => ({ source: `[${i + 1}] ${r.title} (${r.url})`, content: r.text, highlights: r.highlights, })); }
For similarity search and advanced retrieval, see exa-core-workflow-b.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 15,775 | 8,317 | -47% | 1 | 1 | 0% | 2,682 | 3,550 | +32% | 0 | 0 | — |
case-02 | fail→pass | 11,690 | 8,970 | -23% | 1 | 1 | 0% | 2,056 | 3,441 | +67% | 0 | 0 | — |
case-03 | pass→pass | 17,386 | 9,245 | -47% | 1 | 1 | 0% | 2,750 | 3,203 | +16% | 0 | 0 | — |
case-04 | pass→pass | 7,355 | 4,650 | -37% | 1 | 1 | 0% | 1,379 | 2,393 | +74% | 0 | 0 | — |
case-05 | pass→pass | 9,611 | 7,230 | -25% | 1 | 1 | 0% | 2,003 | 2,855 | +43% | 0 | 0 | — |
case-06 | pass→pass | 10,482 | 7,752 | -26% | 1 | 1 | 0% | 1,750 | 2,885 | +65% | 0 | 0 | — |
case-07 | pass→pass | 6,459 | 5,849 | -9% | 1 | 1 | 0% | 1,219 | 2,857 | +134% | 0 | 0 | — |
case-08 | pass→pass | 8,431 | 7,099 | -16% | 1 | 1 | 0% | 1,281 | 2,797 | +118% | 0 | 0 | — |
case-09 | fail→pass | 7,737 | 7,615 | -2% | 1 | 1 | 0% | 1,516 | 2,904 | +92% | 0 | 0 | — |
case-10 | pass→pass | 7,416 | 5,460 | -26% | 1 | 1 | 0% | 1,400 | 2,821 | +101% | 0 | 0 | — |
case-11 | fail→pass | 11,677 | 6,247 | -47% | 1 | 1 | 0% | 1,958 | 2,885 | +47% | 0 | 0 | — |
case-12 | fail→fail | 13,946 | 8,261 | -41% | 1 | 1 | 0% | 1,920 | 2,946 | +53% | 0 | 0 | — |
case-13 | fail→pass | 20,058 | 12,143 | -39% | 1 | 1 | 0% | 2,812 | 3,459 | +23% | 0 | 0 | — |
case-14 | pass→pass | 20,287 | 16,231 | -20% | 1 | 1 | 0% | 3,004 | 4,252 | +42% | 0 | 0 | — |
case-15 | fail→pass | 11,415 | 7,370 | -35% | 1 | 1 | 0% | 1,828 | 3,312 | +81% | 0 | 0 | — |
case-16 | pass→pass | 15,546 | 8,172 | -47% | 1 | 1 | 0% | 1,965 | 3,086 | +57% | 0 | 0 | — |
case-17 | fail→pass | 9,299 | 4,875 | -48% | 1 | 1 | 0% | 1,254 | 2,394 | +91% | 0 | 0 | — |
case-18 | fail→pass | 7,879 | 3,976 | -50% | 1 | 1 | 0% | 1,412 | 2,540 | +80% | 0 | 0 | — |
case-19 | pass→pass | 5,988 | 4,092 | -32% | 1 | 1 | 0% | 1,098 | 2,476 | +126% | 0 | 0 | — |
case-20 | fail→fail | 9,870 | 15,527 | +57% | 1 | 1 | 0% | 1,509 | 4,170 | +176% | 0 | 0 | — |
case-21 | pass→pass | 14,171 | 12,451 | -12% | 1 | 1 | 0% | 2,320 | 4,031 | +74% | 0 | 0 | — |
case-22 | pass→pass | 10,973 | 8,805 | -20% | 1 | 1 | 0% | 1,597 | 3,089 | +93% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +36 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.