Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sampath Kumar <[email protected]>
  • Loading branch information
holtskinner and msampathkumar authored Feb 20, 2025
1 parent 941194e commit e8bd7ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genai/embeddings/embed_content_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def embed_content() -> str:
# [START googlegenaisdk_embed_content_text]
# [START googlegenaisdk_embeddings_docretrieval_with_txt]
from google import genai
from google.genai.types import EmbedContentConfig

Expand All @@ -37,7 +37,7 @@ def embed_content() -> str:
# embeddings=[ContentEmbedding(values=[-0.06302902102470398, 0.00928034819662571, 0.014716853387653828, -0.028747491538524628, ... ],
# statistics=ContentEmbeddingStatistics(truncated=False, token_count=13.0))]
# metadata=EmbedContentMetadata(billable_character_count=112)
# [END googlegenaisdk_embed_content_text]
# [END googlegenaisdk_embeddings_docretrieval_with_txt]
return response


Expand Down

0 comments on commit e8bd7ef

Please sign in to comment.