Browse Source

fix: 召回 topN 上限从 100 改为 20

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
刘立冬 2 ngày trước cách đây
mục cha
commit
b680a6f719
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/pages/RecallTestPage.tsx

+ 2 - 2
src/pages/RecallTestPage.tsx

@@ -260,7 +260,7 @@ function VideoIdTab() {
           </Button>
           <span style={{ color: '#d9d9d9' }}>|</span>
           <Text strong>TopN</Text>
-          <InputNumber min={1} max={100} value={topN} onChange={(v) => setTopN(v ?? 10)} style={{ width: 80 }} />
+          <InputNumber min={1} max={20} value={topN} onChange={(v) => setTopN(v ?? 10)} style={{ width: 80 }} />
           <Text type="secondary" style={{ fontSize: 12 }}>
             召回维度由下方解构层级各点的"以此召回"按钮直接选择
           </Text>
@@ -504,7 +504,7 @@ function TextRecallTab() {
             <Text strong>召回维度</Text>
             <Select value={configCode} onChange={setConfigCode} options={groupedOptions} style={{ width: 240 }} />
             <Text strong>TopN</Text>
-            <InputNumber min={1} max={100} value={topN} onChange={(v) => setTopN(v ?? 10)} style={{ width: 80 }} />
+            <InputNumber min={1} max={20} value={topN} onChange={(v) => setTopN(v ?? 10)} style={{ width: 80 }} />
             <Button type="primary" icon={<SearchOutlined />} loading={loading} onClick={onSubmit}>
               召回
             </Button>