Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleGenerativeAiEmbeddingFunction

class GoogleGenerativeAiEmbeddingFunction implements IEmbeddingFunction {
constructor({ googleApiKey, model, taskType }: {
googleApiKey: string;
model?: string;
taskType?: string;
}
);
private api_key;
private googleGenAiApi?;
private loadClient;
private model;
private taskType;
 
generate(texts: string[]): Promise<any>;
 
static import(): Promise<{
googleGenAi: _google_generative_ai;
}
>
;
}

§Implements

§Constructors

§
new GoogleGenerativeAiEmbeddingFunction({ googleApiKey, model, taskType }: {
googleApiKey: string;
model?: string;
taskType?: string;
}
)
[src]

§Properties

§
api_key
[src]
§
googleGenAiApi
[src]
§
loadClient
[src]
§
model
[src]
§
taskType
[src]

§Methods

§
generate(texts: string[]): Promise<any>
[src]

§Static Methods

§
import(): Promise<{
googleGenAi: _google_generative_ai;
}
>
[src]