Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Update README with a link on KNN example

Igor Kotenkovf4360fdf855b
diff --git a/README.md b/README.md
index 8332e354f..9bc27c459 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,10 @@ Our [compiler notebook](compiler.ipynb) introduces the new experimental compiler
You can [open the compiler notebook in Google Colab](https://colab.research.google.com/github/stanfordnlp/dsp/blob/main/compiler.ipynb). You don't even need an API key to get started with it.
+## [NEW!] Picking in-context examples using KNN/ANN methods
+
+Our [knn demo notebook](tests/knn_demonstrations_test.ipynb) provides examples of adding the KNN stage, as described in the paper. This improvement in the Demonstrate stage of DSP allows you not to sample Examples randomly but instead search for better and similar options. You can get an idea from [this paper](https://arxiv.org/abs/2101.06804).
+
## ✍️ Reference
If you use DSP in a research paper, please cite our work as follows: