Skip to content

Commit

Permalink
fix assertions notebook import
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavsinghvi11 committed Sep 23, 2024
1 parent e114073 commit 7d65f2a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
22 changes: 11 additions & 11 deletions examples/longformqa/longformqa_assertions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@
"Let's begin by setting things up."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import openai\n",
"openai.api_key = os.getenv('OPENAI_API_KEY')"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -98,6 +87,17 @@
"from utils import extract_text_by_citation, citations_check"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import openai\n",
"openai.api_key = os.getenv('OPENAI_API_KEY')"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
22 changes: 11 additions & 11 deletions examples/quiz/quiz_assertions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@
"This notebook builds upon the foundational concepts of the **DSPy** framework. Prerequisites of following this notebook is having gone through the [DSPy tutorial](../../intro.ipynb), the [**DSPy Assertions documentation**](https://dspy-docs.vercel.app/docs/building-blocks/assertions) and the introductory DSPy Assertions [tutorial on LongFormQA](../longformqa/longformqa_assertions.ipynb).\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import openai\n",
"openai.api_key = os.getenv('OPENAI_API_KEY')"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -75,6 +64,17 @@
"from dspy.primitives.assertions import assert_transform_module, backtrack_handler"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import openai\n",
"openai.api_key = os.getenv('OPENAI_API_KEY')"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
22 changes: 11 additions & 11 deletions examples/tweets/tweets_assertions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@
"This notebook builds upon the foundational concepts of the **DSPy** framework. Prerequisites of following this notebook is having gone through the [DSPy tutorial](../../intro.ipynb), the [**DSPy Assertions documentation**](https://dspy-docs.vercel.app/docs/building-blocks/assertions) and the introductory DSPy Assertions [tutorial on LongFormQA](../longformqa/longformqa_assertions.ipynb).\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import openai\n",
"openai.api_key = os.getenv('OPENAI_API_KEY')"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -76,6 +65,17 @@
"from dspy.primitives.assertions import assert_transform_module, backtrack_handler"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import openai\n",
"openai.api_key = os.getenv('OPENAI_API_KEY')"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 7d65f2a

Please sign in to comment.