Content-Length: 361536 | pFad | https://github.com/googleapis/python-aiplatform/commit/42af742d808abdca56b84b3381388a36c8454f1b

2B docs: GenAI - Update README.md for Vertex Generative AI SDK for Pytho… · googleapis/python-aiplatform@42af742 · GitHub
Skip to content

Commit 42af742

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
docs: GenAI - Update README.md for Vertex Generative AI SDK for Python to add subsections to the right nav.
PiperOrigin-RevId: 651457939
1 parent 2aa221e commit 42af742

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

vertexai/generative_models/README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Vertex Generative AI SDK for Python
2+
23
The Vertex Generative AI SDK helps developers use Google's generative AI
34
[Gemini models](http://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/overview)
45
and [PaLM language models](http://cloud.google.com/vertex-ai/docs/generative-ai/language-model-overview)
@@ -23,19 +24,22 @@ pip3 install --upgrade --user "google-cloud-aiplatform>=1.38"
2324

2425
For detailed instructions, see [quickstart](http://cloud.google.com/vertex-ai/docs/generative-ai/start/quickstarts/quickstart-multimodal) and [Introduction to multimodal classes in the Vertex AI SDK](http://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/sdk-for-gemini/gemini-sdk-overview-reference).
2526

26-
#### Imports:
27+
### Imports
28+
2729
```python
2830
from vertexai.generative_models import GenerativeModel, Image, Content, Part, Tool, FunctionDeclaration, GenerationConfig
2931
```
3032

31-
#### Basic generation:
33+
### Basic generation
34+
3235
```python
3336
from vertexai.generative_models import GenerativeModel
3437
model = GenerativeModel("gemini-pro")
3538
print(model.generate_content("Why is sky blue?"))
3639
```
3740

38-
#### Using images and videos
41+
### Using images and videos
42+
3943
```python
4044
from vertexai.generative_models import GenerativeModel, Image
4145
vision_model = GenerativeModel("gemini-pro-vision")
@@ -53,7 +57,8 @@ video_part = Part.from_uri("gs://cloud-samples-data/video/animals.mp4", mime_typ
5357
print(vision_model.generate_content(["What is in the video? ", video_part]))
5458
```
5559

56-
#### Chat
60+
### Chat
61+
5762
```
5863
from vertexai.generative_models import GenerativeModel, Image
5964
vision_model = GenerativeModel("gemini-ultra-vision")
@@ -63,7 +68,8 @@ print(vision_chat.send_message(["I like this image.", image]))
6368
print(vision_chat.send_message("What things do I like?."))
6469
```
6570

66-
#### System instructions
71+
### System instructions
72+
6773
```
6874
from vertexai.generative_models import GenerativeModel
6975
model = GenerativeModel(
@@ -76,7 +82,7 @@ model = GenerativeModel(
7682
print(model.generate_content("Why is sky blue?"))
7783
```
7884

79-
#### Function calling
85+
### Function calling
8086

8187
```
8288
# First, create tools that the model is can use to answer your questions.
@@ -130,7 +136,7 @@ print(chat.send_message(
130136
```
131137

132138

133-
#### Automatic Function calling
139+
### Automatic Function calling
134140

135141
```
136142
from vertexai.preview.generative_models import GenerativeModel, Tool, FunctionDeclaration, AutomaticFunctionCallingResponder

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-aiplatform/commit/42af742d808abdca56b84b3381388a36c8454f1b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy