Complete example
Using format=context
For simpler RAG setups, use format=context to get results pre-formatted as markdown. This skips the manual formatting step:
Pinning deep mode for RAG
The defaultauto mode adapts effort per query and is the right default for most RAG pipelines. For research-heavy queries, set searchMode=deep to force broader source coverage and spell correction on every call:
Deep mode takes ~2-3 seconds vs ~1 second for fast mode. Pin it when you need guaranteed broad coverage on every call; otherwise
auto already applies deeper treatment when a query calls for it.Tips for better RAG results
- Use
extracts=trueto get longer text passages beyond the shortdescfield - Set
limit=5tolimit=10— more results give the LLM more context to draw from, but too many can dilute relevance - Include source URLs in the prompt so the LLM can cite them
- Use
includeDomainsto restrict to authoritative sources for domain-specific questions - Tell the LLM to say “I don’t know” when the search results don’t contain the answer
Next steps
AI agent tool
Define Andi search as a tool for an AI agent.
Research assistant
Multi-query search with result aggregation.
Response format
Response structure and result types.
Deep search
When to use deep vs fast search.

