Skip to content

Commit e2d6ca3

Browse files
vedenevpamelafox
andauthored
UI developer settings fix (#1688)
* fix exclude directory for chat * fix the bug for the Ask.tsx too * Fix tooltip typo --------- Co-authored-by: Максим Веденев <[email protected]> Co-authored-by: Pamela Fox <[email protected]>
1 parent 3bd92fb commit e2d6ca3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/frontend/src/i18n/tooltips.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const toolTipText = {
88
searchScore:
99
"Sets a minimum score for search results coming back from Azure AI search. The score range depends on whether you're using hybrid (default), vectors only, or text only.",
1010
rerankerScore:
11-
"Sets a minimum score for search results coming back from the semantic reranker. The score always ranges between 1-4. The higher the score, the more semantically relevant the result is to the question.",
11+
"Sets a minimum score for search results coming back from the semantic reranker. The score always ranges between 0-4. The higher the score, the more semantically relevant the result is to the question.",
1212
retrieveNumber:
1313
"Sets the number of search results to retrieve from Azure AI search. More results may increase the likelihood of finding the correct answer, but may lead to the model getting 'lost in the middle'.",
1414
excludeCategory: "Specifies a category to exclude from the search results. There are no categories used in the default data set.",

app/frontend/src/pages/ask/Ask.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ export function Component(): JSX.Element {
364364
id={excludeCategoryFieldId}
365365
className={styles.chatSettingsSeparator}
366366
label="Exclude category"
367+
defaultValue={excludeCategory}
367368
onChange={onExcludeCategoryChanged}
368369
aria-labelledby={excludeCategoryId}
369370
onRenderLabel={(props: ITextFieldProps | undefined) => (

app/frontend/src/pages/chat/Chat.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ const Chat = () => {
533533
id={excludeCategoryFieldId}
534534
className={styles.chatSettingsSeparator}
535535
label="Exclude category"
536+
defaultValue={excludeCategory}
536537
onChange={onExcludeCategoryChanged}
537538
aria-labelledby={excludeCategoryId}
538539
onRenderLabel={(props: ITextFieldProps | undefined) => (

0 commit comments

Comments
 (0)