dspy
dspy copied to clipboard
Can't save Compiled KNNFewShot Examples
Hi,
I tried the following but just got an empty json:
knn_fewshot = KNNFewShot(KNN, k=8, trainset=train)
compiled_knn_fewshot = knn_fewshot.compile(Hotpot, trainset=train)
compiled_knn_fewshot.save(f"Hotpot-knn-demos.json")
This would help in not having to repeat the knn search everytime?