Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

update RAG tutorial to avoid broken inner links

Omar Khattabdee932be26bf
diff --git a/docs/docs/tutorials/rag/index.ipynb b/docs/docs/tutorials/rag/index.ipynb
index f4adc8935..5a170a013 100644
--- a/docs/docs/tutorials/rag/index.ipynb
+++ b/docs/docs/tutorials/rag/index.ipynb
@@ -31,7 +31,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "## Exploring some basic DSPy `Module`s.\n",
+ "## Exploring some basic DSPy Modules.\n",
"\n",
"You can always prompt the LM directly via `lm(prompt=\"prompt\")` or `lm(messages=[...])`. However, DSPy gives you `Modules` as a better way to define your LM functions.\n",
"\n",
@@ -200,7 +200,7 @@
"\n",
"That said, you're likely here because you want to build a high-quality system and improve it over time. The way to do that in DSPy is to iterate fast by evaluating the quality of your system and using DSPy's powerful tools, e.g. [Optimizers](/building-blocks/6-optimizers). You can learn about the [appropriate development cycle in DSPy here](/building-blocks/solving_your_task).\n",
"\n",
- "## Manipulating `Example`s in DSPy.\n",
+ "## Manipulating Examples in DSPy.\n",
"\n",
"To measure the quality of your DSPy system, you need (1) a bunch of input values, like `question`s for example, and (2) a `metric` that can score the quality of an output from your system. Metrics vary widely. Some metrics need ground-truth labels of ideal outputs, e.g. for classification or question answering. Other metrics are self-supervised, e.g. checking faithfulness or lack of hallucination, perhaps using a DSPy program as a judge of these qualities.\n",
"\n",
@@ -957,7 +957,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "## Using a DSPy `Optimizer` to improve your RAG prompt.\n",
+ "## Using a DSPy Optimizer to improve your RAG prompt.\n",
"\n",
"Off the shelf, our `RAG` module scores nearly 50%. What are our options to make it stronger? One of the various choices DSPy offers is optimizing the prompts in our pipeline.\n",
"\n",