Back to AXON

Query Hints

Metadata to help LLMs understand and process your data effectively

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:

  • id is the primary identifier
  • name can be searched
  • age can be aggregated (averaged, summed, etc.)
  • role is 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