Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 1.97 KB

File metadata and controls

83 lines (59 loc) · 1.97 KB

Quickstart

This guide helps you install and use the exa-direct CLI quickly.

Prerequisites

Install

python -m venv .venv && . .venv/bin/activate
pip install -U pip
pip install -e .

Configure

export EXA_API_KEY=sk-...

First Run

  • Fast search with page text:
exa search --query "Latest research in LLMs" --type fast --text --pretty
  • Contents (livecrawl preferred):
exa contents https://example.com --text --livecrawl preferred
  • Answer with citations:
exa answer --query "Summarize Exa 2.0 updates" --pretty
  • Research (create + poll):
exa research start --instructions @examples/research_instructions.md \
  --schema @examples/research_schema.json --model exa-research-fast
exa research poll --id <researchId> --preset balanced
  • Research (stream JSON-lines):
exa research stream --id <researchId> | jq .
  • Context (Exa Code):
exa context query --query "pandas groupby examples" --tokensNum dynamic

Transport notes (Context)

The Context client uses HTTP/2 with a total timeout. Transient network errors and HTTP 5xx responses are retried with short backoff (0.1s, 0.2s, 0.5s) before a final attempt.

References