dspy.InferRules¶
dspy.InferRules(num_candidates=10, num_rules=10, num_threads=None, teacher_settings=None, **kwargs) ¶
Bases: BootstrapFewShot
Source code in dspy/teleprompt/infer_rules.py
Methods:¶
compile(student, *, teacher=None, trainset, valset=None) ¶
Source code in dspy/teleprompt/infer_rules.py
evaluate_program(program, dataset) ¶
Source code in dspy/teleprompt/infer_rules.py
format_examples(demos, signature) ¶
Source code in dspy/teleprompt/infer_rules.py
get_params() -> dict[str, Any] ¶
Get the parameters of the teleprompter.
Returns:
| Type | Description |
|---|---|
dict[str, Any] | The parameters of the teleprompter. |