Skip to main content
POST
/
suggest_schema
Python
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username="My Username",
    password="My Password",
)
response = client.taxonomy.suggest(
    data_connector_name="data_connector_name",
)
print(response.suggestion)
{
  "suggestion": {},
  "status_code": 200,
  "message": "",
  "suggested_tags": {},
  "node": {
    "label": "Root",
    "path": []
  },
  "tag_not_found_rates": {}
}

Body

application/json
data_connector_name
string
required
file_names
string[] | null
dataslice_id
string | null
progress_tracking_id
string | null
schema_name
string | null
current_tree
Current Tree · object
condition
Condition · object
node
GraphNode · object
user_context
string | null
context_level
string | null
default:file
max_height
integer | null
default:2
use_existing_tags
boolean | null
default:false
use_extracted_tags
boolean | null
default:false
use_mix_llm_and_source
boolean | null
default:false
graph_tag_type
enum<string> | null
default:open_ended
Available options:
open_ended,
binary,
mixed,
defined_values,
hierarchy
min_tags_per_level
integer | null
default:1
max_tags_per_level
integer | null
default:10
set_max_values
boolean | null
default:true
values_per_tag
integer | null
auto_save
boolean | null
default:true
validate_tags
boolean | null
default:true
validation_sample_size
integer | null
default:10
not_found_threshold
number | null
default:1
use_hierarchical_clustering
boolean | null
default:true
deep_suggestion_mode
boolean | null
default:false

Response

Successful Response

suggestion
Suggestion · object
required
status_code
integer | null
default:200
message
string | null
default:""
suggested_tags
Suggested Tags · object
node
GraphNode · object
tag_not_found_rates
Tag Not Found Rates · object