Index of every page on this site: llms.txt
All skills
ejirocodes avatar

/exa-search

@6e805e4
Run it yourself

Exa.ai search API integration for neural and keyword web search with content retrieval. Use when implementing web search features, integrating Exa SDK (exa_py, exa-js), or retrieving web content. Triggers on: Exa, exa_py, exa-js, neural search, web search API, search_and_contents, searchAndContents, find_similar, findSimilar, domain filtering, date filtering, text extraction, page summaries, highlights, search auto mode, fast search, search categories, livecrawl, excluding domains, include text, exclude text, EXA_API_KEY.

Use this Skill: https://skilld.dev/gh/ejirocodes/agent-skills/exa-search

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencessearch-modes.md

≈963 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Search Modes Reference

Table of Contents


Auto Search (Default)

Auto mode intelligently selects between neural and keyword search based on query analysis.

Usage

# Python - auto is default
results = exa.search_and_contents(
    "best practices for React state management",
    type="auto",  # or omit, auto is default
    num_results=10
)
// TypeScript - auto is default
const results = await exa.searchAndContents(
  "best practices for React state management",
  { type: "auto", numResults: 10 }
);

Characteristics

  • Automatically detects query intent
  • Switches between neural and keyword based on query structure
  • Best for general-purpose applications
  • Note: Scores are not returned in auto mode

Neural Search

Neural search uses semantic understanding to find conceptually relevant results.

When to Use

  • Natural language questions ("What is...", "How do I...")
  • Topic exploration and research
  • Finding related concepts
  • Queries where exact terms may vary

Usage

results = exa.search_and_contents(
    "explain the benefits of microservices architecture",
    type="neural",
    num_results=10
)

# Neural search returns relevance scores
for result in results.results:
    print(f"Score: {result.score} - {result.title}")
const results = await exa.searchAndContents(
  "explain the benefits of microservices architecture",
  { type: "neural", numResults: 10 }
);

results.results.forEach((r) => console.log(`Score: ${r.score} - ${r.title}`));

Best Practices

  • Use for open-ended, exploratory queries
  • Leverage scores to rank results by relevance
  • Combine with summary=True for RAG applications

Keyword Search

Keyword search finds exact term matches, similar to traditional search engines.

When to Use

  • Specific product or company names
  • Error codes and technical identifiers
  • Exact phrase matching
  • Proper nouns and named entities

Usage

results = exa.search_and_contents(
    "ECONNREFUSED Node.js",
    type="keyword",
    num_results=10
)
const results = await exa.searchAndContents("ECONNREFUSED Node.js", {
  type: "keyword",
  numResults: 10,
});

Best Practices

  • Use for specific technical queries
  • Ideal when you know exact terms to match
  • Combine with domain filters for targeted searches

Fast Search

Fast search prioritizes speed over comprehensiveness.

Usage

# Use the fast search endpoint
results = exa.search(
    "breaking news technology",
    type="auto",
    num_results=5
)
# Note: search() is faster than search_and_contents()

When to Use

  • Real-time applications requiring low latency
  • When you only need URLs, not content
  • High-volume search applications

Mode Comparison

Feature Auto Neural Keyword
Semantic understanding Yes (when neural selected) Yes No
Exact matching Yes (when keyword selected) Limited Yes
Returns scores No Yes No
Best for questions Yes Yes No
Best for exact terms Yes No Yes
Default mode Yes No No

Query Examples by Mode

Query Recommended Mode Reason
"What is retrieval augmented generation" neural/auto Conceptual question
"OpenAI GPT-4 API pricing" keyword/auto Specific product terms
"best practices authentication" neural/auto Exploratory topic
"CORS error localhost:3000" keyword Technical error code
"Tesla Q4 2024 earnings" keyword/auto Specific entity + timeframe

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides safe and well-documented patterns for integrating the Exa.ai search API. It includes standard implementations for neural and keyword searches using official SDKs. The only identified concern is the inherent risk of indirect prompt injection common to all tools that fetch and process external web content.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

  • Runlayer9mo

    1/5 files flagged

  • ZeroLeaks7mo

    1 finding · Score: 82/100

Signed by skilld at 6e805e4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 10 months ago
metadata
{
  "author": "ejirocodes",
  "version": "1.0.0"
}

README badge

README badge for ejirocodes/agent-skills/exa-search