Examples
Real-world examples showing how Tauq reduces tokens across different use cases.
User Records
BasicSimple user data with schema definition
50%
Token Savings
✅ Tauq 24 tokens
!def User id name email role active
1 Alice "alice@example.com" admin true
2 Bob "bob@example.com" user true
3 Carol "carol@example.com" user false ❌ JSON 48 tokens
[
{
"id": 1,
"name": "Alice",
"email": "alice@example.com",
"role": "admin",
"active": true
},
{
"id": 2,
"name": "Bob",
"email": "bob@example.com",
"role": "user",
"active": true
},
{
"id": 3,
"name": "Carol",
"email": "carol@example.com",
"role": "user",
"active": false
}
] Configuration File
ConfigApplication config with nested values
38%
Token Savings
✅ Tauq 45 tokens
app_name "MyService"
version "1.0.0"
port 8080
debug true
database {
host localhost
port 5432
name myapp_db
}
features [api websockets metrics]
allowed_origins ["https://example.com" "https://app.example.com"] ❌ JSON 72 tokens
{
"app_name": "MyService",
"version": "1.0.0",
"port": 8080,
"debug": true,
"database": {
"host": "localhost",
"port": 5432,
"name": "myapp_db"
},
"features": ["api", "websockets", "metrics"],
"allowed_origins": [
"https://example.com",
"https://app.example.com"
]
} Product Catalog
E-commerceE-commerce product data with prices
47%
Token Savings
✅ Tauq 52 tokens
!def Product id name price stock category
101 "Laptop Pro" 1299.99 15 electronics
102 "Wireless Mouse" 29.99 150 accessories
103 "USB-C Cable" 12.99 200 accessories
104 "Monitor 27"" 399.99 8 electronics
105 "Keyboard Mechanical" 89.99 45 accessories ❌ JSON 98 tokens
[
{
"id": 101,
"name": "Laptop Pro",
"price": 1299.99,
"stock": 15,
"category": "electronics"
},
{
"id": 102,
"name": "Wireless Mouse",
"price": 29.99,
"stock": 150,
"category": "accessories"
},
{
"id": 103,
"name": "USB-C Cable",
"price": 12.99,
"stock": 200,
"category": "accessories"
},
{
"id": 104,
"name": "Monitor 27\"",
"price": 399.99,
"stock": 8,
"category": "electronics"
},
{
"id": 105,
"name": "Keyboard Mechanical",
"price": 89.99,
"stock": 45,
"category": "accessories"
}
] API Response
APIPaginated API response with metadata
41%
Token Savings
✅ Tauq 48 tokens
page 1
per_page 10
total 42
total_pages 5
!def Item id title status created_at
1 "Fix login bug" completed "2025-01-15T10:30:00Z"
2 "Add dark mode" in_progress "2025-01-14T15:20:00Z"
3 "Update docs" pending "2025-01-13T09:00:00Z" ❌ JSON 82 tokens
{
"page": 1,
"per_page": 10,
"total": 42,
"total_pages": 5,
"items": [
{
"id": 1,
"title": "Fix login bug",
"status": "completed",
"created_at": "2025-01-15T10:30:00Z"
},
{
"id": 2,
"title": "Add dark mode",
"status": "in_progress",
"created_at": "2025-01-14T15:20:00Z"
},
{
"id": 3,
"title": "Update docs",
"status": "pending",
"created_at": "2025-01-13T09:00:00Z"
}
]
} Time Series Data
IoTSensor readings with timestamps
50%
Token Savings
✅ Tauq 56 tokens
!def Reading timestamp temperature humidity pressure
"2025-01-15T00:00:00Z" 22.5 45.2 1013.25
"2025-01-15T00:15:00Z" 22.3 46.1 1013.20
"2025-01-15T00:30:00Z" 22.1 47.0 1013.15
"2025-01-15T00:45:00Z" 21.9 47.8 1013.10
"2025-01-15T01:00:00Z" 21.7 48.5 1013.05 ❌ JSON 112 tokens
[
{
"timestamp": "2025-01-15T00:00:00Z",
"temperature": 22.5,
"humidity": 45.2,
"pressure": 1013.25
},
{
"timestamp": "2025-01-15T00:15:00Z",
"temperature": 22.3,
"humidity": 46.1,
"pressure": 1013.20
},
{
"timestamp": "2025-01-15T00:30:00Z",
"temperature": 22.1,
"humidity": 47.0,
"pressure": 1013.15
},
{
"timestamp": "2025-01-15T00:45:00Z",
"temperature": 21.9,
"humidity": 47.8,
"pressure": 1013.10
},
{
"timestamp": "2025-01-15T01:00:00Z",
"temperature": 21.7,
"humidity": 48.5,
"pressure": 1013.05
}
] LLM Training Data
AI/MLQuestion-answer pairs for fine-tuning
36%
Token Savings
✅ Tauq 86 tokens
!def QAPair id question answer category
1 "What is Tauq?" "Tauq is a token-efficient data notation format achieving 44-54% fewer tokens than JSON." general
2 "How to install Tauq?" "Use cargo install tauq, pip install tauq, or npm install tauq depending on your language." installation
3 "Why use Tauq for AI?" "Tauq reduces token costs by 44-54%, saving money on API calls and fitting more data in context windows." benefits ❌ JSON 135 tokens
[
{
"id": 1,
"question": "What is Tauq?",
"answer": "Tauq is a token-efficient data notation format achieving 44-54% fewer tokens than JSON.",
"category": "general"
},
{
"id": 2,
"question": "How to install Tauq?",
"answer": "Use cargo install tauq, pip install tauq, or npm install tauq depending on your language.",
"category": "installation"
},
{
"id": 3,
"question": "Why use Tauq for AI?",
"answer": "Tauq reduces token costs by 44-54%, saving money on API calls and fitting more data in context windows.",
"category": "benefits"
}
] Ready to Try Tauq?
Install Tauq and start saving tokens on your own data.