Skip to main content
Back to benchmarks
Target: Provider-neutral model profilesBaseline: Raw, prefix, and fixed-ratio baselines

v0.6 Adaptive Context Planner

Frozen multilingual context planning with explicit quality and safety checks

The offline suite compares raw context, naive prefix truncation, fixed-ratio compression, and adaptive planning. It uses task-grounded string constraints rather than an LLM judge.

System environment

cpu

Environment-dependent; benchmark locally

ram

Environment-dependent

os

Cross-platform Python

python Version

Python 3.9+

package Version

llmslim v0.6.0 release candidate

tokenizer Version

tiktoken when available; otherwise documented heuristic

sample Size

28 frozen context-planning cases

iterations Per Sample

One deterministic plan per case and baseline; rerun for local latency

Empirical benchmark matrix

MethodToken reductionLatencyCostSemantic retentionInstruction retentionEntity preservation
Raw full context0.0%Measurement onlyProfile-dependent100% required facts100% hard constraints71.4% budget success
Naive prefix9.2%2.21 ms*Profile-dependent100% required facts100% in scoped checks100% budget success
Fixed ratio9.6%26.55 ms*Profile-dependent94.0% required facts96.4% hard constraints78.6% budget success
Adaptive planner11.4%208.02 ms*Estimated, labelled100% required facts100% hard constraints96.4% budget success
Key insights
  • All required trusted instructions and complete selected tool contracts were retained in the checked-in run.
  • The one infeasible case is intentionally impossible and is reported explicitly rather than truncated.
  • SELECTIVE tool exposure remains experimental; FULL and MEASURE_ONLY remain production-safe.
Experimental methodology
Run the frozen 28-case corpus across chat, RAG, tools, mixed, external-source, and multilingual scenarios. Check budget fit, required facts, complete tool schemas, hard constraints, and stale-plan rejection.

Raw evaluation dataset

raw_dataset_sample.json

Reproducible Python script

benchmark_reproducible.py