dspy.KNNFewShot
dspy.KNNFewShot(k: int, trainset: list, vectorizer=None, **few_shot_bootstrap_args)
Bases: Teleprompter
dspy.KNNFewShot(k: int, trainset: list, vectorizer=None, **few_shot_bootstrap_args)
Bases: Teleprompter
dspy/teleprompt/knn_fewshot.py
compile(student, *, teacher=None, trainset=None, valset=None)
dspy/teleprompt/knn_fewshot.py