UNPKG

embeddings-js

Version:

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

14 lines (13 loc) 684 B
import { Chunk, ConversationHistory } from '../global/types.js'; export declare abstract class BaseModel { private readonly baseDebug; private static defaultTemperature; static setDefaultTemperature(temperature?: number): void; private readonly conversationMap; private readonly _temperature?; constructor(temperature?: number); get temperature(): number; init(): Promise<void>; query(system: string, userQuery: string, supportingContext: Chunk[], conversationId?: string): Promise<string>; protected abstract runQuery(system: string, userQuery: string, supportingContext: Chunk[], pastConversations: ConversationHistory[]): Promise<string>; }