DSPy: The framework for programming—not prompting—language models
Python
Update README.md
Omar Khattabcc3eee23189b
diff --git a/README.md b/README.mdindex cc61deea4..a0a402a7f 100644--- a/README.md+++ b/README.md@@ -24,7 +24,7 @@✅ **Metrics** and **Assertions**: Automatic feedback and retries✅ **Optimizers**: Automatic tuning for instructions, few-shot examples, and LM weights in multi-step programs-Instead of "prompt engineering" with hacky strings, you should explore a systematic space of modular and trainable pieces. **DSPy** proposes many new design patterns for how to do this, depending on your task complexity and amount of data you have (if any). You select built-in layers (`modules`) to use, and give each layer a `signature` (input/output spec). You then simply call your modules in free-form Python code to define your control flow. Lastly, you decide on your `metric` and you use one of the DSPy `optimizers` to compile your high-level code into high-quality instructions, automatic few-shot examples, updated LM weights for large or small LMs.+Instead of "prompt engineering" with hacky strings, you should explore a systematic space of modular and trainable pieces. You select built-in layers (`modules`) to use, and give each layer a `signature` (input/output spec). You then simply call your modules in free-form Python code to define your control flow. Lastly, you decide on your `metric` and you use one of the DSPy `optimizers` to compile your high-level 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.