Skip to content

Commit

Permalink
Update example to use Gemini 1.5 flash
Browse files Browse the repository at this point in the history
  • Loading branch information
shilpakancharla committed May 21, 2024
1 parent 50676b9 commit c280dea
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions examples/prompting/Zero_shot_prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
"metadata": {
"id": "Ne-3gnXqR0hI"
},
"execution_count": null,
"execution_count": 1,
"outputs": []
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {
"id": "EconMHePQHGw"
},
Expand Down Expand Up @@ -91,7 +91,7 @@
"metadata": {
"id": "v-JZzORUpVR2"
},
"execution_count": null,
"execution_count": 3,
"outputs": []
},
{
Expand All @@ -108,12 +108,12 @@
{
"cell_type": "code",
"source": [
"model = genai.GenerativeModel('gemini-pro', generation_config={\"temperature\": 0})"
"model = genai.GenerativeModel('gemini-1.5-flash-latest', generation_config={\"temperature\": 0})"
],
"metadata": {
"id": "Ym4w9z3iWHlT"
},
"execution_count": null,
"execution_count": 4,
"outputs": []
},
{
Expand All @@ -128,20 +128,20 @@
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 97
"height": 144
},
"id": "J580DkQPVYYp",
"outputId": "0435e167-4cad-4c9a-ab60-369031d54dbd"
"outputId": "db5c5145-402a-49d4-bf3a-ad82fb6c0614"
},
"execution_count": null,
"execution_count": 5,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<IPython.core.display.Markdown object>"
],
"text/markdown": "1. Elephant\n2. Dog\n3. Fish"
"text/markdown": "Here's the list from biggest to smallest:\n\n1. **Elephant** \n2. **Dog**\n3. **Fish** \n\n(Note: This is a general comparison. There are many different types of fish, dogs, and elephants, and some fish can be larger than some dogs!) \n"
},
"metadata": {},
"execution_count": 5
Expand All @@ -163,17 +163,17 @@
"height": 46
},
"id": "K1we-_q4VZ0M",
"outputId": "3e8d7583-fe5b-4ca9-9b4c-4756ae80e86a"
"outputId": "13136e98-5c7f-4c75-956f-130703e708d9"
},
"execution_count": null,
"execution_count": 6,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<IPython.core.display.Markdown object>"
],
"text/markdown": "positive"
"text/markdown": "Positive \n"
},
"metadata": {},
"execution_count": 6
Expand All @@ -192,20 +192,20 @@
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 64
"height": 87
},
"id": "4NF2OmfPVa4l",
"outputId": "dbf599f6-68d7-4c00-86ce-5267dcf13d57"
"outputId": "e0000a7e-2491-4c01-a605-3884f2ce2a03"
},
"execution_count": null,
"execution_count": 7,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"<IPython.core.display.Markdown object>"
],
"text/markdown": "- Rome\n- Berlin"
"text/markdown": "The capital cities mentioned in the text are:\n\n* **Rome** (Italy)\n* **Berlin** (Germany) \n"
},
"metadata": {},
"execution_count": 7
Expand Down

0 comments on commit c280dea

Please sign in to comment.