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: change citation labels from "Fig. 1" to "[1]" (#19781)
YanZhangc862400e04d3
diff --git a/web/src/components/markdown-content/index.tsx b/web/src/components/markdown-content/index.tsxindex dd2cf2f7fa..bd23acce4a 100644--- a/web/src/components/markdown-content/index.tsx+++ b/web/src/components/markdown-content/index.tsx@@ -331,7 +331,7 @@ const MarkdownContent = ({<HoverCard key={i}><HoverCardTrigger><bdi className="text-text-secondary bg-bg-card rounded-2xl px-1 mx-1 text-nowrap inline-block">- {t('common.figure')} {chunkIndex + 1}+ [{chunkIndex + 1}]</bdi></HoverCardTrigger><HoverCardContent className="max-w-3xl">diff --git a/web/src/components/next-markdown-content/index.tsx b/web/src/components/next-markdown-content/index.tsxindex 9cbb7e3b09..385c32c792 100644--- a/web/src/components/next-markdown-content/index.tsx+++ b/web/src/components/next-markdown-content/index.tsx@@ -380,7 +380,7 @@ function MarkdownContent({<HoverCard key={i}><HoverCardTrigger><bdi className="text-text-secondary bg-bg-card rounded-2xl px-1 mx-1 text-nowrap inline-block">- {t('common.figure')} {chunkIndex + 1}+ [{chunkIndex + 1}]</bdi></HoverCardTrigger><HoverCardContent className="max-w-3xl">diff --git a/web/src/components/next-message-item/reference-image-list.tsx b/web/src/components/next-message-item/reference-image-list.tsxindex 0c5dacc8a0..aa417fcb0f 100644--- a/web/src/components/next-message-item/reference-image-list.tsx+++ b/web/src/components/next-message-item/reference-image-list.tsx@@ -60,7 +60,7 @@ function ImagePhotoView({ id, index }: ImageItem) {<Imageid={id}className="h-40 w-full"- label={`${t('common.figure')} ${(index + 1).toString()}`}+ label={`[${index + 1}]`}/></PhotoView>);diff --git a/web/src/locales/en.ts b/web/src/locales/en.tsindex dce87f4ff9..1c9716a86b 100644--- a/web/src/locales/en.ts+++ b/web/src/locales/en.ts@@ -1156,7 +1156,7 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-sthinkingLevelUltraDescription: 'Maximum cognitive effort',thinkingTip:'Only controls thinking mode for official Qwen, Kimi, and GLM model providers. System default disables Qwen thinking to avoid long-running tasks.',- quote: 'Show quote',+ quote: 'Show citations',quoteTip: 'Whether to display the original text as a reference.',selfRag: 'Self-RAG',selfRagTip: 'Please refer to: https://huggingface.co/papers/2310.11511',diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.tsindex fce5cac67f..ea7a6530bf 100644--- a/web/src/locales/zh.ts+++ b/web/src/locales/zh.ts@@ -44,7 +44,7 @@ export default {viewLess: '收起',comingSoon: '即将推出',download: '下载',- figure: '图',+ figure: '引文',close: '关闭',preview: '预览',move: '移动',diff --git a/web/src/pages/next-search/markdown-content/index.tsx b/web/src/pages/next-search/markdown-content/index.tsxindex fc8e0956d3..3f9369f940 100644--- a/web/src/pages/next-search/markdown-content/index.tsx+++ b/web/src/pages/next-search/markdown-content/index.tsx@@ -254,7 +254,7 @@ const MarkdownContent = ({<Popover><PopoverTrigger><span className="text-text-secondary bg-bg-card rounded-2xl px-1 mx-1 text-nowrap">- {t('common.figure')} {chunkIndex + 1}+ [{chunkIndex + 1}]</span></PopoverTrigger><PopoverContent className="!w-fit">