Genenrative AI - Optimization

Table of Contents (ToC)

Ploon: Path-Level Object Oriented Notation

References:

 {
  "products": [
    { "id": 1, "name": "Laptop", "price": 999 },
    { "id": 2, "name": "Mouse", "price": 25 }
  ]
}
$ ploon data.json --stats


 ┌─📊 Token Statistics (tiktoken/GPT-4)───┐
 │                                        │
 │  Input:   50 tokens (120 chars)        │
 │  Output:  31 tokens (60 chars)         │
 │                                        │
 │  ✅ Saved 19 tokens (-38.0%)            │
 │  ✅ Saved 60 chars (-50.0%)             │
 │                                        │
 └────────────────────────────────────────┘

[products#2](id|name|price)

1:1|1|Laptop|999
1:2|2|Mouse|25