Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
NeatConfig allows you to configure your NEAT session with specific data modeling modes and validation rules. It provides pre-defined governance profiles that combine validation settings with data modeling behavior, or you can define custom profiles via a TOML configuration file. Review the available data modeling modes and validation rules before configuring your NEAT session.
Class reference
cognite.neat.NeatConfig — Bases: ConfigModel
NeatSession configuration.
Methods
__str__()
Returns a human-readable configuration summary.
create_predefined(profile='legacy-additive')
Create NeatConfig from internal profiles.
| Parameter | Type | Description | Default |
|---|---|---|---|
| profile | PredefinedProfile | Profile name to use | 'legacy-additive' |
- legacy-additive — Additive modeling with legacy validation rules
- legacy-rebuild — Rebuild modeling with legacy validation rules
- deep-additive — Additive modeling with deep validation rules
- deep-rebuild — Rebuild modeling with deep validation rules
Example
Custom configuration via TOML file
You can define custom profiles in a TOML configuration file. Place the configuration file in your project root (e.g.,pyproject.toml or neat.toml).
Basic TOML structure
Custom profile example
Define your own profiles with specific validation rules.Validation exclusion patterns
Theexclude list supports wildcard patterns.
NEAT-DMS-AI-READINESS-*— Excludes all AI-readiness validation rulesNEAT-DMS-CONNECTIONS-002— Excludes a specific validation rule*— Excludes all validation rules (use with caution)
Loading custom configuration
cognite.neat.get_neat_config_from_file(config_file_name, profile) — Get NeatConfig from file or internal profiles.
| Parameter | Type | Description | Default |
|---|---|---|---|
| config_file_name | str | Path to configuration file | required |
| profile | str | Profile name to use | required |
Further reading
- NeatSession reference — Main interface for working with NEAT
- About data modeling modes — Additive and rebuild modes
- Validation rules — Validation rule reference