Skip to content

Commit

Permalink
Add Mistral instruct prompt.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel committed Dec 29, 2023
1 parent 3ecea78 commit 2255188
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/guide/function/generate-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ The following prompt templates are available for text prompts:
for models that use the ChatML prompt template.
- **NeuralChat**: [NeuralChatPrompt.text()](/api/namespaces/NeuralChatPrompt#text)
for models that use the neural chat prompt template.
- **Mistral instruct**: [MistralInstructPrompt.text()](/api/namespaces/MistralInstructPrompt#text)
for models that use the Mistral instruct prompt template.
- **Basic text**: [TextPrompt.text()](/api/namespaces/TextPrompt#text)
for other models that expect a generic text prompt.

Expand Down Expand Up @@ -286,6 +288,8 @@ The following prompt templates are available for instruction prompts:
for models that use the ChatML prompt template.
- **NeuralChat**: [NeuralChatPrompt.instruction()](/api/namespaces/NeuralChatPrompt#instruction)
for models that use the neural chat prompt template.
- **Mistral instruct**: [MistralInstructPrompt.instruction()](/api/namespaces/MistralInstructPrompt#instruction)
for models that use the Mistral instruct prompt template.
- **Basic text**: [TextPrompt.instruction()](/api/namespaces/TextPrompt#instruction)
for other models that expect a generic text prompt.

Expand Down Expand Up @@ -359,6 +363,8 @@ The following prompt templates are available for chat prompts:
for models that use the ChatML prompt template.
- **NeuralChat**: [NeuralChatPrompt.chat()](/api/namespaces/NeuralChatPrompt#chat)
for models that use the neural chat prompt template.
- **Mistral instruct**: [MistralInstructPrompt.chat()](/api/namespaces/MistralInstructPrompt#chat)
for models that use the Mistral instruct prompt template.
- **Basic text**: [TextPrompt.chat()](/api/namespaces/TextPrompt#chat)
for other models that expect a generic text prompt.
You can change the prefixes for the user, assistant, and system messages.
Expand Down

1 comment on commit 2255188

@vercel
Copy link

@vercel vercel bot commented on 2255188 Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.