# Ejirocodes Agent Skills Exa Research

> Exa Research & Answer API

- Skill: `tomevault-io/ejirocodes-agent-skills-exa-research` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/ejirocodes-agent-skills-exa-research`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/ejirocodes-agent-skills-exa-research/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/ejirocodes-agent-skills-exa-research

---


# Exa Research & Answer API

## Quick Reference

| Topic | When to Use | Reference |
|-------|-------------|-----------|
| **Answer API** | Q&A with citations, grounded responses | [answer-api.md](references/answer-api.md) |
| **Deep Search** | Smart query expansion, high-quality summaries | [deep-search.md](references/deep-search.md) |
| **Citations** | Source attribution, verification | [citations.md](references/citations.md) |

## Essential Patterns

### Answer API (Python)

```python
from exa_py import Exa

exa = Exa()

response = exa.answer(
    "What are the key features of Python 3.12?",
    text=True
)

print(response.answer)
for citation in response.citations:
    print(f"Source: {citation.url}")
```

### Streaming Answers

```python
stream = exa.answer(
    "Explain the benefits of microservices architecture",
    stream=True
)

for chunk in stream:
    print(chunk.text, end="", flush=True)

# Access citations after streaming
print("\nSources:", stream.citations)
```

### Deep Search with Summaries

```python
results = exa.search_and_contents(
    "latest developments in quantum computing",
    type="neural",
    num_results=10,
    summary=True,
    use_autoprompt=True  # Smart query expansion
)

for result in results.results:
    print(f"{result.title}")
    print(f"Summary: {result.summary}")
```

## When to Use

| Feature | Use Case | Output |
|---------|----------|--------|
| **Answer API** | Direct Q&A needing citations | Answer + source URLs |
| **Deep Search** | Query expansion + summaries | Enhanced search results |
| **Exa Research** | Long-form async reports | Structured JSON/Markdown |

## Common Mistakes

1. **Not using streaming for long answers** - Use `stream=True` for better UX on complex questions
2. **Ignoring citations** - Always include `response.citations` for verifiable responses
3. **Missing `text=True`** - Answer API needs content access; include `text=True`
4. **Over-complex queries** - Answer API works best with clear, focused questions
5. **Not validating citations** - Check `citation.url` exists before displaying to users

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/ejirocodes) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

