exa-performance-tuning
Installation
SKILL.md
Exa Performance Tuning
Overview
Optimize Exa AI search API response times and throughput for production RAG pipelines and search integrations. Exa search latency varies by type: keyword search (200-500ms), neural search (500-2000ms), and auto mode (300-1500ms).
Prerequisites
- Exa API integration (
exa-jsSDK or REST API) - Cache infrastructure (Redis or in-memory LRU)
- Understanding of search patterns in your application
Instructions
Step 1: Choose Search Type by Latency Requirement
import Exa from 'exa-js';
// Match search type to latency budget
function optimizedSearch(exa: Exa, query: string, latencyBudgetMs: number) {
if (latencyBudgetMs < 500) { # HTTP 500 Internal Server Error
// Fast path: keyword search for structured/exact queries
Related skills