GooglePalmEmbeddingModel<T>
Models & Types · AiDotNet.RetrievalAugmentedGeneration.EmbeddingModels
Google PaLM embedding model integration via Vertex AI.
Inheritance: EmbeddingModelBase<T> → GooglePalmEmbeddingModel<T>
How It Works
Provides access to Google’s PaLM (Pathways Language Model) and Gemini embedding capabilities through the Google Cloud Vertex AI platform.
Constructors
| Constructor | Summary |
|---|---|
GooglePalmEmbeddingModel(string projectId, string location, string model, string apiKey, int dimension, HttpClient httpClient) |
Initializes a new instance of the GooglePalmEmbeddingModel class. |
Properties
| Property | Summary |
|---|---|
int EmbeddingDimension { get; } |
|
int MaxTokens { get; } |
Methods
| Method | Summary |
|---|---|
Task<Matrix<T>> EmbedBatchAsync(IEnumerable<string> texts) |
Asynchronously generates embeddings for the specified texts using Google Vertex AI API. |
Task<Vector<T>> EmbedAsync(string text) |
Asynchronously generates an embedding for the specified text using Google Vertex AI API. |