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

OllamaEmbeddingFunction

class OllamaEmbeddingFunction implements IEmbeddingFunction {
constructor({ url, model }: {
url: string;
model: string;
}
);
private readonly model;
private readonly url;
 
generate(texts: string[]): Promise<number[][]>;
}

§Implements

§Constructors

§
new OllamaEmbeddingFunction({ url, model }: {
url: string;
model: string;
}
)
[src]

§Properties

§
model
[src]

§Methods

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