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
Good query patterns
Good query patterns
Patterns to avoid
Patterns to avoid
Refining a sparse result
Refining a sparse result
If
search_insights returns 0 or very few results:- Try a more specific phrasing:
"Q4 2025 guidance"→"Q4 2025 revenue outlook earnings call" - Remove filters (
source_name,since) and try again - Try an alternative entity name or acronym:
"Bureau of Labor Statistics"→"BLS" - Call
GET /api/documents/filtersto confirm the source name you’re filtering on is in the database