GoogleEmbeddings class
Google Embeddings capability implementation
This module handles embedding generation functionality for Google providers. Google provides text embedding models through the Gemini API. Reference: https://ai.google.dev/api/embeddings
- Implemented types
Constructors
- GoogleEmbeddings.new(GoogleClient client, GoogleConfig config)
Properties
- batchEmbeddingEndpoint → String
-
no setter
- client → GoogleClient
-
final
- config → GoogleConfig
-
final
- embeddingEndpoint → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
embed(
List< String> input) → Future<List< List< >double> > -
Generate embeddings for the given input texts
override
-
getEmbeddingDimensions(
) → Future< int> - Get embedding dimensions for a model
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited