From d9ab43e667af0a19449b83a0cce9503092f760e4 Mon Sep 17 00:00:00 2001 From: Tobias Wochinger Date: Tue, 5 Mar 2024 15:08:56 +0100 Subject: [PATCH] docs: fix line length issues --- .../generators/google_vertex/gemini.py | 20 +++++++++---------- .../google_vertex/text_generator.py | 4 +++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/integrations/google_vertex/src/haystack_integrations/components/generators/google_vertex/gemini.py b/integrations/google_vertex/src/haystack_integrations/components/generators/google_vertex/gemini.py index 39eb63bbf..4bb603e98 100644 --- a/integrations/google_vertex/src/haystack_integrations/components/generators/google_vertex/gemini.py +++ b/integrations/google_vertex/src/haystack_integrations/components/generators/google_vertex/gemini.py @@ -38,16 +38,16 @@ class VertexAIGeminiGenerator: for answer in result["answers"]: print(answer) - >>> 1. **The Origin of Life:** How and where did life begin? The answers to this question are still shrouded in mystery, but scientists continuously uncover new insights into the remarkable story of our planet's earliest forms of life. - >>> 2. **The Unseen Universe:** The vast majority of the universe is comprised of matter and energy that we cannot directly observe. Dark matter and dark energy make up over 95% of the universe, yet we still don't fully understand their properties or how they influence the cosmos. - >>> 3. **Quantum Entanglement:** This eerie phenomenon in quantum mechanics allows two particles to become so intertwined that they share the same fate, regardless of how far apart they are. This has mind-bending implications for our understanding of reality and could potentially lead to advancements in communication and computing. - >>> 4. **Time Dilation:** Einstein's theory of relativity revealed that time can pass at different rates for different observers. Astronauts traveling at high speeds, for example, experience time dilation relative to people on Earth. This phenomenon could have significant implications for future space travel. - >>> 5. **The Fermi Paradox:** Despite the vastness of the universe and the abundance of potential life-supporting planets, we have yet to find any concrete evidence of extraterrestrial life. This contradiction between scientific expectations and observational reality is known as the Fermi Paradox and remains one of the most intriguing mysteries in modern science. - >>> 6. **Biological Evolution:** The idea that life evolves over time through natural selection is one of the most profound and transformative scientific discoveries. It explains the diversity of life on Earth and provides insights into our own origins and the interconnectedness of all living things. - >>> 7. **Neuroplasticity:** The brain's ability to adapt and change throughout life, known as neuroplasticity, is a remarkable phenomenon that has important implications for learning, memory, and recovery from brain injuries. - >>> 8. **The Goldilocks Zone:** The concept of the habitable zone, or the Goldilocks zone, refers to the range of distances from a star within which liquid water can exist on a planet's surface. This zone is critical for the potential existence of life as we know it and has been used to guide the search for exoplanets that could support life. - >>> 9. **String Theory:** This theoretical framework in physics aims to unify all the fundamental forces of nature into a single coherent theory. It suggests that the universe has extra dimensions beyond the familiar three spatial dimensions and time. - >>> 10. **Consciousness:** The nature of human consciousness and how it arises from the brain's physical processes remain one of the most profound and elusive mysteries in science. Understanding consciousness is crucial for unraveling the complexities of the human mind and our place in the universe. + >>> 1. **The Origin of Life:** How and where did life begin? The answers to this ... + >>> 2. **The Unseen Universe:** The vast majority of the universe is ... + >>> 3. **Quantum Entanglement:** This eerie phenomenon in quantum mechanics allows ... + >>> 4. **Time Dilation:** Einstein's theory of relativity revealed that time can ... + >>> 5. **The Fermi Paradox:** Despite the vastness of the universe and the ... + >>> 6. **Biological Evolution:** The idea that life evolves over time through natural ... + >>> 7. **Neuroplasticity:** The brain's ability to adapt and change throughout life, ... + >>> 8. **The Goldilocks Zone:** The concept of the habitable zone, or the Goldilocks zone, ... + >>> 9. **String Theory:** This theoretical framework in physics aims to unify all ... + >>> 10. **Consciousness:** The nature of human consciousness and how it arises ... ``` """ def __init__( diff --git a/integrations/google_vertex/src/haystack_integrations/components/generators/google_vertex/text_generator.py b/integrations/google_vertex/src/haystack_integrations/components/generators/google_vertex/text_generator.py index b9388376f..41ff3165e 100644 --- a/integrations/google_vertex/src/haystack_integrations/components/generators/google_vertex/text_generator.py +++ b/integrations/google_vertex/src/haystack_integrations/components/generators/google_vertex/text_generator.py @@ -30,7 +30,9 @@ class VertexAITextGenerator: print(res["answers"][0]) - >>> **Question:** You are given a list of integers and a target sum. Find all unique combinations of numbers in the list that add up to the target sum. + >>> **Question:** + >>> You are given a list of integers and a target sum. + >>> Find all unique combinations of numbers in the list that add up to the target sum. >>> >>> **Example:** >>>