Skip to content
Snippets Groups Projects
Unverified Commit ae7a2c20 authored by Alex Yang's avatar Alex Yang Committed by GitHub
Browse files

fix: add alias class `OllamaEmbedding` (#527)

parent 9b00d578
Branches
Tags
No related merge requests found
import { Ollama } from "../llm/ollama";
import { BaseEmbedding } from "./types";
/**
* OllamaEmbedding is an alias for Ollama that implements the BaseEmbedding interface.
*/
export class OllamaEmbedding extends Ollama implements BaseEmbedding {}
...@@ -2,6 +2,7 @@ export * from "./ClipEmbedding"; ...@@ -2,6 +2,7 @@ export * from "./ClipEmbedding";
export * from "./HuggingFaceEmbedding"; export * from "./HuggingFaceEmbedding";
export * from "./MistralAIEmbedding"; export * from "./MistralAIEmbedding";
export * from "./MultiModalEmbedding"; export * from "./MultiModalEmbedding";
export { OllamaEmbedding } from "./OllamaEmbedding";
export * from "./OpenAIEmbedding"; export * from "./OpenAIEmbedding";
export { TogetherEmbedding } from "./together"; export { TogetherEmbedding } from "./together";
export * from "./types"; export * from "./types";
......
import { CallbackManager, Event } from "../callbacks/CallbackManager"; import { CallbackManager, Event } from "../callbacks/CallbackManager";
import { BaseEmbedding } from "../embeddings"; import { BaseEmbedding } from "../embeddings/types";
import { ok } from "../env"; import { ok } from "../env";
import { import {
ChatMessage, ChatMessage,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment