llmp.components.generator.verification.get_majority_vote_by_key¶
- llmp.components.generator.verification.get_majority_vote_by_key(outputs: list[Tuple[dict, dict]]) Tuple[dict, dict][source]¶
Returns the consensus for each key from a list of outputs.
Select the best output for each key based on the number of votes.