From e3e6cb752a5294b296d2fa968f7f51e4cf68bead Mon Sep 17 00:00:00 2001 From: Edward Donner Date: Tue, 10 Jun 2025 19:27:38 -0400 Subject: [PATCH] Fixes to imports and repo link thanks to Trung N --- week8/day2.0.ipynb | 13 ++++++++++++- week8/day2.1.ipynb | 3 +-- week8/day2.2.ipynb | 3 +-- week8/day2.3.ipynb | 28 ++++++++++++++++++++++++++-- week8/day2.4.ipynb | 25 +++++++++++++++++++++++++ week8/day4.ipynb | 4 ++-- 6 files changed, 67 insertions(+), 9 deletions(-) diff --git a/week8/day2.0.ipynb b/week8/day2.0.ipynb index 553880e..4f3b049 100644 --- a/week8/day2.0.ipynb +++ b/week8/day2.0.ipynb @@ -44,7 +44,6 @@ "from sentence_transformers import SentenceTransformer\n", "from datasets import load_dataset\n", "import chromadb\n", - "from items import Item\n", "from sklearn.manifold import TSNE\n", "import plotly.graph_objects as go" ] @@ -77,6 +76,18 @@ "login(hf_token, add_to_git_credential=True)" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "8491f550-df4a-4c8f-a260-a7a419e8efb6", + "metadata": {}, + "outputs": [], + "source": [ + "# Another import after Logging in to Hugging Face - thank you Trung N.!\n", + "\n", + "from items import Item" + ] + }, { "cell_type": "markdown", "id": "3d4995a4-f67f-4871-87df-8c6439b06366", diff --git a/week8/day2.1.ipynb b/week8/day2.1.ipynb index fac26d8..3151540 100644 --- a/week8/day2.1.ipynb +++ b/week8/day2.1.ipynb @@ -44,7 +44,6 @@ "from sentence_transformers import SentenceTransformer\n", "from datasets import load_dataset\n", "import chromadb\n", - "from items import Item\n", "from sklearn.manifold import TSNE\n", "import plotly.graph_objects as go" ] @@ -174,7 +173,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.11" + "version": "3.11.12" } }, "nbformat": 4, diff --git a/week8/day2.2.ipynb b/week8/day2.2.ipynb index f55ae2a..eebe634 100644 --- a/week8/day2.2.ipynb +++ b/week8/day2.2.ipynb @@ -44,7 +44,6 @@ "from sentence_transformers import SentenceTransformer\n", "from datasets import load_dataset\n", "import chromadb\n", - "from items import Item\n", "from sklearn.manifold import TSNE\n", "import plotly.graph_objects as go" ] @@ -166,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.11" + "version": "3.11.12" } }, "nbformat": 4, diff --git a/week8/day2.3.ipynb b/week8/day2.3.ipynb index b607e45..c2eeb34 100644 --- a/week8/day2.3.ipynb +++ b/week8/day2.3.ipynb @@ -48,7 +48,6 @@ "from sentence_transformers import SentenceTransformer\n", "from datasets import load_dataset\n", "import chromadb\n", - "from items import Item\n", "from testing import Tester" ] }, @@ -66,6 +65,31 @@ "os.environ['HF_TOKEN'] = os.getenv('HF_TOKEN', 'your-key-if-not-using-env')" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "ce73b034-9ec1-4533-ba41-3e57c7878b61", + "metadata": {}, + "outputs": [], + "source": [ + "# Log in to HuggingFace\n", + "\n", + "hf_token = os.environ['HF_TOKEN']\n", + "login(hf_token, add_to_git_credential=True)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4c01daad-86b0-4bc0-91ba-20a64df043ed", + "metadata": {}, + "outputs": [], + "source": [ + "# Another import after Logging in to Hugging Face - thank you Trung N.!\n", + "\n", + "from items import Item" + ] + }, { "cell_type": "code", "execution_count": null, @@ -495,7 +519,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.11" + "version": "3.11.12" } }, "nbformat": 4, diff --git a/week8/day2.4.ipynb b/week8/day2.4.ipynb index 90bff83..c315c78 100644 --- a/week8/day2.4.ipynb +++ b/week8/day2.4.ipynb @@ -84,6 +84,31 @@ "os.environ['HF_TOKEN'] = os.getenv('HF_TOKEN', 'your-key-if-not-using-env')" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "1006966f-96b7-4e1a-93f0-2bb9a09057c8", + "metadata": {}, + "outputs": [], + "source": [ + "# Log in to HuggingFace\n", + "\n", + "hf_token = os.environ['HF_TOKEN']\n", + "login(hf_token, add_to_git_credential=True)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "de0e4b22-ee61-4b79-95bc-3cd707d5f83d", + "metadata": {}, + "outputs": [], + "source": [ + "# Another import after Logging in to Hugging Face - thank you Trung N.!\n", + "\n", + "from items import Item" + ] + }, { "cell_type": "code", "execution_count": null, diff --git a/week8/day4.ipynb b/week8/day4.ipynb index bb4c993..22385a8 100644 --- a/week8/day4.ipynb +++ b/week8/day4.ipynb @@ -78,7 +78,7 @@ " \n", " \n", "

Additional resource: more sophisticated planning agent

\n", - " The Planning Agent that we use in the next cell is simply a python script that calls the other Agents; frankly that's all we require for this project. But if you're intrigued to see a more Autonomous version in which we give the Planning Agent tools and allow it to decide which Agents to call, see my implementation of AutonomousPlanningAgent in my related repo, Agentic. This is an example with multiple tools that dynamically decides which function to call.\n", + " The Planning Agent that we use in the next cell is simply a python script that calls the other Agents; frankly that's all we require for this project. But if you're intrigued to see a more Autonomous version in which we give the Planning Agent tools and allow it to decide which Agents to call, see my implementation of AutonomousPlanningAgent in my related repo, Agentic. This is an example with multiple tools that dynamically decides which function to call.\n", " \n", " \n", " \n", @@ -144,7 +144,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.11" + "version": "3.11.12" } }, "nbformat": 4,