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
fix(web): expand citation source-locate to all previewable file types (#20898)
chanx35cb601049a0
diff --git a/web/src/utils/source-locate.ts b/web/src/utils/source-locate.tsindex 1518bfe5f7..248cd553f0 100644--- a/web/src/utils/source-locate.ts+++ b/web/src/utils/source-locate.ts@@ -14,10 +14,8 @@* limitations under the License.*/-/** File types that support in-app citation source location. */-export const SourceLocateExtensions = ['pdf', 'xlsx', 'xls'] as const;+import { ExceptiveType } from '@/constants/common';/** True when the citation should open the in-app preview locate drawer. */export const supportsSourceLocate = (ext?: string) =>- !!ext &&- (SourceLocateExtensions as readonly string[]).includes(ext.toLowerCase());+ !!ext && (ExceptiveType as readonly string[]).includes(ext.toLowerCase());