Skip to content

Commit

Permalink
update: added micro copy for custom prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
tlane25 committed Aug 15, 2024
1 parent bcbd2d3 commit 7f19871
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/src/components/form_fields/PromptField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ export function PromptField({ control }: PromptFieldProps) {
name="prompt"
render={({ field }) => (
<FormItem>
<FormLabel>Prompt</FormLabel>
<FormLabel>Custom Prompt</FormLabel>
<FormControl>
<Textarea
placeholder="Enter your prompt here..."
placeholder="Custom prompts must include {query_str} and {context_str}"
className="resize-vertical"
{...field}
/>
</FormControl>
<FormDescription>
The prompt to be used for generating responses.
The user's query will be placed within {'{query_str}'}.
<br/>
The nodes retrieved for a user's query will be placed within {'{context_str}'}.
</FormDescription>
<FormMessage />
</FormItem>
Expand Down

0 comments on commit 7f19871

Please sign in to comment.