Conversation
The Sharded/Parallel Counting feature solves the problem of monolithic, complex prompts during the "Counting" phase of data extraction. The pipeline now natively supports passing a list[str] of multiple specialized prompts for a single step. The system executes these prompts concurrently (in "shards"), achieves consensus on each shard individually, and then merges and deduplicates the final results. - Serialization Utils: Allow `resolve_step_param` to return `list[str]`. - Direct Execution: Updated `count_entities` to detect lists, spawn shards concurrently via `asyncio.gather`, and merge/deduplicate via sorted JSON hashing. - Batch API Submission: Dynamic request generation tags sharded requests with `_shard_X` and flattens them for unified submission. - Batch API Fulfillment: Uses regex to group results into shard buckets, achieves per-shard consensus, and deduplicates the merged output. Fixed a `BatchProcessResult` model bug lacking the `errors` field.
|
Codecov Report❌ Patch coverage is
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
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.
No description provided.