mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-28 03:38:11 +08:00
Fix: The retrieval_test interface is continuously requested when the user enters a question. #13719 (#13720)
### What problem does this PR solve? Fix: The retrieval_test interface is continuously requested when the user enters a question. #13719 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -38,8 +38,6 @@ export default function RetrievalTesting() {
|
||||
<CardDescription>
|
||||
{t('knowledgeDetails.testingDescription')}
|
||||
</CardDescription>
|
||||
|
||||
{/* <Button>Save as Preset</Button> */}
|
||||
</header>
|
||||
</CardHeader>
|
||||
|
||||
@@ -50,9 +48,6 @@ export default function RetrievalTesting() {
|
||||
<h2 className="font-semibold text-base leading-8">
|
||||
{t('knowledgeDetails.testSetting')}
|
||||
</h2>
|
||||
{/* <Button variant={'outline'} onClick={addCount}>
|
||||
<Plus /> Add New Test
|
||||
</Button> */}
|
||||
</header>
|
||||
|
||||
<div className="flex-1 h-0">
|
||||
|
||||
@@ -127,7 +127,7 @@ export default function TestingForm({
|
||||
<div className="mt-2.5 text-end">
|
||||
<ButtonLoading
|
||||
type="submit"
|
||||
disabled={!!!trim(question)}
|
||||
disabled={!trim(question)}
|
||||
loading={loading}
|
||||
>
|
||||
{/* {!loading && <CirclePlay />} */}
|
||||
|
||||
@@ -88,11 +88,8 @@ export function TestingResult({
|
||||
<>
|
||||
<section className="px-5 pb-5 flex flex-col gap-5 overflow-auto h-full scrollbar-thin">
|
||||
{data.chunks?.map((x) => (
|
||||
<article>
|
||||
<Card
|
||||
key={x.chunk_id}
|
||||
className="px-5 py-2.5 bg-transparent shadow-none"
|
||||
>
|
||||
<article key={x.chunk_id}>
|
||||
<Card className="px-5 py-2.5 bg-transparent shadow-none">
|
||||
<ChunkTitle item={x}></ChunkTitle>
|
||||
<p className="!mt-2.5"> {x.content_with_weight}</p>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user