Skip to content

Google Generative AI Embeddings

Google Generative AI Embeddings turns text into a numeric fingerprint of its meaning using Google Gemini models. With that fingerprint, NappAI can find the documents that say something similar to what you are looking for, even when they use different words, for example in a knowledge base.

You connect the component to a vector database, which uses it both to store your documents and to search them. Use it if your company works with Google Gemini.

When to use it

  • Give an agent the knowledge in your manuals, contracts or FAQs by storing them in a vector database.
  • Build an internal search that finds documents by their meaning, not only by exact words.
  • You already use Google Gemini as your AI model and want to use the same account.

Configuration

FieldWhat it does
Credential (required)The credential of the service Google Gemini. Pick one with Choose an option or create one with Add new credential. See Credentials.
Model NameThe name of the Gemini model that calculates the fingerprints. Default: models/gemini-embedding-001.

Output

Example

A language school, Academia Lingua, wants its assistant to answer using its internal rules and its course sheets.

  1. In a loading flow, split the documents into chunks with Recursive Character Text Splitter and pass them to Chroma DB with Operation set to Add.
  2. Add Google Generative AI Embeddings and connect its Embeddings output to the Embedding input of Chroma DB.
  3. In the assistant flow, use the same Chroma DB collection with the same Google Generative AI Embeddings component to find the chunks that answer each question.