dspy.Ensemble¶
dspy.Ensemble(*, reduce_fn=None, size=None, deterministic=False) ¶
Bases: Teleprompter
A common reduce_fn is dspy.majority.
Source code in dspy/teleprompt/ensemble.py
Methods:¶
compile(programs) ¶
Source code in dspy/teleprompt/ensemble.py
get_params() -> dict[str, Any] ¶
Get the parameters of the teleprompter.
Returns:
| Type | Description |
|---|---|
dict[str, Any] | The parameters of the teleprompter. |