Knowledge and Agents
This feature is coming soon. This documentation describes the planned functionality for how Kodexa agents will interact with the Knowledge System.
The Vision
Agents do the heavy lifting of discovering patterns and proposing configurations. Humans stay in control by reviewing and approving what goes into production.Building Knowledge: Feature Discovery
When an agent processes documents, it may discover new entities that should be tracked as Knowledge Features.The Flow
Example: New Vendor Discovery
- Agent processes invoice from “NewTech Solutions Inc.”
- Agent checks if a vendor feature with matching ID exists
- No match found - agent proposes new feature:
- Human reviews the proposed feature in the Knowledge interface
- Human approves (or modifies and approves)
- Feature becomes active and available for linking
What Agents Extract
Agents can propose features based on:- Explicit data: Vendor names, customer IDs, document types
- Inferred classifications: Language, document category, urgency
- Patterns: Recurring entities across multiple documents
Consuming Knowledge: Intelligent Processing
Agents have access to all active knowledge and use it to make processing decisions.The Flow
Example: Applying Extraction Rules
- Document arrives - classified as SEC 10K filing
- Agent queries Knowledge Sets matching “SEC Filing Type = 10K”
- Knowledge Set returns Items:
- Use 10K-specific extraction prompt
- Apply annual report validation rules
- Route to SEC compliance queue
- Agent applies these configurations during processing
Proposing Knowledge Sets
The most powerful capability: agents can propose entire Knowledge Sets by observing patterns.The Flow
Example: Pattern Discovery
Scenario: Agent notices that invoices from Vendor X frequently have validation exceptions for missing tax IDs, and users always override with the same justification. Agent proposes:- Sees the evidence (47 invoices, consistent overrides)
- Verifies the business logic makes sense
- Approves the Knowledge Set
- System now automatically skips tax ID validation for Vendor X
The Human-in-the-Loop Principle
All agent-created knowledge requires human approval before becoming active.Why This Matters
| Aspect | Agent Role | Human Role |
|---|---|---|
| Pattern Detection | Analyzes thousands of documents | Reviews proposed patterns |
| Feature Creation | Extracts and proposes entities | Validates accuracy |
| Rule Discovery | Identifies correlations | Confirms business logic |
| Configuration | Proposes settings | Approves for production |
Review Interface
The Knowledge interface shows:- Pending Features: Agent-proposed entities awaiting approval
- Pending Sets: Agent-proposed rules awaiting approval
- Evidence: Why the agent made the proposal
- Confidence Score: Agent’s certainty level
- Impact Preview: What would change if approved
Feedback Loop
Agents learn from human decisions: When humans:- Approve - Agent learns this pattern is valuable
- Reject - Agent learns to avoid similar proposals
- Modify - Agent learns the correct approach
Configuration
Enabling Agent Knowledge Building
Review Notifications
Best Practices
1. Start with High Confidence Threshold
Begin withconfidenceThreshold: 0.9 and lower as you trust the agent’s proposals.
2. Review Regularly
Don’t let pending items pile up. Regular review keeps the feedback loop active.3. Document Rejections
When rejecting proposals, add notes so the pattern is understood:4. Use Staging Environment
Test agent knowledge building in staging before production:Coming Soon
- Batch Review: Review multiple proposals at once
- Approval Workflows: Route proposals to specific reviewers
- A/B Testing: Test proposed rules on subset before full activation
- Confidence Trends: Track agent accuracy over time
Related Documentation
- Knowledge System Overview - Foundation concepts
- Knowledge Feature Types - Define metadata categories
- Knowledge Item Types - Define configurable behaviors
