Skip to documentation
Docs navigation
Docs/GeminiEmbedAdapter
Provider Adapters

GeminiEmbedAdapter

Create vector embeddings through Gemini with an optional fixed output dimensionality.

What it does

Create vector embeddings through Gemini with an optional fixed output dimensionality.

Pass the adapter into MemoGrafter configuration so the rest of the memory pipeline remains independent of the provider SDK.

Signature

TypeScript
new GeminiEmbedAdapter(model?: string, outputDimensionality?: number)

Parameters

model? (string) — Optional operation-specific settings.
outputDimensionality? (number) — Optional operation-specific settings.

Result

The number of records changed by the operation.

Example

example.ts
const embedder = new GeminiEmbedAdapter(undefined, 1536);