Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertex notebook: change answers to replies #74

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions notebooks/vertexai-gemini-examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"outputs": [],
"source": [
"result = gemini.run(parts = [\"What is the most interesting thing you know?\"])\n",
"for answer in result[\"answers\"]:\n",
"for answer in result[\"replies\"]:\n",
" print(answer)"
]
},
Expand Down Expand Up @@ -232,7 +232,7 @@
"outputs": [],
"source": [
"result = gemini.run(parts = [\"What can you tell me about this robots?\", *images])\n",
"for answer in result[\"answers\"]:\n",
"for answer in result[\"replies\"]:\n",
" print(answer)"
]
},
Expand Down Expand Up @@ -489,7 +489,7 @@
" \"ranker\": {\"query\": question},\n",
" \"fetcher\": {\"urls\": [\"https://haystack.deepset.ai/blog/introducing-haystack-2-beta-and-advent\"]}})\n",
"\n",
"for answer in result[\"gemini\"][\"answers\"]:\n",
"for answer in result[\"gemini\"][\"replies\"]:\n",
" print(answer)"
]
},
Expand Down