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 d7ab25f commit e2aa540Copy full SHA for e2aa540
genai/embeddings/embeddings_docretrieval_with_txt.py
@@ -21,7 +21,11 @@ def embed_content() -> str:
21
client = genai.Client()
22
response = client.models.embed_content(
23
model="gemini-embedding-001",
24
- contents="How do I get a driver's license/learner's permit?",
+ contents=[
25
+ "How do I get a driver's license/learner's permit?",
26
+ "How long is my driver's license valid for?",
27
+ "Driver's knowledge test study guide",
28
+ ],
29
config=EmbedContentConfig(
30
task_type="RETRIEVAL_DOCUMENT", # Optional
31
output_dimensionality=3072, # Optional
0 commit comments