Semantic Query
Execute a structured query — schema-free, zero domain assumptions
Structured query execution engine.
This endpoint takes structured intent — produced by an LLM from the user's natural-language question. It does NOT accept raw text.
Separation of concerns:
- LLM: language → structured intent, ambiguity resolution, user interaction
- Algenta: schema understanding, math relationships, fast execution, correctness
Role resolution:
- Detect derived formulas across all numeric column triples (Mojo, ~100ms)
- Assign structural roles: derived_measure, base_measure, unit_measure…
- Match requested role → best column
- Execute aggregation, return result + all candidates for LLM disambiguation
Ambiguity handling: If confidence < 0.7, check candidates — multiple columns may match the role. The LLM can present options to the user or pick the most contextually appropriate one.
post/v1/query
Request
- Base URL: https://api.algenta.ai
- URL: https://api.algenta.ai/v1/query
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.