dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Clean up knn related functionalities a bit

Open XiaoConstantine opened this issue 9 months ago • 0 comments

Clean up predict/knn and teleprompt/knn_fewshot:

  • Added a optional vectorizer instead of using hardcoded SentenceTransformer one
  • Clean up constructor a bit

XiaoConstantine avatar Apr 29 '24 18:04 XiaoConstantine