BigHugger
sk Skill · lebsral

dspy-knn-few-shot

Select the most relevant few-shot demonstrations for each input at runtime using dspy.KNNFewShot and dspy.KNN — embedding-based retrieval that adapts demos per query. Use when you want few-shot demos dynamically selected per input based on similarity, inputs vary widely and fixed examples do not cover enough cases, dynamically selecting the most relevant demos per input, building a retrieval-augmented prompt with…

installs 8w
0
30-day movement
starts with the next reading
Related entries
1
Connections
0
pythonPython
Host repository
lebsral/DSPy-Programming-not-prompting-LMs-skills
Host stars
11
Host language
Python