exa-architecture-variants

Featured

Choose and implement Exa architecture patterns at different scales: direct search, cached search, and RAG pipeline. Use when designing Exa integrations, choosing between simple search and full RAG, or planning architecture for different traffic volumes. Trigger with phrases like "exa architecture", "exa blueprint", "how to structure exa", "exa RAG design", "exa at scale".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Exa Architecture Variants ## Overview Three deployment architectures for Exa neural search at different scales. Each uses real Exa SDK methods: `search`, `searchAndContents`, `findSimilar`, `getContents`, and `answer`. ## Decision Matrix | Factor | Direct Search | Cached Search | RAG Pipeline | |--------|--------------|---------------|--------------| | Volume | < 1K/day | 1K-50K/day | Any volume | | Latency | 500-2000ms | ~50ms (cached) | 3-8s total | | Use Case | Simple search UI | Content aggregation | AI answers with citations | | Complexity | Low | Medium | High | | Cache Required | No | Yes (Redis/LRU) | Yes | | Exa Methods | `searchAndContents` | `searchAndContents` + cache | All methods | ## Instructions ### Variant 1: Direct Search Integration **Best for:** Adding search to an existing app, < 1K queries/day. ```typescript import Exa from "exa-js"; import express from "express"; const app = express(); const exa = new Exa(process.env.EXA_API_KEY); // Simple search endpoint app.get("/api/search", async (req, res) => { const query = req.query.q as string; if (!query) return res.status(400).json({ error: "q required" }); try { const results = await exa.searchAndContents(query, { type: "auto", numResults: 5, text: { maxCharacters: 500 }, highlights: { maxCharacters: 300, query }, }); res.json(results.results.map(r => ({ title: r.title, url: r.url, snippet: r.highlights?.join(" ") || r.text?.substring(0,...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

exa-reference-architecture

Implement Exa reference architecture for search pipelines, RAG, and content discovery. Use when designing new Exa integrations, reviewing project structure, or establishing architecture standards for neural search applications. Trigger with phrases like "exa architecture", "exa project structure", "exa RAG pipeline", "exa reference design", "exa search pipeline".

2,266 Updated today
jeremylongshore
AI & Automation Featured

exa-data-handling

Implement Exa search result processing, content extraction, caching, and RAG context management. Use when handling search results, implementing caching, building citation pipelines, or managing content payloads for LLM context windows. Trigger with phrases like "exa data", "exa results processing", "exa cache", "exa RAG context", "exa content extraction".

2,266 Updated today
jeremylongshore
AI & Automation Featured

exa-hello-world

Create a minimal working Exa search example with real results. Use when starting a new Exa integration, testing your setup, or learning basic search, searchAndContents, and findSimilar patterns. Trigger with phrases like "exa hello world", "exa example", "exa quick start", "simple exa search", "first exa query".

2,266 Updated today
jeremylongshore
AI & Automation Featured

exa-performance-tuning

Optimize Exa API performance with search type selection, caching, and parallelization. Use when experiencing slow responses, implementing caching strategies, or optimizing request throughput for Exa integrations. Trigger with phrases like "exa performance", "optimize exa", "exa latency", "exa caching", "exa slow", "exa fast".

2,266 Updated today
jeremylongshore
AI & Automation Featured

exa-core-workflow-a

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".

2,266 Updated today
jeremylongshore