mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-19 12:39:59 +08:00
Feat: Add translation text to the prompt word of the generate operator to distinguish it from the prompt word of the knowledge base #6934 (#6935)
### What problem does this PR solve? Feat: Add translation text to the prompt word of the generate operator to distinguish it from the prompt word of the knowledge base #6934 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
43cf321942
commit
4b125f0ffe
@ -164,7 +164,8 @@ export default {
|
||||
rerankTip:
|
||||
'Wenn leer gelassen, verwendet RAGFlow eine Kombination aus gewichteter Schlüsselwortähnlichkeit und gewichteter Vektorkosinus-Ähnlichkeit; wenn ein Neuordnungsmodell ausgewählt wird, ersetzt eine gewichtete Neuordnungsbewertung die gewichtete Vektorkosinus-Ähnlichkeit. Bitte beachten Sie, dass die Verwendung eines Neuordnungsmodells die Antwortzeit des Systems erheblich erhöht.',
|
||||
topK: 'Top-K',
|
||||
topKTip: 'In Verbindung mit dem Rerank model wird mit dieser Einstellung die Anzahl der Textblöcke festgelegt, die an das angegebene reranking model gesendet werden.',
|
||||
topKTip:
|
||||
'In Verbindung mit dem Rerank model wird mit dieser Einstellung die Anzahl der Textblöcke festgelegt, die an das angegebene reranking model gesendet werden.',
|
||||
delimiter: 'Trennzeichen für Textsegmentierung',
|
||||
delimiterTip:
|
||||
'Ein Trennzeichen oder Separator kann aus einem oder mehreren Sonderzeichen bestehen. Bei mehreren Zeichen stellen Sie sicher, dass sie in Backticks (` `) eingeschlossen sind. Wenn Sie beispielsweise Ihre Trennzeichen so konfigurieren: \\n`##`;, dann werden Ihre Texte an Zeilenumbrüchen, doppelten Rautenzeichen (##) oder Semikolons getrennt. Setzen Sie Trennzeichen nur nachdem Sie das Mechanismus der Textsegmentierung und -chunking verstanden haben.',
|
||||
@ -1221,6 +1222,10 @@ export default {
|
||||
nextStep: 'Nächster Schritt',
|
||||
datatype: 'MIME-Typ der HTTP-Anfrage',
|
||||
insertVariableTip: 'Eingabe / Variablen einfügen',
|
||||
prompt: 'Prompt',
|
||||
promptTip:
|
||||
'Verwenden Sie den Systemprompt, um die Aufgabe für das LLM zu beschreiben, festzulegen, wie es antworten soll, und andere verschiedene Anforderungen zu skizzieren. Der Systemprompt wird oft in Verbindung mit Schlüsseln (Variablen) verwendet, die als verschiedene Dateninputs für das LLM dienen. Verwenden Sie einen Schrägstrich `/` oder die (x)-Schaltfläche, um die zu verwendenden Schlüssel anzuzeigen.',
|
||||
promptMessage: 'Prompt ist erforderlich',
|
||||
},
|
||||
footer: {
|
||||
profile: 'Alle Rechte vorbehalten @ React',
|
||||
|
@ -1247,6 +1247,10 @@ This delimiter is used to split the input text into several text pieces echo of
|
||||
knowledge: 'knowledge',
|
||||
chat: 'chat',
|
||||
},
|
||||
prompt: 'Prompt',
|
||||
promptTip:
|
||||
'Use the system prompt to describe the task for the LLM, specify how it should respond, and outline other miscellaneous requirements. The system prompt is often used in conjunction with keys (variables), which serve as various data inputs for the LLM. Use a forward slash `/` or the (x) button to show the keys to use.',
|
||||
promptMessage: 'Prompt is required',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -1010,6 +1010,10 @@ export default {
|
||||
note: 'Catatan',
|
||||
noteDescription: 'Catatan',
|
||||
notePlaceholder: 'Silakan masukkan catatan',
|
||||
prompt: 'Prompt',
|
||||
promptTip:
|
||||
'Gunakan prompt sistem untuk menjelaskan tugas untuk LLM, tentukan bagaimana harus merespons, dan menguraikan persyaratan lainnya. Prompt sistem sering digunakan bersama dengan kunci (variabel), yang berfungsi sebagai berbagai input data untuk LLM. Gunakan garis miring `/` atau tombol (x) untuk menampilkan kunci yang digunakan.',
|
||||
promptMessage: 'Prompt diperlukan',
|
||||
},
|
||||
footer: {
|
||||
profile: 'Semua hak dilindungi @ React',
|
||||
|
@ -1078,6 +1078,10 @@ export default {
|
||||
contentTip: 'content: メールの内容(オプション)',
|
||||
jsonUploadTypeErrorMessage: 'jsonファイルをアップロードしてください',
|
||||
jsonUploadContentErrorMessage: 'jsonファイルエラー',
|
||||
prompt: 'プロンプト',
|
||||
promptTip:
|
||||
'LLMのタスクを説明し、どのように応答すべきかを指定し、他のさまざまな要件を概説するためにシステムプロンプトを使用します。システムプロンプトは、LLMのさまざまなデータ入力として機能するキー(変数)と共に使用されることがよくあります。使用するキーを表示するには、スラッシュ `/` または (x) ボタンを使用します。',
|
||||
promptMessage: 'プロンプトは必須です',
|
||||
},
|
||||
footer: {
|
||||
profile: 'All rights reserved @ React',
|
||||
|
@ -161,7 +161,8 @@ export default {
|
||||
rerankTip:
|
||||
'Se deixado vazio, o RAGFlow usará uma combinação de similaridade de palavras-chave ponderada e similaridade de cosseno vetorial ponderada; se um modelo de reranking for selecionado, uma pontuação de reranking ponderada substituirá a similaridade de cosseno vetorial ponderada. Esteja ciente de que usar um modelo de reranking aumentará significativamente o tempo de resposta do sistema.',
|
||||
topK: 'Top-K',
|
||||
topKTip: 'Usado em conjunto com o Rerank model, essa configuração define o número de trechos de texto a serem enviados ao modelo reranking especificado.',
|
||||
topKTip:
|
||||
'Usado em conjunto com o Rerank model, essa configuração define o número de trechos de texto a serem enviados ao modelo reranking especificado.',
|
||||
delimiter: 'Delimitadores para segmentação de texto',
|
||||
delimiterTip:
|
||||
'Um delimitador ou separador pode consistir em um ou vários caracteres especiais. Se for múltiplos caracteres, certifique-se de que estejam entre crases (``). Por exemplo, se você configurar seus delimitadores assim: \\n`##`;, seus textos serão separados em quebras de linha, símbolos de hash duplo (##) ou ponto e vírgula. Defina os delimitadores apenas após entender o mecanismo de segmentação e particionamento de texto.',
|
||||
@ -1121,6 +1122,11 @@ export default {
|
||||
addCategory: 'Adicionar categoria',
|
||||
categoryName: 'Nome da categoria',
|
||||
nextStep: 'Próximo passo',
|
||||
prompt: 'Prompt',
|
||||
promptTip:
|
||||
'Use o prompt do sistema para descrever a tarefa para o LLM, especificar como ele deve responder e esboçar outros requisitos diversos. O prompt do sistema é frequentemente usado em conjunto com chaves (variáveis), que servem como várias entradas de dados para o LLM. Use uma barra `/` ou o botão (x) para mostrar as chaves a serem usadas.',
|
||||
promptMessage: 'O prompt é obrigatório',
|
||||
},
|
||||
footer: {
|
||||
profile: 'Todos os direitos reservados @ React',
|
||||
},
|
||||
@ -1130,5 +1136,4 @@ export default {
|
||||
chat: 'bate-papo',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -1148,6 +1148,10 @@ export default {
|
||||
minus: 'Dash',
|
||||
semicolon: 'Semicolon',
|
||||
},
|
||||
prompt: 'Nhắc nhở',
|
||||
promptTip:
|
||||
'Sử dụng lời nhắc hệ thống để mô tả nhiệm vụ cho LLM, chỉ định cách nó nên phản hồi và phác thảo các yêu cầu khác nhau. Lời nhắc hệ thống thường được sử dụng kết hợp với các khóa (biến), đóng vai trò là các đầu vào dữ liệu khác nhau cho LLM. Sử dụng dấu gạch chéo `/` hoặc nút (x) để hiển thị các khóa cần sử dụng.',
|
||||
promptMessage: 'Nhắc nhở là bắt buộc',
|
||||
},
|
||||
footer: {
|
||||
profile: 'All rights reserved @ React',
|
||||
|
@ -1145,6 +1145,9 @@ export default {
|
||||
categoryName: '分類名稱',
|
||||
nextStep: '下一步',
|
||||
insertVariableTip: `輸入 / 插入變數`,
|
||||
promptMessage: '提示詞是必填項',
|
||||
promptTip:
|
||||
'系統提示為大型模型提供任務描述、規定回覆方式,以及設定其他各種要求。系統提示通常與 key(變數)合用,透過變數設定大型模型的輸入資料。你可以透過斜線或 (x) 按鈕顯示可用的 key。',
|
||||
},
|
||||
footer: {
|
||||
profile: '“保留所有權利 @ react”',
|
||||
|
@ -1200,6 +1200,11 @@ General:实体和关系提取提示来自 GitHub - microsoft/graphrag:基于
|
||||
me: '仅限自己',
|
||||
team: '团队',
|
||||
},
|
||||
systemPrompt: '系统提示词',
|
||||
prompt: '提示词',
|
||||
promptMessage: '提示词是必填项',
|
||||
promptTip:
|
||||
'系统提示为大模型提供任务描述、规定回复方式,以及设置其他各种要求。系统提示通常与 key (变量)合用,通过变量设置大模型的输入数据。你可以通过斜杠或者 (x) 按钮显示可用的 key。',
|
||||
},
|
||||
footer: {
|
||||
profile: 'All rights reserved @ React',
|
||||
|
@ -44,7 +44,7 @@ const GenerateForm = ({ form }: INextOperatorForm) => {
|
||||
name="prompt"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel tooltip={t('knowledgeConfiguration.promptTip')}>
|
||||
<FormLabel tooltip={t('flow.promptTip')}>
|
||||
{t('flow.systemPrompt')}
|
||||
</FormLabel>
|
||||
<FormControl>
|
||||
|
@ -27,7 +27,7 @@ const GenerateForm = ({ onValuesChange, form }: IOperatorForm) => {
|
||||
name={['prompt']}
|
||||
label={t('systemPrompt')}
|
||||
initialValue={t('promptText')}
|
||||
tooltip={t('promptTip', { keyPrefix: 'knowledgeConfiguration' })}
|
||||
tooltip={t('promptTip')}
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user