google/generative-ai-docs

Update examples to take advantage of batched embeddings.

Aberta

#147 aberto em 13 de out. de 2023

 (0 comentário) (0 reação) (0 responsável)Jupyter Notebook (746 forks)github user discovery
component:demosgood first issuetype:feature request

Métricas do repositório

Stars
 (2.250 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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

Guia do colaborador