google / google/generative-ai-docs
Update examples to take advantage of batched embeddings.
Open
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
Assessment
This issue has not been assessed yet.