Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04a56e3

Browse files
authored
Link to models details page (google-gemini#194)
1 parent 1b2597e commit 04a56e3

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

google/generativeai/embedding.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,24 @@
3434
_EMBED_CONTENT_DOC = """Calls the API to create embeddings for content passed in.
3535
3636
Args:
37-
model: Which model to call, as a string or a `types.Model`.
37+
model:
38+
Which [model](https://ai.google.dev/models/gemini#embedding) to
39+
call, as a string or a `types.Model`.
3840
39-
content: Content to embed.
41+
content:
42+
Content to embed.
4043
41-
task_type: Optional task type for which the embeddings will be used. Can only be set for `models/embedding-001`.
44+
task_type:
45+
Optional task type for which the embeddings will be used. Can only
46+
be set for `models/embedding-001`.
4247
43-
title: An optional title for the text. Only applicable when task_type is `RETRIEVAL_DOCUMENT`.
48+
title:
49+
An optional title for the text. Only applicable when task_type is
50+
`RETRIEVAL_DOCUMENT`.
4451
4552
Return:
46-
Dictionary containing the embedding (list of float values) for the input content.
53+
Dictionary containing the embedding (list of float values) for the
54+
input content.
4755
"""
4856

4957
DEFAULT_EMB_MODEL = "models/embedding-001"

0 commit comments

Comments
 (0)