Repository navigation
feat(ingestion): default batch rollover to 10,000 items - #604
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
- Critical —
ingestion/src/zep_ingest/threads.py, rollover hunk around line 215:DEFAULT_ITEMS_PER_BATCHis hard-coded, soingest_thread_messagescannot request a larger batch. Likewise,Pipeline.rundoes not expose or forward the newsubmit_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 “Passmax_items_per_batch” guidance and forces extra batches. Add and validate this parameter onPipeline.runandingest_thread_messages, forward it to their batch submitters, and add public-API tests covering an override.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DEFAULT_ITEMS_PER_BATCH) instead of filling to the API's 50,000-item cap.max_items_per_batchonBatchSubmitter/submit_episodes; thread-message batches use the same 10k default.Test plan
BatchSubmitterandsubmit_episodesdefault to 10,000 and still accept up to 50,000max_items_per_batchis raisedMade with Cursor