Skip to content

Commit 72c92cd

Browse files
committed
refactor(genai): Update README.md
1 parent e15b9bf commit 72c92cd

File tree

3 files changed

+41
-12
lines changed

3 files changed

+41
-12
lines changed

genai/README.md

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,74 @@ The samples are organized into the following categories:
1818

1919
### [Batch Prediction](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/batch_prediction/)
2020

21-
Demonstrates how to use batch prediction with Generative AI models. This allows efficient processing of large datasets. See the [Batch Prediction documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/batch-prediction-gemini) for more details.
21+
Demonstrates how to use batch prediction with Generative AI models. This allows efficient processing of large datasets.
22+
See the [Batch Prediction documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/batch-prediction-gemini)
23+
for more details.
2224

2325
### [Bounding Box](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/bounding_box/)
2426

25-
Demonstrates how to use Bounding Box with Generative AI models. This allows for object detection and localization within images and video. see the [Bounding Box documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/bounding-box-detection) for more details.
27+
Demonstrates how to use Bounding Box with Generative AI models. This allows for object detection and localization within
28+
images and video. see the [Bounding Box documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/bounding-box-detection)
29+
for more details.
2630

2731
### [Content Cache](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/content_cache/)
2832

29-
Illustrates how to create, update, use, and delete content caches. Caches store frequently used content to improve performance and reduce costs. See the [Content Cache documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-overview) for more information.
33+
Illustrates how to create, update, use, and delete content caches. Caches store frequently used content to improve
34+
performance and reduce costs. See the [Content Cache documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-overview)
35+
for more information.
3036

3137
### [Controlled Generation](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/controlled_generation/)
3238

33-
Provides examples of how to control various aspects of the generated content, such as length, format, safety attributes, and more. This allows for tailoring the output to specific requirements and constraints. See the [Controlled Generation documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/control-generated-output) for details.
39+
Provides examples of how to control various aspects of the generated content, such as length, format, safety attributes,
40+
and more. This allows for tailoring the output to specific requirements and constraints.
41+
See the [Controlled Generation documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/control-generated-output)
42+
for details.
3443

3544
### [Count Tokens](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/count_tokens/)
3645

37-
Shows how to estimate token usage for inputs and outputs of Generative AI models. Understanding token consumption is crucial for managing costs and optimizing performance. See the [Token Counting documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/list-token) for more details.
46+
Shows how to estimate token usage for inputs and outputs of Generative AI models. Understanding token consumption is
47+
crucial for managing costs and optimizing performance. See the [Token Counting documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/list-token)
48+
for more details.
3849

3950
### [Express Mode](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/express_mode/)
4051

41-
Demonstrates how to use Express Mode for simpler and faster interactions with Generative AI models using an API key. This mode is ideal for quick prototyping and experimentation. See the [Express Mode documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview) for details.
52+
Demonstrates how to use Express Mode for simpler and faster interactions with Generative AI models using an API key.
53+
This mode is ideal for quick prototyping and experimentation. See the [Express Mode documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview)
54+
for details.
4255

4356
### [Live API](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/live_api/)
4457

45-
Provides examples of using the Generative AI [Live API](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal-live-api). This allows for real-time interactions and dynamic content generation.
58+
Provides examples of using the Generative AI [Live API](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal-live-api).
59+
This allows for real-time interactions and dynamic content generation.
60+
61+
### [Provisioned Throughput](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/live_api/)
62+
63+
Provides examples demonstrating how to use Provisioned Throughput with Generative AI models. This feature provides a
64+
fixed-cost monthly subscription or weekly service that reserves throughput for supported generative AI models on Vertex AI.
65+
See the [Provisioned Throughput](https://cloud.google.com/vertex-ai/generative-ai/docs/provisioned-throughput) for details.
4666

4767
### [Safety](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/safety/)
4868

49-
Provides examples demonstrating how to configure and apply safety settings to Generative AI models. This includes techniques for content filtering and moderation to ensure responsible AI usage. See the [Safety documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-attributes) for details.
69+
Provides examples demonstrating how to configure and apply safety settings to Generative AI models. This includes
70+
techniques for content filtering and moderation to ensure responsible AI usage. See the
71+
[Safety documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-attributes)
72+
for details.
5073

5174
### [Text Generation](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/text_generation/)
5275

53-
Provides examples of generating text using various input modalities (text, images, audio, video) and features like asynchronous generation, chat, and text streaming. See the [Text Generation documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-chat-prompts-gemini) for details.
76+
Provides examples of generating text using various input modalities (text, images, audio, video) and features like
77+
asynchronous generation, chat, and text streaming. See the[Text Generation documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-chat-prompts-gemini)
78+
for details.
5479

5580
### [Tools](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/tools/)
5681

57-
Showcases how to use tools like function calling, code execution, and grounding with Google Search to enhance Generative AI interactions. See the [Tools documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling) for more information.
82+
Showcases how to use tools like function calling, code execution, and grounding with Google Search to enhance
83+
Generative AI interactions. See the [Tools documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling) for more information.
84+
85+
### [Video Generation](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/genai/video_generation/)
86+
87+
Provides examples of generating videos using text & images input modalities. See the
88+
[Video Generation documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/video/generate-videos) for details.
5889

5990
## Contributing
6091

genai/tools/tools_code_exec_with_txt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def generate_content() -> str:
5858
#
5959
# # Outcome:
6060
# fib_20=6765
61-
6261
# [END googlegenaisdk_tools_code_exec_with_txt]
6362
return response.executable_code
6463

genai/tools/tools_func_desc_with_txt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def generate_content() -> str:
8787
# ]
8888
# },
8989
# )]
90-
9190
# [END googlegenaisdk_tools_func_desc_with_txt]
9291
return str(response.function_calls[0])
9392

0 commit comments

Comments
 (0)