Skip to main content

POST /api/insights/search

Searches the Alchemist database and returns ranked insights. Each insight includes the verbatim source excerpt it was derived from, the originating document, and relevance score. Insights are embedded with HyDE — the index stores both the insight text and hypothetical questions it can answer. This makes focused keyword phrases and concise questions work well as queries.

Authentication

X-API-Key: alch_YOUR_KEY

Request body

Response 200

Query writing guide

If search_insights returns 0 or very few results:
  1. Try a more specific phrasing: "Q4 2025 guidance""Q4 2025 revenue outlook earnings call"
  2. Remove filters (source_name, since) and try again
  3. Try an alternative entity name or acronym: "Bureau of Labor Statistics""BLS"
  4. Call GET /api/documents/filters to confirm the source name you’re filtering on is in the database

Examples