DSPy: The framework for programming—not prompting—language models
Python
colab fix
Arnav Singhvi24a981eaa4fe
diff --git a/examples/dataloaders/dataloaders_dolly.ipynb b/examples/dataloaders/dataloaders_dolly.ipynbindex e6b3fe795..e8c19f249 100644--- a/examples/dataloaders/dataloaders_dolly.ipynb+++ b/examples/dataloaders/dataloaders_dolly.ipynb@@ -46,6 +46,7 @@"import os\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n","except:\n",diff --git a/examples/longformqa/longformqa_assertions.ipynb b/examples/longformqa/longformqa_assertions.ipynbindex 47008051f..9dd3e9e57 100644--- a/examples/longformqa/longformqa_assertions.ipynb+++ b/examples/longformqa/longformqa_assertions.ipynb@@ -79,6 +79,7 @@"import regex as re\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n"," \n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",diff --git a/examples/nli/scone/scone_with_MIPRO.ipynb b/examples/nli/scone/scone_with_MIPRO.ipynbindex 7f9079ec4..5f9668631 100644--- a/examples/nli/scone/scone_with_MIPRO.ipynb+++ b/examples/nli/scone/scone_with_MIPRO.ipynb@@ -93,6 +93,7 @@"import os\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n","\n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",diff --git a/examples/qa/hotpot/hotpotqa_with_MIPRO.ipynb b/examples/qa/hotpot/hotpotqa_with_MIPRO.ipynbindex d79fa9fa3..9f7c5acd0 100644--- a/examples/qa/hotpot/hotpotqa_with_MIPRO.ipynb+++ b/examples/qa/hotpot/hotpotqa_with_MIPRO.ipynb@@ -93,6 +93,7 @@"import os\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n","\n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",diff --git a/examples/quiz/quiz_assertions.ipynb b/examples/quiz/quiz_assertions.ipynbindex 82a15caa8..086d8268b 100644--- a/examples/quiz/quiz_assertions.ipynb+++ b/examples/quiz/quiz_assertions.ipynb@@ -61,6 +61,7 @@"import json\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n"," \n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",diff --git a/examples/tweets/tweets_assertions.ipynb b/examples/tweets/tweets_assertions.ipynbindex 9ad6ad824..5f96f592b 100644--- a/examples/tweets/tweets_assertions.ipynb+++ b/examples/tweets/tweets_assertions.ipynb@@ -61,6 +61,7 @@"import regex as re\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n"," \n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",diff --git a/intro.ipynb b/intro.ipynbindex 3a74da415..a2aae64e1 100644--- a/intro.ipynb+++ b/intro.ipynb@@ -46,6 +46,7 @@"import os\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n","except:\n",diff --git a/skycamp2023.ipynb b/skycamp2023.ipynbindex b09fef897..2fe79aace 100644--- a/skycamp2023.ipynb+++ b/skycamp2023.ipynb@@ -31,6 +31,7 @@"import os\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n","except:\n",diff --git a/skycamp2023_completed.ipynb b/skycamp2023_completed.ipynbindex bb194da81..1dd486541 100644--- a/skycamp2023_completed.ipynb+++ b/skycamp2023_completed.ipynb@@ -31,6 +31,7 @@"import os\n","\n","try: # When on google Colab, let's clone the notebook so we download the cache.\n",+ " import google.colab # noqa: F401\n"," repo_path = 'dspy'\n"," !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n","except:\n",