Skip to content

Commit a435415

Browse files
committed
fix: Fix the issue where the recommendation is not refreshed after retrieval
1 parent 3d440e9 commit a435415

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/src/views/chat/QuickQuestion.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const getRecommendQuestions = () => {
1515
1616
const questions = '[]'
1717
const retrieveQuestions = () => {
18-
recommendQuestionRef.value.getRecommendQuestions(10)
18+
recommendQuestionRef.value.getRecommendQuestions(10, true)
1919
recentQuestionRef.value.getRecentQuestions()
2020
}
2121
const quickAsk = (question: string) => {

frontend/src/views/chat/RecommendQuestionQuick.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ function clickQuestion(question: string): void {
4848
4949
const stopFlag = ref(false)
5050
51-
async function getRecommendQuestions(articles_number: number) {
51+
async function getRecommendQuestions(articles_number: number, isRetrieve: false) {
5252
recommendedApi.get_datasource_recommended_base(props.datasource).then((res) => {
5353
if (res.recommended_config === 2) {
5454
questions.value = res.questions
55-
} else if (currentChat.value.recommended_generate) {
55+
} else if (currentChat.value.recommended_generate && !isRetrieve) {
5656
questions.value = currentChat.value.recommended_question as string
5757
} else {
5858
getRecommendQuestionsLLM(articles_number)

0 commit comments

Comments
 (0)