From ce6ef7adbd6e0fe742abba2f0b702418123a9b77 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Tue, 28 May 2024 15:22:54 -0700 Subject: [PATCH] only import type interfaces for llamaindex --- packages/cli/src/llamaindexretrieval.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/llamaindexretrieval.ts b/packages/cli/src/llamaindexretrieval.ts index 913c21d065..2f7711c8d7 100644 --- a/packages/cli/src/llamaindexretrieval.ts +++ b/packages/cli/src/llamaindexretrieval.ts @@ -30,7 +30,7 @@ import { DOCX_MIME_TYPE, JSON_SCHEMA_MIME_TYPE, } from "genaiscript-core" -import { type BaseReader, OllamaEmbedding } from "llamaindex" +import { type BaseReader } from "llamaindex" import type { GenericFileSystem } from "@llamaindex/env" import { fileTypeFromBuffer } from "file-type" import { LLAMAINDEX_VERSION } from "./version" @@ -187,6 +187,7 @@ export class LlamaIndexRetrievalService OpenAIEmbedding, Ollama, OpenAI, + OllamaEmbedding } = this.module const { provider: llmProvider, model: llmModel } = parseModelIdentifier(llmModel_)