Skip to main content
A Knowledge Item Type is a template that defines a configurable capability in the system. While Knowledge Feature Types describe what you know about documents, Knowledge Item Types describe what you can do - such as customizing extraction prompts, applying validation rules, or modifying processing behavior.

When Do You Need Item Types?

Create a Knowledge Item Type when you want to:
  • Allow customization of extraction prompts for specific data elements
  • Define validation rules that can be selectively applied
  • Create processing behaviors that can be configured per document type
  • Enable business users to customize system behavior without code changes

How Item Types Work

  1. Define the Type - Create a Knowledge Item Type that describes a capability (e.g., “Prompt Override”)
  2. Create Items - Create configured instances with specific values (e.g., “Use this prompt for invoice totals”)
  3. Connect via Sets - Knowledge Sets link Features to Items, triggering behaviors based on document characteristics

Item Type Structure

Options Define Configuration

Options specify what parameters users can configure when creating items:

Creating an Item Type

Via YAML (GitOps)

Create a file in kodexa-resources/knowledge-item-types/:
Add to your manifest:
Deploy:

Via API

Via Kodexa UI

  1. Navigate to Knowledge in the sidebar
  2. Click Item Types
  3. Click Create Item Type
  4. Fill in name, slug, description
  5. Add options to define configurable parameters
  6. Save

Creating Knowledge Items

Once you have an Item Type, create configured items:

Via YAML

Via API

Connecting Items to Features via Knowledge Sets

Knowledge Items don’t do anything on their own - they need to be connected to documents through Knowledge Sets. A Knowledge Set says “when a document has these features, apply these items.” See Knowledge Sets for details on creating sets.

Common Item Type Examples

Validation Rule

Field Ignore Rule

Processing Priority

Item Types vs Feature Types

Next Steps