diff --git a/frontend/src/views/chat/QuickQuestion.vue b/frontend/src/views/chat/QuickQuestion.vue index a4e93d4e..2f173b6d 100644 --- a/frontend/src/views/chat/QuickQuestion.vue +++ b/frontend/src/views/chat/QuickQuestion.vue @@ -15,7 +15,7 @@ const getRecommendQuestions = () => { const questions = '[]' const retrieveQuestions = () => { - recommendQuestionRef.value.getRecommendQuestions(10) + recommendQuestionRef.value.getRecommendQuestions(10, true) recentQuestionRef.value.getRecentQuestions() } const quickAsk = (question: string) => { diff --git a/frontend/src/views/chat/RecommendQuestionQuick.vue b/frontend/src/views/chat/RecommendQuestionQuick.vue index f07b1115..8995161d 100644 --- a/frontend/src/views/chat/RecommendQuestionQuick.vue +++ b/frontend/src/views/chat/RecommendQuestionQuick.vue @@ -48,11 +48,11 @@ function clickQuestion(question: string): void { const stopFlag = ref(false) -async function getRecommendQuestions(articles_number: number) { +async function getRecommendQuestions(articles_number: number, isRetrieve: false) { recommendedApi.get_datasource_recommended_base(props.datasource).then((res) => { if (res.recommended_config === 2) { questions.value = res.questions - } else if (currentChat.value.recommended_generate) { + } else if (currentChat.value.recommended_generate && !isRetrieve) { questions.value = currentChat.value.recommended_question as string } else { getRecommendQuestionsLLM(articles_number)