Skip to main content
A well-designed schema is the foundation of a successful dataset. This guide covers best practices and common patterns.

Core Principles

1. Be Descriptive

Every table, property, and relationship needs clear descriptions. Our AI agents use these to understand what data to extract.

2. Use Strong Typing

Leverage our type system to ensure data quality:

3. Model Relationships Thoughtfully

Relationships should represent meaningful connections:

Common Patterns

Hierarchical Relationships

For parent-child structures:

Time-Series Data

For tracking changes over time:

Many-to-Many Relationships

When entities can have multiple connections:

Schema Examples by Industry

Financial Services

Healthcare

E-Commerce

Advanced Tips

1. Plan for Growth

Design schemas that can evolve:
  • Start with core properties
  • Add detail incrementally
  • Use consistent naming conventions

2. Balance Normalization

Find the right level of detail:
  • Too normalized: Complex to query
  • Too denormalized: Redundant data
  • Just right: Natural entity boundaries

3. Consider Your Sources

Design for the data you can actually get:
  • Public web data: Keep it simple
  • Internal documents: Can be detailed
  • APIs: Match their structure

4. Validate Early

Test your schema with sample data:

Common Mistakes to Avoid

Don’t forget descriptions - Properties without clear descriptions produce poor extraction results
Don’t over-constrain enums - Leave room for edge cases with an “Other” option
Don’t create circular dependencies - Be careful with self-referential relationships

Next Steps

Financial Schema

Ready-to-use financial dataset schema

E-Commerce Schema

Product and vendor tracking