File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
clients/search-component/src/utils/hooks Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -885,17 +885,9 @@ function ChatProvider({ children }: { children: React.ReactNode }) {
885885 clearTimeout ( relevanceToolCallTimeout ) ;
886886 let groupIdsToUse = highlyRelevantGroupIds ;
887887
888- if ( highlyRelevantGroupIds . length > 1 ) {
888+ if ( highlyRelevantGroupIds . length > 0 ) {
889889 groupIdsToUse = [ ...highlyRelevantGroupIds ] ;
890- } else if ( highlyRelevantGroupIds . length === 1 ) {
891- groupIdsToUse = [
892- ...highlyRelevantGroupIds ,
893- ...mediumRelevantGroupIds ,
894- ] ;
895- } else if (
896- highlyRelevantGroupIds . length === 0 &&
897- mediumRelevantGroupIds . length > 0
898- ) {
890+ } else if ( mediumRelevantGroupIds . length > 0 ) {
899891 groupIdsToUse = mediumRelevantGroupIds ;
900892 } else if ( lowlyRelevantGroupIds . length > 0 ) {
901893 groupIdsToUse = [ ...lowlyRelevantGroupIds ] ;
You can’t perform that action at this time.
0 commit comments