DSPy: The framework for programming—not prompting—language models
Python
Update README.md
Omar Khattabde9a3b90225f
diff --git a/README.md b/README.mdindex 7b0681adc..2989d1874 100644--- a/README.md+++ b/README.md@@ -2,7 +2,7 @@The **DSP** framework provides a programming abstraction for rapidly building reliable AI systems with language models (LMs) and retrieval models (RMs). You write a **DSP program** in a few lines of code, which describes at high level how the problem (e.g., answering complex questions about the world) should be decomposed. The program calls a number of small transformations (e.g., `generate a search query to find missing information`) that the LM or RM can handle much more reliably than the overarching problem. Our [research paper](https://arxiv.org/abs/2212.14024) show this can easily lead to up to 120% gains over GPT-3.-**DSP** takes in-context learning to the next level, and it's been demonstrated to help considerably for knowledge-intensive tasks — i.e., those that require search, like answering questions or researching complex topics. Unlike vanilla in-context learning, you do not hard-code any few-shot prompts in **DSP**. We view "prompt engineering" much the same way as hyperparameter tuning in traditional ML: it's a final (and relatively minor) step that's best done _after_ building up an effective architecture and connecting its components together.+**DSP** programs take in-context learning to the next level, and they've been demonstrated to work well for knowledge-intensive tasks — i.e., those that require search, like answering questions or researching complex topics. Unlike vanilla in-context learning, you do not hard-code any few-shot prompts. We view "prompt engineering" much the same way as hyperparameter tuning in traditional ML: it's a final (and relatively minor) step that's best done _after_ building up an effective architecture and connecting its components together.**DSP** provides a high-level abstraction for building these architectures — with LMs and search. It offers a number of powerful primitives that get the transformations you build working together on your behalf. For instance, **DSP** *annotates* few-shot demonstrations for the LM calls within your arbitrary pipeline automatically. And once you're happy with things, **DSP** can *compile* your program into a much smaller LM that's much cheaper to deploy.