Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Merge to main. Upgrade setup.py to 2.0.0-beta.1

Omar Khattab28c303cbc5d4
diff --git a/README.md b/README.md
index eb3b119d4..e9b7b5df4 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
# DSPy: The Framework for Programming with Foundation Models
-[<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/stanfordnlp/dspy/blob/v2/intro.ipynb)
+[<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/stanfordnlp/dspy/blob/main/intro.ipynb)
**DSPy** is the framework for _programming_ with language models (LMs) and retrieval models (RMs) to tackle any task. **DSPy** unifies techniques for **prompting** and **fine-tuning** LMs as well as improving them with **reasoning** and **tool/retrieval augmentation**, all expressed through a _minimalistic set of Pythonic operations that compose and learn_.
@@ -51,7 +51,7 @@ All you need is:
pip install dspy-ai
```
-Or open our intro notebook in Google Colab: [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/stanfordnlp/dspy/blob/v2/intro.ipynb)
+Or open our intro notebook in Google Colab: [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/stanfordnlp/dspy/blob/main/intro.ipynb)
> _Note: If you're looking for Demonstrate-Search-Predict (DSP), which is the previous version of DSPy, you can find it on the [v1](https://github.com/stanfordnlp/dspy/tree/v1) branch of this repo._
@@ -192,7 +192,7 @@ If we now use `compiled_rag`, it will invoke our LM with rich prompts with few-s
While we work on new tutorials and documentation, please check out **[our intro notebook](intro.ipynb)**.
-Or open it directly in free Google Colab: [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/stanfordnlp/dspy/blob/v2/intro.ipynb)
+Or open it directly in free Google Colab: [<img align="center" src="https://colab.research.google.com/assets/colab-badge.svg" />](https://colab.research.google.com/github/stanfordnlp/dspy/blob/main/intro.ipynb)
diff --git a/intro.ipynb b/intro.ipynb
index 0b21fd60f..9aec16502 100644
--- a/intro.ipynb
+++ b/intro.ipynb
@@ -8,11 +8,7 @@
"\n",
"## **DSPy**: Programming with Foundation Models\n",
"\n",
- "[<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/stanfordnlp/dspy/blob/v2/intro.ipynb)\n",
- "\n",
- "!! TODO: Fix the Colab link from branch v2 to main when we push to main\n",
- "\n",
- "!! TODO: Fix the setting up thing when merged too"
+ "[<img align=\"center\" src=\"https://colab.research.google.com/assets/colab-badge.svg\" />](https://colab.research.google.com/github/stanfordnlp/dspy/blob/main/intro.ipynb)"
]
},
{
@@ -52,7 +48,7 @@
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
" import google.colab\n",
" repo_path = 'dspy'\n",
- " !git -C $repo_path pull origin v2 || git clone -b v2 https://github.com/stanfordnlp/dspy $repo_path\n",
+ " !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",
"except:\n",
" repo_path = '.'\n",
"\n",
diff --git a/setup.py b/setup.py
index 09a836deb..c4ecdf0b0 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name="dspy-ai",
- version="2.0.0-alpha",
+ version="2.0.0-beta.1",
description="DSPy",
url="https://github.com/stanfordnlp/dsp",
author="Omar Khattab",