Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TuanaCelik authored Dec 18, 2023
1 parent b28fc4d commit 7b99deb
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ import requests
from haystack.dataclasses.byte_stream import ByteStream
URLS = [
"<https://raw.githubusercontent.com/silvanocerza/robots/main/robot1.jpg>",
"<https://raw.githubusercontent.com/silvanocerza/robots/main/robot2.jpg>",
"<https://raw.githubusercontent.com/silvanocerza/robots/main/robot3.jpg>",
"<https://raw.githubusercontent.com/silvanocerza/robots/main/robot4.jpg>"
"https://raw.githubusercontent.com/silvanocerza/robots/main/robot1.jpg",
"https://raw.githubusercontent.com/silvanocerza/robots/main/robot2.jpg",
"https://raw.githubusercontent.com/silvanocerza/robots/main/robot3.jpg",
"https://raw.githubusercontent.com/silvanocerza/robots/main/robot4.jpg"
]
images = [
ByteStream(data=requests.get(url).content, mime_type="image/jpeg")
Expand Down Expand Up @@ -195,7 +195,7 @@ Once we have the pipeline, we can run it with a query about Haystack 2.0-Beta:
question = "What do graphs have to do with Haystack?"
result = pipeline.run({"prompt_builder": {"question": question},
"ranker": {"query": question},
"fetcher": {"urls": ["<https://haystack.deepset.ai/blog/introducing-haystack-2-beta-and-advent>"]}})
"fetcher": {"urls": ["https://haystack.deepset.ai/blog/introducing-haystack-2-beta-and-advent"]}})
for answer in result["gemini"]["answers"]:
print(answer)
Expand All @@ -206,4 +206,4 @@ Now you've seen some of what Gemini can do, as well as how to integrate it with

- Check out the Haystack 2.0 [docs](https://docs.haystack.deepset.ai/v2.0/docs) or [tutorials](https://haystack.deepset.ai/tutorials)
- Try out the [Gemini quickstart colab from Google](https://colab.research.google.com/github/google/generative-ai-docs/blob/main/site/en/tutorials/python_quickstart.ipynb#scrollTo=IqFXdgDFRvlU)
- Participate in the [Advent of Haystack](https://haystack.deepset.ai/advent-of-haystack)
- Participate in the [Advent of Haystack](https://haystack.deepset.ai/advent-of-haystack)

1 comment on commit 7b99deb

@vercel
Copy link

@vercel vercel bot commented on 7b99deb Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.