dspy.LabeledFewShot¶
dspy.LabeledFewShot(k=16) ¶
Bases: Teleprompter
Methods:¶
compile(student, *, trainset, sample=True) ¶
Source code in dspy/teleprompt/vanilla.py
get_params() -> dict[str, Any] ¶
Get the parameters of the teleprompter.
Returns:
| Type | Description |
|---|---|
dict[str, Any] | The parameters of the teleprompter. |