Knowledge Feature Types
A Knowledge Feature Type is a template that defines a category of metadata you want to capture and track across documents. Once defined, you create reusable Knowledge Features of that type, which can be linked to multiple documents.When Do You Need Feature Types?
Create a Knowledge Feature Type when you want to:- Track which vendor invoices came from
- Classify documents by type (10K, 10Q, Contract, etc.)
- Identify document language
- Group documents by customer, region, or business unit
How Feature Types Work
- Define the Type - Create a Knowledge Feature Type (e.g., “Vendor”)
- Create Features - Create reusable features of that type (e.g., “Acme Corp”, “Globex Inc”)
- Link to Documents - Associate features with documents as they’re processed
Feature Type Structure
| Field | Purpose | Example |
|---|---|---|
slug | Unique identifier | vendor |
name | Display name | Vendor |
description | What this feature represents | The vendor that issued this invoice |
options | Define natural key properties | vendorId, taxId |
extendedOptions | Define display properties | displayName, address |
Options vs Extended Options
Options define the natural key - the unique identifier for each feature:options values become properties (the key), and extendedOptions values become extendedProperties (for display).
Creating a Feature Type
Via YAML (GitOps)
Create a file inkodexa-resources/knowledge-feature-types/:
Via API
Via Kodexa UI
- Navigate to Knowledge in the sidebar
- Click Feature Types
- Click Create Feature Type
- Fill in the form with name, slug, description
- Add options for natural keys
- Add extended options for display properties
- Save
Creating Features
Once you have a Feature Type, create features of that type:Via YAML
Via API
Linking Features to Documents
Features are linked to document families. See the Document Families API for details on attaching features during processing.Common Feature Type Examples
Document Type Classification
Language Detection
Customer Identification
Next Steps
- Knowledge Item Types - Define configurable behaviors
- Knowledge Sets - Connect features to actions
- Customizing Extraction - Use features to customize processing
