Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Add REST embeddings & system_instruction sample#429

Merged
MarkDaoust merged 3 commits intogoogle-gemini:mainfrom
shilpakancharla:embeddings_rest
Jul 23, 2024
Merged

Add REST embeddings & system_instruction sample#429
MarkDaoust merged 3 commits intogoogle-gemini:mainfrom
shilpakancharla:embeddings_rest

Conversation

@shilpakancharla
Copy link
Contributor

@shilpakancharla shilpakancharla commented Jul 3, 2024

Description of the change

Adding REST embeddings sample for embed and batch_embed.

Also adding the system_instruction sample as well here because I forgot to make a new branch - sorry!

Do we need to demonstrate output_dimensionality and task_type in this sample as well?

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:python sdk Issue/PR related to Python SDK labels Jul 3, 2024
@shilpakancharla shilpakancharla changed the title Add REST embeddings sample Add REST embeddings & system_instruction sample Jul 3, 2024
set -eu

echo "[START embed]"
# [START embed]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to use the same tags as in the sheet:

ebed_content and batch_embed_contents

@MarkDaoust MarkDaoust merged commit 5b31be7 into google-gemini:main Jul 23, 2024
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

component:python sdk Issue/PR related to Python SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants