google/generative-ai-docs

Update examples to take advantage of batched embeddings.

Open

#147 geöffnet am 13. Okt. 2023

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Jupyter Notebook (746 Forks)github user discovery
component:demosgood first issuetype:feature request

Repository-Metriken

Stars
 (2.250 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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