UNPKG

ai-utils.js

Version:

Build AI applications, chatbots, and agents with JavaScript and TypeScript.

11 lines (10 loc) 494 B
import { PromptMapping } from "./PromptMapping.js"; import { InstructionPrompt } from "./InstructionPrompt.js"; import { ChatPrompt } from "./chat/ChatPrompt.js"; /** * Maps an instruction prompt to the Llama2 prompt format. * * @see https://www.philschmid.de/llama-2#how-to-prompt-llama-2-chat */ export declare const InstructionToLlama2PromptMapping: () => PromptMapping<InstructionPrompt, string>; export declare const ChatToLlama2PromptMapping: () => PromptMapping<ChatPrompt, string>;