RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
import { useEffect } from 'react';
import { useBuiltinItems } from './builtin-pipeline-list';
// Reports the filtered built-in pipeline catalog state (matched item count and
// loading flag) up to the agents list so it can decide the empty-state without
// re-deriving the filtering logic. Mounted only for the Pipeline tab, so the
// catalog request stays gated on that view (React Query dedupes it with the
// section's own call).
export function BuiltinCatalogProbe({
canvasCategory,
searchString,
onReport,
}: {
canvasCategory: string;
searchString?: string;
onReport: (state: { length: number; loading: boolean }) => void;
}) {
const { items, loading } = useBuiltinItems(canvasCategory, searchString);
useEffect(() => {
onReport({ length: items.length, loading });
}, [items.length, loading, onReport]);
return null;
}