DSPy: The framework for programming—not prompting—language models
Python
Update README.md
Omar Khattab072b20e5daca
diff --git a/README.md b/README.mdindex 99f7be5e9..bf5e9d5d8 100644--- a/README.md+++ b/README.md@@ -19,7 +19,7 @@**DSPy** helps by separating the flow of your program (`modules`) from the parameters (prompt instructions, few-shot examples, and LM weights), which DSPy `optimizers` can tune if you give them an objective. This creates a systematic space of modular and trainable pieces, instead of hacky 'prompt engineering'. We draw on lessons from DNN abstractions, particularly PyTorch. We want the community to think in terms of modules, or layers with parameters, not prompting tricks. And to think in terms of optimizers, not prompt hacking or one-off synthetic data generators.-Using **DSPy** is an iterative process. In all likelihood, it's not a drop-in replacement for your current workflow. You must start by defining the task you want to solve and the metrics you want to maximize. Then, select built-in layers (`modules`) to use, give each layer a `signature` (input/output spec), and then simply call your modules in free-form Python code to define your control flow. Lastly, use one of the DSPy `optimizers` to compile your code into high-quality instructions, automatic few-shot examples, updated LM weights for large or small LMs.+Using **DSPy** is an iterative process. You must start by defining the task you want to solve and the metrics you want to maximize. Then, select built-in layers (`modules`) to use, give each layer a `signature` (input/output spec), and then simply call your modules in free-form Python code to define your control flow. Lastly, use one of the DSPy `optimizers` to compile your code into high-quality instructions, automatic few-shot examples, updated LM weights for large or small LMs.For complex tasks, **DSPy** can routinely teach powerful models like `GPT-3.5` and local models like `T5-base` or `Llama2-13b` to be much more reliable at tasks. **DSPy** will compile the _same program_ into different few-shot prompts and/or finetunes for each LM.