Skip to content

This module implements the Gemini Embedding model as described in the research paper "Gemini Embedding: Generalizable Embeddings from Gemini" (2025).

License

Notifications You must be signed in to change notification settings

kyegomez/GeminiEmbeddingModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gemini Embedding Model Implementation

This module implements the Gemini Embedding model as described in the research paper "Gemini Embedding: Generalizable Embeddings from Gemini" (2025).

The Gemini Embedding model creates holistic representations of inputs for diverse downstream tasks, including retrieval, clustering, classification, and ranking by leveraging the power of Gemini's transformer architecture.

Key components:

  • Transformer backbone initialized from Gemini
  • Mean pooling strategy for token embeddings
  • Linear projection to target dimension
  • Noise-contrastive estimation loss with in-batch negatives
  • Multi-resolution loss (MRL) for supporting different embedding dimensions

About

This module implements the Gemini Embedding model as described in the research paper "Gemini Embedding: Generalizable Embeddings from Gemini" (2025).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages