Skip to content

Commit

Permalink
only import type interfaces for llamaindex
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 28, 2024
1 parent 5c2a47a commit ce6ef7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/llamaindexretrieval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -187,6 +187,7 @@ export class LlamaIndexRetrievalService
OpenAIEmbedding,
Ollama,
OpenAI,
OllamaEmbedding
} = this.module
const { provider: llmProvider, model: llmModel } =
parseModelIdentifier(llmModel_)
Expand Down

0 comments on commit ce6ef7a

Please sign in to comment.