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 { useFetchTenantInfo } from '@/hooks/use-user-setting-request';
import { useCallback } from 'react';
export function useDisplayOwnerName() {
const { data } = useFetchTenantInfo();
const getOwnerName = useCallback(
(tenantId: string, nickname: string) => {
if (tenantId === data.tenant_id) {
return null;
}
return nickname;
},
[data.tenant_id],
);
return getOwnerName;
}