File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export function Component(): JSX.Element {
29
29
const [ minimumRerankerScore , setMinimumRerankerScore ] = useState < number > ( 0 ) ;
30
30
const [ minimumSearchScore , setMinimumSearchScore ] = useState < number > ( 0 ) ;
31
31
const [ retrievalMode , setRetrievalMode ] = useState < RetrievalMode > ( RetrievalMode . Hybrid ) ;
32
- const [ retrieveCount , setRetrieveCount ] = useState < number > ( 10 ) ;
32
+ const [ retrieveCount , setRetrieveCount ] = useState < number > ( 3 ) ;
33
33
const [ maxSubqueryCount , setMaxSubqueryCount ] = useState < number > ( 10 ) ;
34
34
const [ useSemanticRanker , setUseSemanticRanker ] = useState < boolean > ( true ) ;
35
35
const [ useSemanticCaptions , setUseSemanticCaptions ] = useState < boolean > ( false ) ;
@@ -102,6 +102,9 @@ export function Component(): JSX.Element {
102
102
setShowSpeechOutputAzure ( config . showSpeechOutputAzure ) ;
103
103
setShowAgenticRetrievalOption ( config . showAgenticRetrievalOption ) ;
104
104
setUseAgenticRetrieval ( config . showAgenticRetrievalOption ) ;
105
+ if ( config . showAgenticRetrievalOption ) {
106
+ setRetrieveCount ( 10 ) ;
107
+ }
105
108
} ) ;
106
109
} ;
107
110
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const Chat = () => {
45
45
const [ seed , setSeed ] = useState < number | null > ( null ) ;
46
46
const [ minimumRerankerScore , setMinimumRerankerScore ] = useState < number > ( 0 ) ;
47
47
const [ minimumSearchScore , setMinimumSearchScore ] = useState < number > ( 0 ) ;
48
- const [ retrieveCount , setRetrieveCount ] = useState < number > ( 10 ) ;
48
+ const [ retrieveCount , setRetrieveCount ] = useState < number > ( 3 ) ;
49
49
const [ maxSubqueryCount , setMaxSubqueryCount ] = useState < number > ( 10 ) ;
50
50
const [ retrievalMode , setRetrievalMode ] = useState < RetrievalMode > ( RetrievalMode . Hybrid ) ;
51
51
const [ useSemanticRanker , setUseSemanticRanker ] = useState < boolean > ( true ) ;
@@ -135,6 +135,9 @@ const Chat = () => {
135
135
setShowChatHistoryCosmos ( config . showChatHistoryCosmos ) ;
136
136
setShowAgenticRetrievalOption ( config . showAgenticRetrievalOption ) ;
137
137
setUseAgenticRetrieval ( config . showAgenticRetrievalOption ) ;
138
+ if ( config . showAgenticRetrievalOption ) {
139
+ setRetrieveCount ( 10 ) ;
140
+ }
138
141
} ) ;
139
142
} ;
140
143
You can’t perform that action at this time.
0 commit comments