Skip to main content
POST
/
taxonomy
/
generate_from_context
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
response = client.taxonomy.generate_from_context(
    user_context="user_context",
)
print(response.taxonomy_data)
{
  "taxonomy_data": {},
  "taxonomy_description": "<string>",
  "suggested_tags": {},
  "tag_not_found_rates": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.deasylabs.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
user_context
string
required
taxonomy_name
string | null
industry
string | null
data_type
string | null
use_case
string | null
taxonomy_type
string
default:hierarchical
max_depth
integer | null
default:3
llm_profile_name
string | null
data_connector_name
string | null
validate_tags
boolean | null
default:false

Response

Successful Response

taxonomy_data
Taxonomy Data · object
required
taxonomy_description
string | null
suggested_tags
Suggested Tags · object
tag_not_found_rates
Tag Not Found Rates · object