google/generative-ai-docs

Update examples to take advantage of batched embeddings.

Open

#147 aperta il 13 ott 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Jupyter Notebook (746 fork)github user discovery
component:demosgood first issuetype:feature request

Metriche repository

Star
 (2250 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor