From 70af20a1760b78c7c513245ebd51dc19f2f5d6c7 Mon Sep 17 00:00:00 2001 From: BiswasNehaa Date: Tue, 30 Jun 2026 22:39:41 +0530 Subject: [PATCH] fix(examples): migrate basics_colab and agents_colab notebooks from granite3.3 to granite4.1:8b Signed-off-by: BiswasNehaa --- python/examples/notebooks/agents_colab.ipynb | 2 +- python/examples/notebooks/basics_colab.ipynb | 26 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/python/examples/notebooks/agents_colab.ipynb b/python/examples/notebooks/agents_colab.ipynb index 973167af3..3d4f1eece 100644 --- a/python/examples/notebooks/agents_colab.ipynb +++ b/python/examples/notebooks/agents_colab.ipynb @@ -136,7 +136,7 @@ "outputs": [], "source": [ "# Construct ChatModel\n", - "chat_model = ChatModel.from_name(\"ollama:granite3.3\")\n", + "chat_model = ChatModel.from_name(\"ollama:granite4.1:8b\")\n", "\n", "# Construct Agent instance with the chat model\n", "agent = RequirementAgent(llm=chat_model, tools=[], memory=UnconstrainedMemory())\n", diff --git a/python/examples/notebooks/basics_colab.ipynb b/python/examples/notebooks/basics_colab.ipynb index 9edb0ac31..d61b69273 100644 --- a/python/examples/notebooks/basics_colab.ipynb +++ b/python/examples/notebooks/basics_colab.ipynb @@ -256,13 +256,13 @@ ] }, { - "metadata": {}, "cell_type": "code", - "outputs": [], "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "# Construct ChatModel\n", - "model = ChatModel.from_name(\"ollama:granite3.3\")\n", + "model = ChatModel.from_name(\"ollama:granite4.1:8b\")\n", "\n", "question1 = \"Briefly explain quantum computing in simple terms with an example.\"\n", "message = UserMessage(content=question1)\n", @@ -274,10 +274,10 @@ ] }, { - "metadata": {}, "cell_type": "code", - "outputs": [], "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "question2 = \"Hello! Can you tell me what is the capital of France?\"\n", "message = UserMessage(content=question2)\n", @@ -305,10 +305,10 @@ ] }, { - "metadata": {}, "cell_type": "code", - "outputs": [], "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "memory = UnconstrainedMemory()\n", "question3 = \"If you had to recommend one thing to do there, what would it be?\"\n", @@ -341,10 +341,10 @@ ] }, { - "metadata": {}, "cell_type": "code", - "outputs": [], "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "# Some context that the model will use to provide an answer. Source wikipedia: https://en.wikipedia.org/wiki/Ireland\n", "context = \"\"\"The geography of Ireland comprises relatively low-lying mountains surrounding a central plain, with several navigable rivers extending inland.\n", @@ -381,10 +381,10 @@ ] }, { - "metadata": {}, "cell_type": "code", - "outputs": [], "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "# The output structure definition, note the field descriptions that can help the LLM to understand the intention of the field.\n", "class CharacterSchema(BaseModel):\n", @@ -421,10 +421,10 @@ ] }, { - "metadata": {}, "cell_type": "code", - "outputs": [], "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "pirate_message = \"You are pirate. You always respond using pirate slang.\"\n", "system_message = SystemMessage(content=pirate_message)\n",