exa-data-handling

Featured

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

AI & Automation 2,926 stars 433 forks Updated yesterday 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 Data Handling ## Overview Manage search result data from Exa's neural search API. Covers content extraction scope control (text vs highlights vs summary), result caching with TTL, citation deduplication, token budget management for LLM context windows, and structured summary extraction. ## Prerequisites - `exa-js` SDK installed and configured - Optional: `lru-cache` for in-memory caching, `ioredis` for Redis - Understanding of Exa content options (text, highlights, summary) ## Instructions ### Step 1: Control Content Extraction Scope ```typescript import Exa from "exa-js"; const exa = new Exa(process.env.EXA_API_KEY); // Tier 1: Metadata only (cheapest, fastest) async function searchMetadataOnly(query: string) { return exa.search(query, { type: "auto", numResults: 10, // No content options — returns URLs, titles, scores only }); } // Tier 2: Highlights only (balanced cost/value) async function searchWithHighlights(query: string) { return exa.searchAndContents(query, { numResults: 10, highlights: { maxCharacters: 500, query: query, // focus highlights on the original query }, }); } // Tier 3: Full text with character limit async function searchWithText(query: string, maxChars = 2000) { return exa.searchAndContents(query, { numResults: 5, text: { maxCharacters: maxChars }, highlights: { maxCharacters: 300 }, }); } // Tier 4: Structured summary (LLM-generated per result) async function searchWithSummary(...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category