8000 feat(ingestion): default batch rollover to 10,000 items by jackaldenryan · Pull Request #604 · getzep/zep · GitHub
[go: up one dir, main page]

Skip to content

feat(ingestion): default batch rollover to 10,000 items - #604

Merged
jackaldenryan merged 1 commit into
mainfrom
jack/10k-episode-batch-max
Aug 19, 2026
Merged

jackaldenryan merged 1 commit into
mainfrom
jack/10k-episode-batch-max

Conversation

@jackaldenryan
Copy link
Copy Markdown
Contributor

Summary

  • Batch submission now rolls over at 10,000 items by default (DEFAULT_ITEMS_PER_BATCH) instead of filling to the API's 50,000-item cap.
  • The 50k API maximum remains available via max_items_per_batch on BatchSubmitter / submit_episodes; thread-message batches use the same 10k default.
  • Docs, changelog, and tests cover the new default while still asserting the 50k cap.

Test plan

  • Confirm BatchSubmitter and submit_episodes default to 10,000 and still accept up to 50,000
  • Confirm a run larger than 10k episodes creates multiple batches unless max_items_per_batch is raised

Made with Cursor

Keep the API's 50k cap available via max_items_per_batch, but roll over sooner so large ingestions do not fill a single batch.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Critical — ingestion/src/zep_ingest/threads.py, rollover hunk around line 215: DEFAULT_ITEMS_PER_BATCH is hard-coded, so ingest_thread_messages cannot request a larger batch. Likewise, Pipeline.run does not expose or forward the new submit_episodes(max_items_per_batch=...) option, meaning the documented configuration is unavailable through the package’s standard public ingestion APIs. This contradicts the changelog’s “Pass max_items_per_batch” guidance and forces extra batches. Add and validate this parameter on Pipeline.run and ingest_thread_messages, forward it to their batch submitters, and add public-API tests covering an override.

@jackaldenryan
jackaldenryan merged commit 8924ac8 into main Aug 19, 2026
17 checks passed
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

0