Skip to content

Fuse consecutive filters; adaptive agentic batching - #275

Open
ShauryaVM wants to merge 1 commit into
lotus-data:mainfrom
ShauryaVM:feat/operator-fusion
Open

ShauryaVM wants to merge 1 commit into
lotus-data:mainfrom
ShauryaVM:feat/operator-fusion

Conversation

@ShauryaVM

@ShauryaVM ShauryaVM commented Aug 12, 2026 •

Copy link
Copy Markdown

Two related planning tweaks:

  1. Operator fusion — OperatorFusionOptimizer AND-merges consecutive safe sem_filters into one LM call (skips anything with cascades/examples).
  2. Adaptive batching — when the agentic planner sees lots of tiny units, it suggests batched + a char-budgeted shard size instead of always going per-unit.

Neither path needs an LM to exercise; tests cover both.

How I tested

  • pytest tests/test_operator_fusion.py tests/test_agentic_map_reduce.py

Fuse consecutive sem_filters into one AND-ed LM call when safe, and suggest
batched shard sizes for tiny multi-unit agentic corpora from length stats.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ShauryaVM ShauryaVM changed the title Operator fusion + adaptive agentic batching Fuse consecutive filters; adaptive agentic batching Aug 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant