Available Hints
!primary Marks primary key fields for unique identification
!search Indicates searchable columns for LLM queries
!aggregate Marks fields suitable for aggregation (sum, average, etc.)
!filter Identifies filterable fields
!sort Marks sortable columns
!relationship Indicates foreign key relationships between entities
Usage Example
users::[100] !primary id:u8|!search name:str|!aggregate age:u8|role:str This tells the LLM that:
idis the primary identifiernamecan be searchedagecan be aggregated (averaged, summed, etc.)roleis a regular field
Why Use Query Hints?
- Improved accuracy: LLMs understand data relationships better
- Faster responses: Models know which fields to focus on
- Better queries: Hints guide the LLM's query planning