❖ Constraint Augmented Generation (CAG)
Last updated
Last updated
Constraint Augmented Generation (CAG) is a powerful system that allows you to input business logic into your complex schemas. Fast, easy, and flexible, CAG patterns allow you to create synthetic data that conforms to your logic, 100% of the time.
⭐️ Apply patterns across multiple tables. Add business logic that determines the connections between tables, or the type of data that linked tables are allowed to have.
⭐️ Access complex, powerful algorithms with simple APIs. CAG supports patterns that are more complex, often incorporating different algorithms to get you the data you need. The best part? There's one, simple API to denote your data pattern.
This functionality is in Beta. At this time, select SDV Enterprise users have been invited to use this feature.
To use CAG, define your CAG pattern and add it to any SDV single or multi-table synthesizer.
Use this function to add CAG patterns to any single- or multi-table synthesizer that uses AI-generation techniques.
Parameters:
(required) patterns
: A list of CAG pattern objects (explore the CAG patterns below)
Output (None)
Get all the CAG pattern objects that are attached to your synthesizer.
Parameters: None
Output: A list of CAG pattern objects that the synthesizer uses, in order of use
Use this function to access the metadata object that you have included for the synthesizer
Parameters
version
: The version of metadata that you are requesting. The metadata may change between before vs. after applying the CAG algorithms
(default) 'original'
: Return the original metadata that you used to instantiate the synthesizer
'modified'
: Return the metadata that will be created after applying the CAG patterns. If there are CAG patterns present, then it will be different from the original metadata. Otherwise, it will be the same.
The same columns are present in a parent table and a child table, and the values of those columns have to match up according to the connection.
[Coming soon!] Multiple columns together form a primary key and foreign key connection.
[Coming soon!] You have a 1-to-many connection between tables, but only certain values are allowed to have connections.
You have an exact 1-to-1 connection between the primary keys of two or more tables.
You have a 1-to-1 connection between the primary keys of two or more tables but only certain values are allowed to have connections.
[Coming soon!] You have a bridge table that records a many-to-many relationship between two other tabes, and the connections have to be unique
❖
❖
❖
❖
❖
❖
❖ SDV Enterprise bundle. This feature is available for purchase as an SDV Enterprise bundle. For more information, visit our page to .