add help info (#142)

This commit is contained in:
KevinHuSh
2024-03-22 15:35:06 +08:00
committed by GitHub
parent 73c2f4d418
commit 1edbd36baf
11 changed files with 131 additions and 84 deletions

View File

@ -55,6 +55,7 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
label="Language"
initialValue={'Chinese'}
tooltip="coming soon"
style={{display:'none'}}
>
<Select
options={[
@ -66,22 +67,23 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
<Form.Item
name={['prompt_config', 'empty_response']}
label="Empty response"
tooltip="coming soon"
tooltip="If nothing is retrieved with user's question in the knowledgebase, it will use this as an answer.
If you want LLM comes up with its own opinion when nothing is retrieved, leave this blank."
>
<Input placeholder="" />
</Form.Item>
<Form.Item
name={['prompt_config', 'prologue']}
label="Set an opener"
tooltip="coming soon"
tooltip="How do you want to welcome your clients?"
initialValue={"Hi! I'm your assistant, what can I do for you?"}
>
<Input.TextArea autoSize={{ minRows: 5 }} />
</Form.Item>
<Form.Item
label="Select one context"
label="Knowledgebases"
name="kb_ids"
tooltip="coming soon"
tooltip="Select knowledgebases associated."
rules={[
{
required: true,