Chat with documents
Grounded question-answering over the indexed documents in your environment. Returns an answer plus structured citations back to the source files.
Authorizations
Memic API key. Every key is bound to exactly one environment — get one from the Memic dashboard under API Keys.
Body
Request for chat/answer generation with intelligent routing.
User question
1 - 1000Optional project filter for semantic search
Optional file filter for semantic search
Optional connector ID for structured queries
Force a specific route (structured/semantic/hybrid)
structured, semantic, hybrid Number of chunks to retrieve
1 <= x <= 20Minimum similarity score
0 <= x <= 1Response
Successful Response
Response with LLM-generated answer, citations, and routing info.
How the query was routed
Search results (semantic and/or structured) - same structure as SearchResponse