Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Set the minimum value for "top n" to 1 and restrict it to an integer. (#19547)

balibabuc072a508cb86
diff --git a/web/src/components/top-n-item.tsx b/web/src/components/top-n-item.tsx
index ab7c807481..2ada4e53b6 100644
--- a/web/src/components/top-n-item.tsx
+++ b/web/src/components/top-n-item.tsx
@@ -41,6 +41,8 @@ export function TopNFormField({
max={max}
tooltip={t('topNTip')}
layout={FormLayout.Vertical}
+ min={1}
+ integer
></SliderInputFormField>
);
}