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
feat: add quote item to PromptEngine (#338)
balibabu73285d9d0791
diff --git a/web/src/locales/en.ts b/web/src/locales/en.tsindex 1dccda9f7d..430250bde2 100644--- a/web/src/locales/en.ts+++ b/web/src/locales/en.ts@@ -333,6 +333,8 @@ export default {maxTokensMessage: 'Max Tokens is required',maxTokensTip:'This sets the maximum length of the model’s output, measured in the number of tokens (words or pieces of words).',+ quote: 'Show Quote',+ quoteTip: 'Should the source of the original text be displayed?',},setting: {profile: 'Profile',diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.tsindex b2a3e7282a..b6af198966 100644--- a/web/src/locales/zh-traditional.ts+++ b/web/src/locales/zh-traditional.ts@@ -308,6 +308,8 @@ export default {maxTokensMessage: '最大token數是必填項',maxTokensTip:'這設置了模型輸出的最大長度,以標記(單詞或單詞片段)的數量來衡量。',+ quote: '顯示引文',+ quoteTip: '是否應該顯示原文出處?',},setting: {profile: '概述',diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.tsindex 0b2a86eb9c..e2bbd04828 100644--- a/web/src/locales/zh.ts+++ b/web/src/locales/zh.ts@@ -324,6 +324,8 @@ export default {maxTokensMessage: '最大token数是必填项',maxTokensTip:'这设置了模型输出的最大长度,以标记(单词或单词片段)的数量来衡量。',+ quote: '显示引文',+ quoteTip: '是否应该显示原文出处?',},setting: {profile: '概要',diff --git a/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx b/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsxindex 1e49bc9485..43d8c530e8 100644--- a/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx+++ b/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx@@ -172,6 +172,15 @@ const PromptEngine = (><Slider max={30} /></Form.Item>+ <Form.Item+ label={t('quote')}+ valuePropName="checked"+ name={['prompt_config', 'quote']}+ tooltip={t('quoteTip')}+ initialValue={true}+ >+ <Switch />+ </Form.Item><section className={classNames(styles.variableContainer)}><Row align={'middle'} justify="end"><Col span={7} className={styles.variableAlign}>diff --git a/web/src/pages/chat/index.tsx b/web/src/pages/chat/index.tsxindex e18d30cd4a..38f826c9a4 100644--- a/web/src/pages/chat/index.tsx+++ b/web/src/pages/chat/index.tsx@@ -177,7 +177,7 @@ const Chat = () => {label: (<Space><EditOutlined />- Edit+ {t('rename', { keyPrefix: 'common' })}</Space>),},@@ -188,7 +188,7 @@ const Chat = () => {label: (<Space><DeleteOutlined />- Delete chat+ {t('delete', { keyPrefix: 'common' })}</Space>),},