From 0b8eb7227d263f09e0ea07b34550c7ff31ca8b8f Mon Sep 17 00:00:00 2001 From: anakin87 Date: Wed, 27 Mar 2024 15:51:05 +0100 Subject: [PATCH] update Gemini article: answers>replies --- .../gemini-models-with-google-vertex-for-haystack/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/blog/gemini-models-with-google-vertex-for-haystack/index.md b/content/blog/gemini-models-with-google-vertex-for-haystack/index.md index e85a3e31..5d01a342 100644 --- a/content/blog/gemini-models-with-google-vertex-for-haystack/index.md +++ b/content/blog/gemini-models-with-google-vertex-for-haystack/index.md @@ -68,7 +68,7 @@ images = [ ] result = gemini.run(parts = ["What can you tell me about this robots?", *images]) -for answer in result["answers"]: +for answer in result["replies"]: print(answer) ``` @@ -198,7 +198,7 @@ result = pipeline.run({"prompt_builder": {"question": question}, "ranker": {"query": question}, "fetcher": {"urls": ["https://haystack.deepset.ai/blog/introducing-haystack-2-beta-and-advent"]}}) -for answer in result["gemini"]["answers"]: +for answer in result["gemini"]["replies"]: print(answer) ```