google / google/generative-ai-docs

Update examples to take advantage of batched embeddings.

Open
#147 0 comments 0 reactions 0 assignees View on GitHub
component:demos good first issue type:feature request
Dominant language
Jupyter Notebook
Stars
2.3k
Forks
735
PR merge metrics
No merged PRs in 30d

Description

### Description of the feature request:

There are several examples that loop over chunks of text and call `embed_text` on each one.

These should pass lists of chunks to `embed_text`, and embed text will return lists of vectors.

### What problem are you trying to solve with this feature?

_No response_

### Any other information you'd like to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.