Tags are the metadata attributes you want to extract or classify from your documents. Taxonomies organize tags into hierarchical structures that define parent-child relationships.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.
What is a Tag?
A Tag defines a specific piece of information you want to capture from documents:| Property | Description | Example |
|---|---|---|
| Name | The tag identifier | Contract Type |
| Description | Instructions for the AI on what to extract | ”Identify the type of legal agreement (NDA, MSA, SOW, etc.)” |
| Output Type | How values are returned | Word, Number, Date |
| Max Values | How many values get returned | 1 to however many relevant values an AI can find |
| Available Values | Predefined options (for classification) | ["NDA", "MSA", "SOW", "Employment Agreement"] |
| Strategy | Extraction method | LLM (AI), Regex (Pattern), Rule-based |
Tag Types
| Tag Type | How It Works | When to Use | Example |
|---|---|---|---|
| Classification Tags | AI chooses from predefined list of values | When you have a known set of categories | Document Type: Contract, Invoice, Report |
| Extraction Tags | AI extracts open-ended values from text | When the value is unpredictable | Contract Value: $1,500,000 |
| Pattern Tags | Regex pattern matching or NLP detection | For compliance, keyword-search, etc. | SSN: XXX-XX-XXXX, Email: [email protected] |
Taxonomy Structure
A Taxonomy enables hierarchical organization and conditional extraction. Child tags only get generated when parent conditions are met:In this taxonomy, the AI first classifies the document type, then only extracts the relevant child tags. A Contract won’t have “Invoice Amount” extracted — saving time and cost.
Creating Effective Tags
Define Clear Descriptions
Give the AI specific instructions about what to extract. The better your description, the more accurate the extraction.
Choose the Right Type
Use Classification for known categories, Extraction for open-ended values, and Pattern for structured formats.
Set Available Values
For Classification tags, provide a complete list of possible values to improve accuracy.
Python SDK
- Create Taxonomy
- Create Tag
- AI Suggestions
- List & Delete
API Reference
Upsert Tag
Create or update a tag
List Tags
List all your tags
Delete Tag
Remove a tag
Suggest Patterns
AI-powered pattern suggestions
Upsert Taxonomy
Create or update a taxonomy
List Taxonomies
List all your taxonomies
Delete Taxonomy
Remove a taxonomy
Suggest Taxonomy
AI-powered taxonomy suggestions

