We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2005923 commit 3b78e31Copy full SHA for 3b78e31
samples/embed.py
@@ -29,8 +29,8 @@ def test_embed_content(self):
29
print(result["embedding"])
30
# [END embed_content]
31
32
- def batch_embed_content(self):
33
- # [START batch_embed_content]
+ def batch_embed_contents(self):
+ # [START batch_embed_contents]
34
texts = [
35
"What is the meaning of life?",
36
"How much wood would a woodchuck chuck?",
@@ -40,7 +40,7 @@ def batch_embed_content(self):
40
model="models/text-embedding-004", content=texts, output_dimensionality=10
41
)
42
print(result)
43
- # [END batch_embed_content]
+ # [END batch_embed_contents]
44
45
46
if __name__ == "__main__":
0 commit comments