Taxonomies
Generate from Context
Generate a taxonomy structure from user-provided context using AI.
This endpoint allows users to describe their data and use case, and the system will generate an appropriate taxonomy structure (hierarchical or flat) without requiring actual data files.
Request Body
| Field | Type | Description |
|---|---|---|
user_context | str | Free-form description of the data and intended use |
industry | Optional[str] | Industry context (e.g., “Healthcare”, “Finance”, “Legal”) |
data_type | Optional[str] | Type of data (e.g., “documents”, “customer records”) |
use_case | Optional[str] | Specific use case description |
taxonomy_type | str | Type of taxonomy: “hierarchical” or “flat”. Default: “hierarchical” |
max_depth | Optional[int] | Maximum depth for hierarchical taxonomies. Default: 3 |
llm_profile_name | Optional[str] | LLM profile to use. Defaults to system default if not specified |
Response
- 200: Taxonomy generated successfully
- Returns:
{ "taxonomy_data": Dict, "taxonomy_description": str }
- Returns:
- 400: Invalid request or LLM configuration error
- 500: Internal Server Error
Example
{
"user_context": "I have customer support tickets with priority levels, categories, and resolution status",
"industry": "Technology",
"data_type": "support tickets",
"use_case": "categorize and analyze support requests",
"taxonomy_type": "hierarchical",
"max_depth": 3
}
POST
Python
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
