UNPKG

embeddings-js

Version:

A NodeJS RAG framework to easily work with LLMs and custom datasets

14 lines (13 loc) 525 B
import { BaseModel } from '../interfaces/base-model.js'; import { Chunk, ConversationHistory } from '../global/types.js'; export declare class OpenAi extends BaseModel { private readonly debug; private readonly modelName; private model; constructor({ temperature, modelName }: { temperature?: number; modelName: string; }); init(): Promise<void>; runQuery(system: string, userQuery: string, supportingContext: Chunk[], pastConversations: ConversationHistory[]): Promise<string>; }