Skip to content

Large schema, Low-cardinality columns and Enum type #20

@ansarizafar

Description

@ansarizafar

Adding schema of all tables in prompt can exceed LLM context limit hence not viable. How PremSQL handles schema with large number of tables? Is there a strategy to only add schema of relevant tables in prompt?

Low-cardinality refers to columns with few unique values. Low-cardinality column values are typically status flags, Boolean values, or major classifications such as gender and state code. An example of a data table column with low-cardinality would be a CUSTOMER table with a column named NEW_CUSTOMER. Enumerated types (ENUM) are widely used in structured attributes to restrict the values of a text type to carry only one or more of a pre-defined set of permitted values.

How Low-cardinality columns are handled and how PremSQL ensures mapping ENUM attribute values to a permitted one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions