engram-sdk 0.5.7 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1163 @@
1
+ {
2
+ "results": [
3
+ {
4
+ "idx": 458,
5
+ "n_needles": 2,
6
+ "n_chars": 15459,
7
+ "total_messages": 6,
8
+ "full_context": {
9
+ "accuracy": "exact",
10
+ "fuzzy_score": 1,
11
+ "input_tokens": 3367,
12
+ "output_tokens": 490,
13
+ "elapsed_ms": 2679
14
+ },
15
+ "engram_augmented": {
16
+ "accuracy": "exact",
17
+ "fuzzy_score": 1,
18
+ "input_tokens": 1017,
19
+ "output_tokens": 490,
20
+ "elapsed_ms": 5790,
21
+ "recalled_count": 2
22
+ },
23
+ "token_reduction": 3.3,
24
+ "opus_cost_full": 0.0873,
25
+ "opus_cost_engram": 0.052
26
+ },
27
+ {
28
+ "idx": 465,
29
+ "n_needles": 2,
30
+ "n_chars": 23123,
31
+ "total_messages": 14,
32
+ "full_context": {
33
+ "accuracy": "exact",
34
+ "fuzzy_score": 1,
35
+ "input_tokens": 5157,
36
+ "output_tokens": 523,
37
+ "elapsed_ms": 4519
38
+ },
39
+ "engram_augmented": {
40
+ "accuracy": "exact",
41
+ "fuzzy_score": 1,
42
+ "input_tokens": 2934,
43
+ "output_tokens": 523,
44
+ "elapsed_ms": 6578,
45
+ "recalled_count": 6
46
+ },
47
+ "token_reduction": 1.8,
48
+ "opus_cost_full": 0.1166,
49
+ "opus_cost_engram": 0.0832
50
+ },
51
+ {
52
+ "idx": 479,
53
+ "n_needles": 2,
54
+ "n_chars": 29222,
55
+ "total_messages": 24,
56
+ "full_context": {
57
+ "accuracy": "exact",
58
+ "fuzzy_score": 1,
59
+ "input_tokens": 6200,
60
+ "output_tokens": 93,
61
+ "elapsed_ms": 1679
62
+ },
63
+ "engram_augmented": {
64
+ "accuracy": "exact",
65
+ "fuzzy_score": 1,
66
+ "input_tokens": 4140,
67
+ "output_tokens": 86,
68
+ "elapsed_ms": 3137,
69
+ "recalled_count": 11
70
+ },
71
+ "token_reduction": 1.5,
72
+ "opus_cost_full": 0.1,
73
+ "opus_cost_engram": 0.0686
74
+ },
75
+ {
76
+ "idx": 738,
77
+ "n_needles": 2,
78
+ "n_chars": 35729,
79
+ "total_messages": 30,
80
+ "full_context": {
81
+ "accuracy": "exact",
82
+ "fuzzy_score": 1,
83
+ "input_tokens": 8681,
84
+ "output_tokens": 644,
85
+ "elapsed_ms": 4451
86
+ },
87
+ "engram_augmented": {
88
+ "accuracy": "exact",
89
+ "fuzzy_score": 1,
90
+ "input_tokens": 6554,
91
+ "output_tokens": 644,
92
+ "elapsed_ms": 6821,
93
+ "recalled_count": 14
94
+ },
95
+ "token_reduction": 1.3,
96
+ "opus_cost_full": 0.1785,
97
+ "opus_cost_engram": 0.1466
98
+ },
99
+ {
100
+ "idx": 752,
101
+ "n_needles": 2,
102
+ "n_chars": 49624,
103
+ "total_messages": 42,
104
+ "full_context": {
105
+ "accuracy": "exact",
106
+ "fuzzy_score": 1,
107
+ "input_tokens": 11319,
108
+ "output_tokens": 566,
109
+ "elapsed_ms": 3531
110
+ },
111
+ "engram_augmented": {
112
+ "accuracy": "exact",
113
+ "fuzzy_score": 1,
114
+ "input_tokens": 7457,
115
+ "output_tokens": 566,
116
+ "elapsed_ms": 6492,
117
+ "recalled_count": 15
118
+ },
119
+ "token_reduction": 1.5,
120
+ "opus_cost_full": 0.2122,
121
+ "opus_cost_engram": 0.1543
122
+ },
123
+ {
124
+ "idx": 715,
125
+ "n_needles": 2,
126
+ "n_chars": 60320,
127
+ "total_messages": 50,
128
+ "full_context": {
129
+ "accuracy": "exact",
130
+ "fuzzy_score": 1,
131
+ "input_tokens": 13713,
132
+ "output_tokens": 410,
133
+ "elapsed_ms": 4350
134
+ },
135
+ "engram_augmented": {
136
+ "accuracy": "exact",
137
+ "fuzzy_score": 1,
138
+ "input_tokens": 8087,
139
+ "output_tokens": 410,
140
+ "elapsed_ms": 4070,
141
+ "recalled_count": 15
142
+ },
143
+ "token_reduction": 1.7,
144
+ "opus_cost_full": 0.2364,
145
+ "opus_cost_engram": 0.1521
146
+ },
147
+ {
148
+ "idx": 777,
149
+ "n_needles": 2,
150
+ "n_chars": 70789,
151
+ "total_messages": 60,
152
+ "full_context": {
153
+ "accuracy": "exact",
154
+ "fuzzy_score": 1,
155
+ "input_tokens": 15134,
156
+ "output_tokens": 516,
157
+ "elapsed_ms": 3307
158
+ },
159
+ "engram_augmented": {
160
+ "accuracy": "exact",
161
+ "fuzzy_score": 1,
162
+ "input_tokens": 7647,
163
+ "output_tokens": 516,
164
+ "elapsed_ms": 9226,
165
+ "recalled_count": 15
166
+ },
167
+ "token_reduction": 2,
168
+ "opus_cost_full": 0.2657,
169
+ "opus_cost_engram": 0.1534
170
+ },
171
+ {
172
+ "idx": 129,
173
+ "n_needles": 2,
174
+ "n_chars": 96669,
175
+ "total_messages": 92,
176
+ "full_context": {
177
+ "accuracy": "exact",
178
+ "fuzzy_score": 1,
179
+ "input_tokens": 20974,
180
+ "output_tokens": 651,
181
+ "elapsed_ms": 6374
182
+ },
183
+ "engram_augmented": {
184
+ "accuracy": "exact",
185
+ "fuzzy_score": 1,
186
+ "input_tokens": 8582,
187
+ "output_tokens": 648,
188
+ "elapsed_ms": 7363,
189
+ "recalled_count": 15
190
+ },
191
+ "token_reduction": 2.4,
192
+ "opus_cost_full": 0.3634,
193
+ "opus_cost_engram": 0.1773
194
+ },
195
+ {
196
+ "idx": 174,
197
+ "n_needles": 2,
198
+ "n_chars": 120543,
199
+ "total_messages": 110,
200
+ "full_context": {
201
+ "accuracy": "exact",
202
+ "fuzzy_score": 1,
203
+ "input_tokens": 25897,
204
+ "output_tokens": 398,
205
+ "elapsed_ms": 3235
206
+ },
207
+ "engram_augmented": {
208
+ "accuracy": "exact",
209
+ "fuzzy_score": 1,
210
+ "input_tokens": 6967,
211
+ "output_tokens": 398,
212
+ "elapsed_ms": 5794,
213
+ "recalled_count": 15
214
+ },
215
+ "token_reduction": 3.7,
216
+ "opus_cost_full": 0.4183,
217
+ "opus_cost_engram": 0.1344
218
+ },
219
+ {
220
+ "idx": 115,
221
+ "n_needles": 2,
222
+ "n_chars": 143182,
223
+ "total_messages": 144,
224
+ "full_context": {
225
+ "accuracy": "exact",
226
+ "fuzzy_score": 1,
227
+ "input_tokens": 31069,
228
+ "output_tokens": 401,
229
+ "elapsed_ms": 2886
230
+ },
231
+ "engram_augmented": {
232
+ "accuracy": "exact",
233
+ "fuzzy_score": 1,
234
+ "input_tokens": 7623,
235
+ "output_tokens": 401,
236
+ "elapsed_ms": 5554,
237
+ "recalled_count": 15
238
+ },
239
+ "token_reduction": 4.1,
240
+ "opus_cost_full": 0.4961,
241
+ "opus_cost_engram": 0.1444
242
+ },
243
+ {
244
+ "idx": 339,
245
+ "n_needles": 2,
246
+ "n_chars": 173989,
247
+ "total_messages": 184,
248
+ "full_context": {
249
+ "accuracy": "exact",
250
+ "fuzzy_score": 1,
251
+ "input_tokens": 38665,
252
+ "output_tokens": 283,
253
+ "elapsed_ms": 9432
254
+ },
255
+ "engram_augmented": {
256
+ "accuracy": "exact",
257
+ "fuzzy_score": 1,
258
+ "input_tokens": 5868,
259
+ "output_tokens": 262,
260
+ "elapsed_ms": 4759,
261
+ "recalled_count": 15
262
+ },
263
+ "token_reduction": 6.6,
264
+ "opus_cost_full": 0.6012,
265
+ "opus_cost_engram": 0.1077
266
+ },
267
+ {
268
+ "idx": 303,
269
+ "n_needles": 2,
270
+ "n_chars": 223144,
271
+ "total_messages": 234,
272
+ "full_context": {
273
+ "accuracy": "exact",
274
+ "fuzzy_score": 1,
275
+ "input_tokens": 48036,
276
+ "output_tokens": 302,
277
+ "elapsed_ms": 2735
278
+ },
279
+ "engram_augmented": {
280
+ "accuracy": "exact",
281
+ "fuzzy_score": 1,
282
+ "input_tokens": 6061,
283
+ "output_tokens": 302,
284
+ "elapsed_ms": 5348,
285
+ "recalled_count": 15
286
+ },
287
+ "token_reduction": 7.9,
288
+ "opus_cost_full": 0.7432,
289
+ "opus_cost_engram": 0.1136
290
+ },
291
+ {
292
+ "idx": 335,
293
+ "n_needles": 2,
294
+ "n_chars": 268235,
295
+ "total_messages": 274,
296
+ "full_context": {
297
+ "accuracy": "exact",
298
+ "fuzzy_score": 1,
299
+ "input_tokens": 59455,
300
+ "output_tokens": 345,
301
+ "elapsed_ms": 3682
302
+ },
303
+ "engram_augmented": {
304
+ "accuracy": "exact",
305
+ "fuzzy_score": 1,
306
+ "input_tokens": 7260,
307
+ "output_tokens": 340,
308
+ "elapsed_ms": 5694,
309
+ "recalled_count": 15
310
+ },
311
+ "token_reduction": 8.2,
312
+ "opus_cost_full": 0.9177,
313
+ "opus_cost_engram": 0.1344
314
+ },
315
+ {
316
+ "idx": 694,
317
+ "n_needles": 2,
318
+ "n_chars": 327262,
319
+ "total_messages": 346,
320
+ "full_context": {
321
+ "accuracy": "exact",
322
+ "fuzzy_score": 1,
323
+ "input_tokens": 73016,
324
+ "output_tokens": 239,
325
+ "elapsed_ms": 3325
326
+ },
327
+ "engram_augmented": {
328
+ "accuracy": "exact",
329
+ "fuzzy_score": 1,
330
+ "input_tokens": 5546,
331
+ "output_tokens": 239,
332
+ "elapsed_ms": 4607,
333
+ "recalled_count": 15
334
+ },
335
+ "token_reduction": 13.2,
336
+ "opus_cost_full": 1.1132,
337
+ "opus_cost_engram": 0.1011
338
+ },
339
+ {
340
+ "idx": 696,
341
+ "n_needles": 2,
342
+ "n_chars": 408190,
343
+ "total_messages": 420,
344
+ "full_context": {
345
+ "accuracy": "high_fuzzy",
346
+ "fuzzy_score": 0.9547169811320755,
347
+ "input_tokens": 91031,
348
+ "output_tokens": 444,
349
+ "elapsed_ms": 4513
350
+ },
351
+ "engram_augmented": {
352
+ "accuracy": "exact",
353
+ "fuzzy_score": 1,
354
+ "input_tokens": 7922,
355
+ "output_tokens": 400,
356
+ "elapsed_ms": 7551,
357
+ "recalled_count": 15
358
+ },
359
+ "token_reduction": 11.5,
360
+ "opus_cost_full": 1.3988,
361
+ "opus_cost_engram": 0.1488
362
+ },
363
+ {
364
+ "idx": 1292,
365
+ "n_needles": 4,
366
+ "n_chars": 17321,
367
+ "total_messages": 10,
368
+ "full_context": {
369
+ "accuracy": "exact",
370
+ "fuzzy_score": 1,
371
+ "input_tokens": 4177,
372
+ "output_tokens": 289,
373
+ "elapsed_ms": 2597
374
+ },
375
+ "engram_augmented": {
376
+ "accuracy": "exact",
377
+ "fuzzy_score": 1,
378
+ "input_tokens": 1508,
379
+ "output_tokens": 266,
380
+ "elapsed_ms": 4530,
381
+ "recalled_count": 4
382
+ },
383
+ "token_reduction": 2.8,
384
+ "opus_cost_full": 0.0843,
385
+ "opus_cost_engram": 0.0426
386
+ },
387
+ {
388
+ "idx": 1211,
389
+ "n_needles": 4,
390
+ "n_chars": 24497,
391
+ "total_messages": 20,
392
+ "full_context": {
393
+ "accuracy": "exact",
394
+ "fuzzy_score": 1,
395
+ "input_tokens": 5802,
396
+ "output_tokens": 285,
397
+ "elapsed_ms": 2653
398
+ },
399
+ "engram_augmented": {
400
+ "accuracy": "exact",
401
+ "fuzzy_score": 1,
402
+ "input_tokens": 3292,
403
+ "output_tokens": 283,
404
+ "elapsed_ms": 4922,
405
+ "recalled_count": 9
406
+ },
407
+ "token_reduction": 1.8,
408
+ "opus_cost_full": 0.1084,
409
+ "opus_cost_engram": 0.0706
410
+ },
411
+ {
412
+ "idx": 1270,
413
+ "n_needles": 4,
414
+ "n_chars": 29429,
415
+ "total_messages": 22,
416
+ "full_context": {
417
+ "accuracy": "exact",
418
+ "fuzzy_score": 1,
419
+ "input_tokens": 6976,
420
+ "output_tokens": 346,
421
+ "elapsed_ms": 3383
422
+ },
423
+ "engram_augmented": {
424
+ "accuracy": "exact",
425
+ "fuzzy_score": 1,
426
+ "input_tokens": 4499,
427
+ "output_tokens": 317,
428
+ "elapsed_ms": 5380,
429
+ "recalled_count": 10
430
+ },
431
+ "token_reduction": 1.6,
432
+ "opus_cost_full": 0.1306,
433
+ "opus_cost_engram": 0.0913
434
+ },
435
+ {
436
+ "idx": 1246,
437
+ "n_needles": 4,
438
+ "n_chars": 34986,
439
+ "total_messages": 22,
440
+ "full_context": {
441
+ "accuracy": "exact",
442
+ "fuzzy_score": 1,
443
+ "input_tokens": 7546,
444
+ "output_tokens": 521,
445
+ "elapsed_ms": 3435
446
+ },
447
+ "engram_augmented": {
448
+ "accuracy": "exact",
449
+ "fuzzy_score": 1,
450
+ "input_tokens": 5071,
451
+ "output_tokens": 507,
452
+ "elapsed_ms": 7789,
453
+ "recalled_count": 10
454
+ },
455
+ "token_reduction": 1.5,
456
+ "opus_cost_full": 0.1523,
457
+ "opus_cost_engram": 0.1141
458
+ },
459
+ {
460
+ "idx": 1538,
461
+ "n_needles": 4,
462
+ "n_chars": 46488,
463
+ "total_messages": 46,
464
+ "full_context": {
465
+ "accuracy": "partial",
466
+ "fuzzy_score": 0.7607361963190185,
467
+ "input_tokens": 10343,
468
+ "output_tokens": 193,
469
+ "elapsed_ms": 3895
470
+ },
471
+ "engram_augmented": {
472
+ "accuracy": "partial",
473
+ "fuzzy_score": 0.7991360691144709,
474
+ "input_tokens": 5139,
475
+ "output_tokens": 135,
476
+ "elapsed_ms": 2321,
477
+ "recalled_count": 15
478
+ },
479
+ "token_reduction": 2,
480
+ "opus_cost_full": 0.1696,
481
+ "opus_cost_engram": 0.0872
482
+ },
483
+ {
484
+ "idx": 1516,
485
+ "n_needles": 4,
486
+ "n_chars": 57947,
487
+ "total_messages": 52,
488
+ "full_context": {
489
+ "accuracy": "exact",
490
+ "fuzzy_score": 1,
491
+ "input_tokens": 12812,
492
+ "output_tokens": 397,
493
+ "elapsed_ms": 2911
494
+ },
495
+ "engram_augmented": {
496
+ "accuracy": "exact",
497
+ "fuzzy_score": 1,
498
+ "input_tokens": 6781,
499
+ "output_tokens": 397,
500
+ "elapsed_ms": 8330,
501
+ "recalled_count": 15
502
+ },
503
+ "token_reduction": 1.9,
504
+ "opus_cost_full": 0.222,
505
+ "opus_cost_engram": 0.1315
506
+ },
507
+ {
508
+ "idx": 1588,
509
+ "n_needles": 4,
510
+ "n_chars": 69401,
511
+ "total_messages": 62,
512
+ "full_context": {
513
+ "accuracy": "partial",
514
+ "fuzzy_score": 0.8730385164051355,
515
+ "input_tokens": 15347,
516
+ "output_tokens": 587,
517
+ "elapsed_ms": 5414
518
+ },
519
+ "engram_augmented": {
520
+ "accuracy": "exact",
521
+ "fuzzy_score": 1,
522
+ "input_tokens": 8114,
523
+ "output_tokens": 575,
524
+ "elapsed_ms": 7286,
525
+ "recalled_count": 15
526
+ },
527
+ "token_reduction": 1.9,
528
+ "opus_cost_full": 0.2742,
529
+ "opus_cost_engram": 0.1648
530
+ },
531
+ {
532
+ "idx": 991,
533
+ "n_needles": 4,
534
+ "n_chars": 87175,
535
+ "total_messages": 86,
536
+ "full_context": {
537
+ "accuracy": "exact",
538
+ "fuzzy_score": 1,
539
+ "input_tokens": 19011,
540
+ "output_tokens": 416,
541
+ "elapsed_ms": 4477
542
+ },
543
+ "engram_augmented": {
544
+ "accuracy": "exact",
545
+ "fuzzy_score": 1,
546
+ "input_tokens": 7471,
547
+ "output_tokens": 415,
548
+ "elapsed_ms": 6023,
549
+ "recalled_count": 15
550
+ },
551
+ "token_reduction": 2.5,
552
+ "opus_cost_full": 0.3164,
553
+ "opus_cost_engram": 0.1432
554
+ },
555
+ {
556
+ "idx": 932,
557
+ "n_needles": 4,
558
+ "n_chars": 111642,
559
+ "total_messages": 104,
560
+ "full_context": {
561
+ "accuracy": "partial",
562
+ "fuzzy_score": 0.8840125391849529,
563
+ "input_tokens": 24706,
564
+ "output_tokens": 401,
565
+ "elapsed_ms": 3035
566
+ },
567
+ "engram_augmented": {
568
+ "accuracy": "exact",
569
+ "fuzzy_score": 1,
570
+ "input_tokens": 7472,
571
+ "output_tokens": 431,
572
+ "elapsed_ms": 4698,
573
+ "recalled_count": 15
574
+ },
575
+ "token_reduction": 3.3,
576
+ "opus_cost_full": 0.4007,
577
+ "opus_cost_engram": 0.1444
578
+ },
579
+ {
580
+ "idx": 945,
581
+ "n_needles": 4,
582
+ "n_chars": 136372,
583
+ "total_messages": 142,
584
+ "full_context": {
585
+ "accuracy": "partial",
586
+ "fuzzy_score": 0.8786482334869432,
587
+ "input_tokens": 30435,
588
+ "output_tokens": 451,
589
+ "elapsed_ms": 3509
590
+ },
591
+ "engram_augmented": {
592
+ "accuracy": "exact",
593
+ "fuzzy_score": 1,
594
+ "input_tokens": 7698,
595
+ "output_tokens": 467,
596
+ "elapsed_ms": 4897,
597
+ "recalled_count": 15
598
+ },
599
+ "token_reduction": 4,
600
+ "opus_cost_full": 0.4904,
601
+ "opus_cost_engram": 0.1505
602
+ },
603
+ {
604
+ "idx": 1144,
605
+ "n_needles": 4,
606
+ "n_chars": 169948,
607
+ "total_messages": 180,
608
+ "full_context": {
609
+ "accuracy": "partial",
610
+ "fuzzy_score": 0.6124197002141327,
611
+ "input_tokens": 37330,
612
+ "output_tokens": 472,
613
+ "elapsed_ms": 3268
614
+ },
615
+ "engram_augmented": {
616
+ "accuracy": "partial",
617
+ "fuzzy_score": 0.6124197002141327,
618
+ "input_tokens": 7427,
619
+ "output_tokens": 449,
620
+ "elapsed_ms": 7160,
621
+ "recalled_count": 15
622
+ },
623
+ "token_reduction": 5,
624
+ "opus_cost_full": 0.5954,
625
+ "opus_cost_engram": 0.1451
626
+ },
627
+ {
628
+ "idx": 1131,
629
+ "n_needles": 4,
630
+ "n_chars": 217234,
631
+ "total_messages": 232,
632
+ "full_context": {
633
+ "accuracy": "partial",
634
+ "fuzzy_score": 0.8051612903225807,
635
+ "input_tokens": 47287,
636
+ "output_tokens": 739,
637
+ "elapsed_ms": 4607
638
+ },
639
+ "engram_augmented": {
640
+ "accuracy": "exact",
641
+ "fuzzy_score": 1,
642
+ "input_tokens": 9551,
643
+ "output_tokens": 658,
644
+ "elapsed_ms": 8025,
645
+ "recalled_count": 15
646
+ },
647
+ "token_reduction": 5,
648
+ "opus_cost_full": 0.7647,
649
+ "opus_cost_engram": 0.1926
650
+ },
651
+ {
652
+ "idx": 1128,
653
+ "n_needles": 4,
654
+ "n_chars": 268825,
655
+ "total_messages": 304,
656
+ "full_context": {
657
+ "accuracy": "partial",
658
+ "fuzzy_score": 0.8,
659
+ "input_tokens": 60411,
660
+ "output_tokens": 274,
661
+ "elapsed_ms": 3263
662
+ },
663
+ "engram_augmented": {
664
+ "accuracy": "exact",
665
+ "fuzzy_score": 1,
666
+ "input_tokens": 5268,
667
+ "output_tokens": 326,
668
+ "elapsed_ms": 7290,
669
+ "recalled_count": 15
670
+ },
671
+ "token_reduction": 11.5,
672
+ "opus_cost_full": 0.9267,
673
+ "opus_cost_engram": 0.1035
674
+ },
675
+ {
676
+ "idx": 1482,
677
+ "n_needles": 4,
678
+ "n_chars": 328784,
679
+ "total_messages": 350,
680
+ "full_context": {
681
+ "accuracy": "exact",
682
+ "fuzzy_score": 1,
683
+ "input_tokens": 72151,
684
+ "output_tokens": 453,
685
+ "elapsed_ms": 4771
686
+ },
687
+ "engram_augmented": {
688
+ "accuracy": "partial",
689
+ "fuzzy_score": 0.8558823529411764,
690
+ "input_tokens": 7472,
691
+ "output_tokens": 408,
692
+ "elapsed_ms": 9829,
693
+ "recalled_count": 15
694
+ },
695
+ "token_reduction": 9.7,
696
+ "opus_cost_full": 1.1162,
697
+ "opus_cost_engram": 0.1427
698
+ },
699
+ {
700
+ "idx": 1473,
701
+ "n_needles": 4,
702
+ "n_chars": 404241,
703
+ "total_messages": 430,
704
+ "full_context": {
705
+ "accuracy": "partial",
706
+ "fuzzy_score": 0.7779751332149201,
707
+ "input_tokens": 87946,
708
+ "output_tokens": 515,
709
+ "elapsed_ms": 4356
710
+ },
711
+ "engram_augmented": {
712
+ "accuracy": "exact",
713
+ "fuzzy_score": 1,
714
+ "input_tokens": 7556,
715
+ "output_tokens": 432,
716
+ "elapsed_ms": 1998313,
717
+ "recalled_count": 15
718
+ },
719
+ "token_reduction": 11.6,
720
+ "opus_cost_full": 1.3578,
721
+ "opus_cost_engram": 0.1457
722
+ },
723
+ {
724
+ "idx": 2074,
725
+ "n_needles": 8,
726
+ "n_chars": 17565,
727
+ "total_messages": 18,
728
+ "full_context": {
729
+ "accuracy": "exact",
730
+ "fuzzy_score": 1,
731
+ "input_tokens": 4697,
732
+ "output_tokens": 290,
733
+ "elapsed_ms": 2425
734
+ },
735
+ "engram_augmented": {
736
+ "accuracy": "partial",
737
+ "fuzzy_score": 0.8007968127490039,
738
+ "input_tokens": 2733,
739
+ "output_tokens": 318,
740
+ "elapsed_ms": 6315,
741
+ "recalled_count": 8
742
+ },
743
+ "token_reduction": 1.7,
744
+ "opus_cost_full": 0.0922,
745
+ "opus_cost_engram": 0.0648
746
+ },
747
+ {
748
+ "idx": 2069,
749
+ "n_needles": 8,
750
+ "n_chars": 25740,
751
+ "total_messages": 24,
752
+ "full_context": {
753
+ "accuracy": "partial",
754
+ "fuzzy_score": 0.5196850393700787,
755
+ "input_tokens": 5710,
756
+ "output_tokens": 41,
757
+ "elapsed_ms": 2121544
758
+ },
759
+ "engram_augmented": {
760
+ "accuracy": "exact",
761
+ "fuzzy_score": 1,
762
+ "input_tokens": 3844,
763
+ "output_tokens": 58,
764
+ "elapsed_ms": 9311,
765
+ "recalled_count": 11
766
+ },
767
+ "token_reduction": 1.5,
768
+ "opus_cost_full": 0.0887,
769
+ "opus_cost_engram": 0.062
770
+ },
771
+ {
772
+ "idx": 2086,
773
+ "n_needles": 8,
774
+ "n_chars": 29527,
775
+ "total_messages": 24,
776
+ "full_context": {
777
+ "accuracy": "exact",
778
+ "fuzzy_score": 1,
779
+ "input_tokens": 6656,
780
+ "output_tokens": 287,
781
+ "elapsed_ms": 2968
782
+ },
783
+ "engram_augmented": {
784
+ "accuracy": "partial",
785
+ "fuzzy_score": 0.8441558441558441,
786
+ "input_tokens": 4790,
787
+ "output_tokens": 334,
788
+ "elapsed_ms": 8060,
789
+ "recalled_count": 11
790
+ },
791
+ "token_reduction": 1.4,
792
+ "opus_cost_full": 0.1214,
793
+ "opus_cost_engram": 0.0969
794
+ },
795
+ {
796
+ "idx": 2097,
797
+ "n_needles": 8,
798
+ "n_chars": 33747,
799
+ "total_messages": 18,
800
+ "full_context": {
801
+ "accuracy": "exact",
802
+ "fuzzy_score": 1,
803
+ "input_tokens": 6725,
804
+ "output_tokens": 502,
805
+ "elapsed_ms": 3173
806
+ },
807
+ "engram_augmented": {
808
+ "accuracy": "exact",
809
+ "fuzzy_score": 1,
810
+ "input_tokens": 4769,
811
+ "output_tokens": 502,
812
+ "elapsed_ms": 7528,
813
+ "recalled_count": 8
814
+ },
815
+ "token_reduction": 1.4,
816
+ "opus_cost_full": 0.1385,
817
+ "opus_cost_engram": 0.1092
818
+ },
819
+ {
820
+ "idx": 2332,
821
+ "n_needles": 8,
822
+ "n_chars": 46912,
823
+ "total_messages": 38,
824
+ "full_context": {
825
+ "accuracy": "exact",
826
+ "fuzzy_score": 1,
827
+ "input_tokens": 9929,
828
+ "output_tokens": 462,
829
+ "elapsed_ms": 5109
830
+ },
831
+ "engram_augmented": {
832
+ "accuracy": "exact",
833
+ "fuzzy_score": 1,
834
+ "input_tokens": 9182,
835
+ "output_tokens": 462,
836
+ "elapsed_ms": 7518,
837
+ "recalled_count": 18
838
+ },
839
+ "token_reduction": 1.1,
840
+ "opus_cost_full": 0.1836,
841
+ "opus_cost_engram": 0.1724
842
+ },
843
+ {
844
+ "idx": 2309,
845
+ "n_needles": 8,
846
+ "n_chars": 60603,
847
+ "total_messages": 70,
848
+ "full_context": {
849
+ "accuracy": "partial",
850
+ "fuzzy_score": 0.7604166666666666,
851
+ "input_tokens": 13270,
852
+ "output_tokens": 191,
853
+ "elapsed_ms": 4911
854
+ },
855
+ "engram_augmented": {
856
+ "accuracy": "exact",
857
+ "fuzzy_score": 1,
858
+ "input_tokens": 8918,
859
+ "output_tokens": 258,
860
+ "elapsed_ms": 11852,
861
+ "recalled_count": 24
862
+ },
863
+ "token_reduction": 1.5,
864
+ "opus_cost_full": 0.2134,
865
+ "opus_cost_engram": 0.1531
866
+ },
867
+ {
868
+ "idx": 2324,
869
+ "n_needles": 8,
870
+ "n_chars": 73223,
871
+ "total_messages": 78,
872
+ "full_context": {
873
+ "accuracy": "exact",
874
+ "fuzzy_score": 1,
875
+ "input_tokens": 16298,
876
+ "output_tokens": 239,
877
+ "elapsed_ms": 5976
878
+ },
879
+ "engram_augmented": {
880
+ "accuracy": "exact",
881
+ "fuzzy_score": 1,
882
+ "input_tokens": 11388,
883
+ "output_tokens": 239,
884
+ "elapsed_ms": 14424,
885
+ "recalled_count": 24
886
+ },
887
+ "token_reduction": 1.4,
888
+ "opus_cost_full": 0.2624,
889
+ "opus_cost_engram": 0.1887
890
+ },
891
+ {
892
+ "idx": 1734,
893
+ "n_needles": 8,
894
+ "n_chars": 86772,
895
+ "total_messages": 74,
896
+ "full_context": {
897
+ "accuracy": "exact",
898
+ "fuzzy_score": 1,
899
+ "input_tokens": 18875,
900
+ "output_tokens": 566,
901
+ "elapsed_ms": 11749
902
+ },
903
+ "engram_augmented": {
904
+ "accuracy": "exact",
905
+ "fuzzy_score": 1,
906
+ "input_tokens": 12667,
907
+ "output_tokens": 566,
908
+ "elapsed_ms": 8153,
909
+ "recalled_count": 24
910
+ },
911
+ "token_reduction": 1.5,
912
+ "opus_cost_full": 0.3256,
913
+ "opus_cost_engram": 0.2325
914
+ },
915
+ {
916
+ "idx": 1754,
917
+ "n_needles": 8,
918
+ "n_chars": 111431,
919
+ "total_messages": 108,
920
+ "full_context": {
921
+ "accuracy": "partial",
922
+ "fuzzy_score": 0.863406408094435,
923
+ "input_tokens": 25438,
924
+ "output_tokens": 464,
925
+ "elapsed_ms": 3684
926
+ },
927
+ "engram_augmented": {
928
+ "accuracy": "exact",
929
+ "fuzzy_score": 1,
930
+ "input_tokens": 10851,
931
+ "output_tokens": 370,
932
+ "elapsed_ms": 9561,
933
+ "recalled_count": 24
934
+ },
935
+ "token_reduction": 2.3,
936
+ "opus_cost_full": 0.4164,
937
+ "opus_cost_engram": 0.1905
938
+ },
939
+ {
940
+ "idx": 1770,
941
+ "n_needles": 8,
942
+ "n_chars": 139411,
943
+ "total_messages": 170,
944
+ "full_context": {
945
+ "accuracy": "partial",
946
+ "fuzzy_score": 0.6752136752136753,
947
+ "input_tokens": 31385,
948
+ "output_tokens": 57,
949
+ "elapsed_ms": 1912
950
+ },
951
+ "engram_augmented": {
952
+ "accuracy": "exact",
953
+ "fuzzy_score": 1,
954
+ "input_tokens": 5328,
955
+ "output_tokens": 57,
956
+ "elapsed_ms": 5318,
957
+ "recalled_count": 24
958
+ },
959
+ "token_reduction": 5.9,
960
+ "opus_cost_full": 0.4751,
961
+ "opus_cost_engram": 0.0842
962
+ },
963
+ {
964
+ "idx": 1917,
965
+ "n_needles": 8,
966
+ "n_chars": 183380,
967
+ "total_messages": 202,
968
+ "full_context": {
969
+ "accuracy": "partial",
970
+ "fuzzy_score": 0.8213627992633518,
971
+ "input_tokens": 40274,
972
+ "output_tokens": 163,
973
+ "elapsed_ms": 15831
974
+ },
975
+ "engram_augmented": {
976
+ "accuracy": "partial",
977
+ "fuzzy_score": 0.8707482993197279,
978
+ "input_tokens": 9820,
979
+ "output_tokens": 287,
980
+ "elapsed_ms": 14074,
981
+ "recalled_count": 24
982
+ },
983
+ "token_reduction": 4.1,
984
+ "opus_cost_full": 0.6163,
985
+ "opus_cost_engram": 0.1688
986
+ },
987
+ {
988
+ "idx": 1962,
989
+ "n_needles": 8,
990
+ "n_chars": 229500,
991
+ "total_messages": 242,
992
+ "full_context": {
993
+ "accuracy": "high_fuzzy",
994
+ "fuzzy_score": 1,
995
+ "input_tokens": 51415,
996
+ "output_tokens": 674,
997
+ "elapsed_ms": 4858
998
+ },
999
+ "engram_augmented": {
1000
+ "accuracy": "partial",
1001
+ "fuzzy_score": 0.8108108108108109,
1002
+ "input_tokens": 13256,
1003
+ "output_tokens": 641,
1004
+ "elapsed_ms": 1233805,
1005
+ "recalled_count": 24
1006
+ },
1007
+ "token_reduction": 3.9,
1008
+ "opus_cost_full": 0.8218,
1009
+ "opus_cost_engram": 0.2469
1010
+ },
1011
+ {
1012
+ "idx": 1980,
1013
+ "n_needles": 8,
1014
+ "n_chars": 274444,
1015
+ "total_messages": 290,
1016
+ "full_context": {
1017
+ "accuracy": "exact",
1018
+ "fuzzy_score": 1,
1019
+ "input_tokens": 59793,
1020
+ "output_tokens": 500,
1021
+ "elapsed_ms": 5147
1022
+ },
1023
+ "engram_augmented": {
1024
+ "accuracy": "exact",
1025
+ "fuzzy_score": 1,
1026
+ "input_tokens": 12787,
1027
+ "output_tokens": 500,
1028
+ "elapsed_ms": 7695,
1029
+ "recalled_count": 24
1030
+ },
1031
+ "token_reduction": 4.7,
1032
+ "opus_cost_full": 0.9344,
1033
+ "opus_cost_engram": 0.2293
1034
+ },
1035
+ {
1036
+ "idx": 2239,
1037
+ "n_needles": 8,
1038
+ "n_chars": 326797,
1039
+ "total_messages": 372,
1040
+ "full_context": {
1041
+ "accuracy": "partial",
1042
+ "fuzzy_score": 0.6276150627615062,
1043
+ "input_tokens": 73355,
1044
+ "output_tokens": 55,
1045
+ "elapsed_ms": 3815
1046
+ },
1047
+ "engram_augmented": {
1048
+ "accuracy": "exact",
1049
+ "fuzzy_score": 1,
1050
+ "input_tokens": 7557,
1051
+ "output_tokens": 62,
1052
+ "elapsed_ms": 2055571,
1053
+ "recalled_count": 24
1054
+ },
1055
+ "token_reduction": 9.7,
1056
+ "opus_cost_full": 1.1045,
1057
+ "opus_cost_engram": 0.118
1058
+ },
1059
+ {
1060
+ "idx": 2256,
1061
+ "n_needles": 8,
1062
+ "n_chars": 412882,
1063
+ "total_messages": 432,
1064
+ "full_context": {
1065
+ "accuracy": "exact",
1066
+ "fuzzy_score": 1,
1067
+ "input_tokens": 91103,
1068
+ "output_tokens": 721,
1069
+ "elapsed_ms": 5738
1070
+ },
1071
+ "engram_augmented": {
1072
+ "accuracy": "exact",
1073
+ "fuzzy_score": 1,
1074
+ "input_tokens": 16081,
1075
+ "output_tokens": 721,
1076
+ "elapsed_ms": 9843,
1077
+ "recalled_count": 24
1078
+ },
1079
+ "token_reduction": 5.7,
1080
+ "opus_cost_full": 1.4206,
1081
+ "opus_cost_engram": 0.2953
1082
+ }
1083
+ ],
1084
+ "summary": {
1085
+ "methodology": {
1086
+ "llm": "gemini-2.5-flash",
1087
+ "note": "Token counts are model-agnostic. Opus costs estimated from token counts.",
1088
+ "engram_retrieval": "Vault with Gemini embeddings → recall → LLM selects from recalled set",
1089
+ "full_context": "Entire conversation sent to LLM as single prompt",
1090
+ "max_chars": "500K (Gemini context limit)"
1091
+ },
1092
+ "overall": {
1093
+ "total_examples": 45,
1094
+ "full_context": {
1095
+ "exact_match": "64.4%",
1096
+ "high_accuracy": "68.9%",
1097
+ "avg_input_tokens": 29976,
1098
+ "estimated_opus_cost": "$21.57"
1099
+ },
1100
+ "engram_augmented": {
1101
+ "exact_match": "84.4%",
1102
+ "high_accuracy": "84.4%",
1103
+ "avg_input_tokens": 7155,
1104
+ "estimated_opus_cost": "$6.15"
1105
+ },
1106
+ "token_reduction": "4.2x",
1107
+ "cost_reduction": "3.5x"
1108
+ },
1109
+ "by_needle_count": {
1110
+ "2": {
1111
+ "count": 15,
1112
+ "full_context": {
1113
+ "exact_match": "93.3%",
1114
+ "high_accuracy": "100.0%",
1115
+ "avg_fuzzy": "99.7%",
1116
+ "avg_input_tokens": 30114
1117
+ },
1118
+ "engram_augmented": {
1119
+ "exact_match": "100.0%",
1120
+ "high_accuracy": "100.0%",
1121
+ "avg_fuzzy": "100.0%",
1122
+ "avg_input_tokens": 6244,
1123
+ "avg_recalled": 13
1124
+ },
1125
+ "avg_token_reduction": "4.7x"
1126
+ },
1127
+ "4": {
1128
+ "count": 15,
1129
+ "full_context": {
1130
+ "exact_match": "46.7%",
1131
+ "high_accuracy": "46.7%",
1132
+ "avg_fuzzy": "89.3%",
1133
+ "avg_input_tokens": 29485
1134
+ },
1135
+ "engram_augmented": {
1136
+ "exact_match": "80.0%",
1137
+ "high_accuracy": "80.0%",
1138
+ "avg_fuzzy": "95.1%",
1139
+ "avg_input_tokens": 6288,
1140
+ "avg_recalled": 13
1141
+ },
1142
+ "avg_token_reduction": "4.4x"
1143
+ },
1144
+ "8": {
1145
+ "count": 15,
1146
+ "full_context": {
1147
+ "exact_match": "53.3%",
1148
+ "high_accuracy": "60.0%",
1149
+ "avg_fuzzy": "88.5%",
1150
+ "avg_input_tokens": 30328
1151
+ },
1152
+ "engram_augmented": {
1153
+ "exact_match": "73.3%",
1154
+ "high_accuracy": "73.3%",
1155
+ "avg_fuzzy": "95.5%",
1156
+ "avg_input_tokens": 8931,
1157
+ "avg_recalled": 20
1158
+ },
1159
+ "avg_token_reduction": "3.2x"
1160
+ }
1161
+ }
1162
+ }
1163
+ }