Namespace: VicunaPrompt
Functions
chat
▸ chat(): TextGenerationPromptTemplate
<ChatPrompt
, string
>
Formats a chat prompt as a Vicuna prompt.
Overriding the system message in the first chat message can affect model responses.
Vicuna prompt template:
A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
USER: {prompt}
ASSISTANT:
Returns
TextGenerationPromptTemplate
<ChatPrompt
, string
>
Defined in
packages/modelfusion/src/model-function/generate-text/prompt-template/VicunaPromptTemplate.ts:62
instruction
▸ instruction(): TextGenerationPromptTemplate
<InstructionPrompt
, string
>
Formats an instruction prompt as a Vicuna prompt.
Returns
TextGenerationPromptTemplate
<InstructionPrompt
, string
>
Defined in
packages/modelfusion/src/model-function/generate-text/prompt-template/VicunaPromptTemplate.ts:31
text
▸ text(): TextGenerationPromptTemplate
<string
, string
>
Formats a text prompt as a Vicuna prompt.
Returns
TextGenerationPromptTemplate
<string
, string
>
Defined in
packages/modelfusion/src/model-function/generate-text/prompt-template/VicunaPromptTemplate.ts:15