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

CohereEmbeddingFunction

class CohereEmbeddingFunction implements IEmbeddingFunction {
constructor({ cohere_api_key, model }: {
cohere_api_key: string;
model?: string;
}
);
private apiKey;
private cohereAiApi?;
private initCohereClient;
private model;
 
generate(texts: string[]): Promise<number[][]>;
}

§Implements

§Constructors

§
new CohereEmbeddingFunction({ cohere_api_key, model }: {
cohere_api_key: string;
model?: string;
}
)
[src]

§Properties

§
apiKey
[src]
§
cohereAiApi
[src]
§
initCohereClient
[src]
§
model
[src]

§Methods

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