llm-tools / embedJs

A NodeJS RAG framework to easily work with LLMs and embeddings
https://llm-tools.mintlify.app/get-started/introduction
Apache License 2.0
335 stars 40 forks source link

Open-3Large-Embeddings has constructor pointing to small model #36

Closed converseKarl closed 7 months ago

converseKarl commented 7 months ago

this must be a bug? export class OpenAi3LargeEmbeddings implements BaseEmbeddings { private model: OpenAIEmbeddings;

constructor() {
    this.model = new OpenAIEmbeddings({ modelName: **'text-embedding-3-small',** maxConcurrency: 3, maxRetries: 5 });
}

also how do you import these models via import statement?

adhityan commented 7 months ago

Yes, this is a bug. Will address this in the next release/

adhityan commented 7 months ago

Addressed in version 0.0.68