mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: Optimize metadata filters, add Ingestion pipeline options to agent templates page #9869 (#10572)
### What problem does this PR solve? Fix: Optimize metadata filters, add Ingestion pipeline options to agent templates page ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -63,7 +63,7 @@ export function MetadataFilterConditions({
|
|||||||
<Plus />
|
<Plus />
|
||||||
</Button>
|
</Button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent>
|
<DropdownMenuContent className="max-h-[300px] !overflow-y-auto scrollbar-auto">
|
||||||
{Object.keys(metadata.data).map((key, idx) => {
|
{Object.keys(metadata.data).map((key, idx) => {
|
||||||
return (
|
return (
|
||||||
<DropdownMenuItem key={idx} onClick={add(key)}>
|
<DropdownMenuItem key={idx} onClick={add(key)}>
|
||||||
|
|||||||
@ -161,6 +161,7 @@ export function Header() {
|
|||||||
<RAGFlowAvatar
|
<RAGFlowAvatar
|
||||||
name={nickname}
|
name={nickname}
|
||||||
avatar={avatar}
|
avatar={avatar}
|
||||||
|
isPerson
|
||||||
className="size-8 cursor-pointer"
|
className="size-8 cursor-pointer"
|
||||||
onClick={navigateToOldProfile}
|
onClick={navigateToOldProfile}
|
||||||
></RAGFlowAvatar>
|
></RAGFlowAvatar>
|
||||||
|
|||||||
@ -955,7 +955,7 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s
|
|||||||
marketing: 'Marketing',
|
marketing: 'Marketing',
|
||||||
consumerApp: 'Consumer App',
|
consumerApp: 'Consumer App',
|
||||||
other: 'Other',
|
other: 'Other',
|
||||||
pipeline: 'Ingestion pipeline',
|
ingestionPipeline: 'Ingestion Pipeline',
|
||||||
agents: 'Agents',
|
agents: 'Agents',
|
||||||
days: 'Days',
|
days: 'Days',
|
||||||
beginInput: 'Begin Input',
|
beginInput: 'Begin Input',
|
||||||
@ -1826,7 +1826,7 @@ Important structured information may include: names, dates, locations, events, k
|
|||||||
},
|
},
|
||||||
datasetOverview: {
|
datasetOverview: {
|
||||||
downloadTip: 'Files being downloaded from data sources. ',
|
downloadTip: 'Files being downloaded from data sources. ',
|
||||||
processingTip: 'Files being processed by data pipelines.',
|
processingTip: 'Files being processed by Ingestion pipeline.',
|
||||||
totalFiles: 'Total Files',
|
totalFiles: 'Total Files',
|
||||||
downloading: 'Downloading',
|
downloading: 'Downloading',
|
||||||
downloadSuccessTip: 'Total successful downloads',
|
downloadSuccessTip: 'Total successful downloads',
|
||||||
|
|||||||
@ -1716,7 +1716,7 @@ Tokenizer 会根据所选方式将内容存储为对应的数据结构。`,
|
|||||||
},
|
},
|
||||||
datasetOverview: {
|
datasetOverview: {
|
||||||
downloadTip: '正在从数据源下载文件。',
|
downloadTip: '正在从数据源下载文件。',
|
||||||
processingTip: '正在由数据流处理文件。',
|
processingTip: '正在由pipeline处理文件。',
|
||||||
totalFiles: '文件总数',
|
totalFiles: '文件总数',
|
||||||
downloading: '正在下载',
|
downloading: '正在下载',
|
||||||
processing: '正在处理',
|
processing: '正在处理',
|
||||||
|
|||||||
@ -91,9 +91,9 @@ export default function AgentTemplates() {
|
|||||||
return templateList;
|
return templateList;
|
||||||
}
|
}
|
||||||
return templateList.filter(
|
return templateList.filter(
|
||||||
(item, index) =>
|
(item) =>
|
||||||
item.canvas_type?.toLocaleLowerCase() ===
|
item.canvas_type?.toLocaleLowerCase() ===
|
||||||
selectMenuItem?.toLocaleLowerCase() || index === 0,
|
selectMenuItem?.toLocaleLowerCase(),
|
||||||
);
|
);
|
||||||
}, [selectMenuItem, templateList]);
|
}, [selectMenuItem, templateList]);
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export function ApplicationCard({
|
|||||||
name={app.title || 'CN'}
|
name={app.title || 'CN'}
|
||||||
></RAGFlowAvatar>
|
></RAGFlowAvatar>
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<h3 className="text-sm font-normal line-clamp-1 mb-1 text-ellipsis w-[180px] overflow-hidden">
|
<h3 className="text-sm font-normal line-clamp-1 mb-1 text-ellipsis w-[160px] overflow-hidden">
|
||||||
{app.title}
|
{app.title}
|
||||||
</h3>
|
</h3>
|
||||||
<p className="text-xs font-normal text-text-secondary">
|
<p className="text-xs font-normal text-text-secondary">
|
||||||
|
|||||||
@ -16,23 +16,35 @@ const FlipCard3D = (props: IProps) => {
|
|||||||
setIsFlipped(true);
|
setIsFlipped(true);
|
||||||
}
|
}
|
||||||
}, [isLoginPage]);
|
}, [isLoginPage]);
|
||||||
|
const isBackfaceVisibilitySupported = () => {
|
||||||
|
return (
|
||||||
|
CSS.supports('backface-visibility', 'hidden') ||
|
||||||
|
CSS.supports('-webkit-backface-visibility', 'hidden') ||
|
||||||
|
CSS.supports('-moz-backface-visibility', 'hidden') ||
|
||||||
|
CSS.supports('-ms-backface-visibility', 'hidden')
|
||||||
|
);
|
||||||
|
};
|
||||||
return (
|
return (
|
||||||
<div className="relative w-full h-full perspective-1000">
|
<>
|
||||||
<div
|
{isBackfaceVisibilitySupported() && (
|
||||||
className={`relative w-full h-full transition-transform transform-style-3d ${isFlipped ? 'rotate-y-180' : ''}`}
|
<div className="relative w-full h-full perspective-1000">
|
||||||
>
|
<div
|
||||||
{/* Front Face */}
|
className={`relative w-full h-full transition-transform transform-style-3d ${isFlipped ? 'rotate-y-180' : ''}`}
|
||||||
<div className="absolute inset-0 flex items-center justify-center backface-hidden">
|
>
|
||||||
{children}
|
{/* Front Face */}
|
||||||
</div>
|
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-0">
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Back Face */}
|
{/* Back Face */}
|
||||||
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-180">
|
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-180">
|
||||||
{children}
|
{children}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
</div>
|
{!isBackfaceVisibilitySupported() && <>{children}</>}
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -42,6 +42,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
.perspective-1000 {
|
.perspective-1000 {
|
||||||
perspective: 1000px;
|
perspective: 1000px;
|
||||||
|
-webkit-perspective: 1000px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-height: 680px;
|
min-height: 680px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -49,12 +50,21 @@
|
|||||||
}
|
}
|
||||||
.transform-style-3d {
|
.transform-style-3d {
|
||||||
transform-style: preserve-3d;
|
transform-style: preserve-3d;
|
||||||
|
-webkit-transform-style: preserve-3d;
|
||||||
transition-duration: 0.4s;
|
transition-duration: 0.4s;
|
||||||
}
|
}
|
||||||
.backface-hidden {
|
.backface-hidden {
|
||||||
backface-visibility: hidden;
|
backface-visibility: hidden;
|
||||||
|
-webkit-backface-visibility: hidden; /* Chrome、Safari */
|
||||||
|
-moz-backface-visibility: hidden; /* Firefox */
|
||||||
|
-ms-backface-visibility: hidden; /* Internet Explorer */
|
||||||
}
|
}
|
||||||
|
|
||||||
.rotate-y-180 {
|
.rotate-y-180 {
|
||||||
transform: rotateY(180deg);
|
transform: rotateY(180deg);
|
||||||
|
-webkit-transform: rotateY(180deg);
|
||||||
|
}
|
||||||
|
.rotate-y-0 {
|
||||||
|
transform: rotateY(0deg);
|
||||||
|
-webkit-transform: rotateY(0deg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user