diff --git a/src/assets/locale/en/settings.json b/src/assets/locale/en/settings.json index ec24553..0396fda 100644 --- a/src/assets/locale/en/settings.json +++ b/src/assets/locale/en/settings.json @@ -217,41 +217,6 @@ "label": "Ollama URL", "placeholder": "Enter Ollama URL" }, - "ragSettings": { - "label": "RAG Settings", - "model": { - "label": "Embedding Model", - "required": "Please select a model", - "help": "Highly recommended to use embedding models like `nomic-embed-text`.", - "placeholder": "Select a model" - }, - "chunkSize": { - "label": "Chunk Size", - "placeholder": "Enter Chunk Size", - "required": "Please enter a chunk size" - }, - "chunkOverlap": { - "label": "Chunk Overlap", - "placeholder": "Enter Chunk Overlap", - "required": "Please enter a chunk overlap" - } - }, - "prompt": { - "label": "Configure RAG Prompt", - "option1": "Normal", - "option2": "Web", - "alert": "Configuring the system prompt here is deprecated. Please use the Manage Prompts section to add or edit prompts. This section will be removed in a future release", - "systemPrompt": "System Prompt", - "systemPromptPlaceholder": "Enter System Prompt", - "webSearchPrompt": "Web Search Prompt", - "webSearchPromptHelp": "Do not remove `{search_results}` from the prompt.", - "webSearchPromptError": "Please enter a web search prompt", - "webSearchPromptPlaceholder": "Enter Web Search Prompt", - "webSearchFollowUpPrompt": "Web Search Follow Up Prompt", - "webSearchFollowUpPromptHelp": "Do not remove `{chat_history}` and `{question}` from the prompt.", - "webSearchFollowUpPromptError": "Please input your Web Search Follow Up Prompt!", - "webSearchFollowUpPromptPlaceholder": "Your Web Search Follow Up Prompt" - }, "advanced": { "label": "Advance Ollama URL Configuration", "urlRewriteEnabled": { @@ -282,5 +247,43 @@ "manageKnowledge": { "title": "Manage Knowledge", "heading": "Configure Knowledge Base" + }, + "rag": { + "title": "RAG Settings", + "ragSettings": { + "label": "RAG Settings", + "model": { + "label": "Embedding Model", + "required": "Please select a model", + "help": "Highly recommended to use embedding models like `nomic-embed-text`.", + "placeholder": "Select a model" + }, + "chunkSize": { + "label": "Chunk Size", + "placeholder": "Enter Chunk Size", + "required": "Please enter a chunk size" + }, + "chunkOverlap": { + "label": "Chunk Overlap", + "placeholder": "Enter Chunk Overlap", + "required": "Please enter a chunk overlap" + } + }, + "prompt": { + "label": "Configure RAG Prompt", + "option1": "Normal", + "option2": "Web", + "alert": "Configuring the system prompt here is deprecated. Please use the Manage Prompts section to add or edit prompts. This section will be removed in a future release", + "systemPrompt": "System Prompt", + "systemPromptPlaceholder": "Enter System Prompt", + "webSearchPrompt": "Web Search Prompt", + "webSearchPromptHelp": "Do not remove `{search_results}` from the prompt.", + "webSearchPromptError": "Please enter a web search prompt", + "webSearchPromptPlaceholder": "Enter Web Search Prompt", + "webSearchFollowUpPrompt": "Web Search Follow Up Prompt", + "webSearchFollowUpPromptHelp": "Do not remove `{chat_history}` and `{question}` from the prompt.", + "webSearchFollowUpPromptError": "Please input your Web Search Follow Up Prompt!", + "webSearchFollowUpPromptPlaceholder": "Your Web Search Follow Up Prompt" + } } } \ No newline at end of file diff --git a/src/assets/locale/fr/settings.json b/src/assets/locale/fr/settings.json index adf90c9..e06e7ed 100644 --- a/src/assets/locale/fr/settings.json +++ b/src/assets/locale/fr/settings.json @@ -217,41 +217,6 @@ "label": "Url de Ollama", "placeholder": "Entrer l'url de Ollama" }, - "ragSettings": { - "label": "Paramètres de RAG", - "model": { - "label": "Modèle d'embedding", - "required": "Veuillez sélectionner un modèle", - "help": "Fortement recommandé d'utiliser des modèles d'embedding comme «momic-embed-text».", - "placeholder": "Sélectionnez un modèle" - }, - "chunkSize": { - "label": "Taille", - "placeholder": "Entrez la taille du morceau", - "required": "Veuillez saisir une taille" - }, - "chunkOverlap": { - "label": "Chevauchement", - "placeholder": "Entrez le chevauchement des morceaux", - "required": "Veuillez saisir un chevauchement" - } - }, - "prompt": { - "label": "Configure RAG Prompt", - "option1": "Normal", - "option2": "Web", - "alert": "La configuration du prompt système ici est déconseillée. Veuillez utiliser la section Gérer les prompts pour ajouter...", - "systemPrompt": "Prompt système", - "systemPromptPlaceholder": "Entrez le prompt système", - "webSearchPrompt": "Prompt de recherche Web", - "webSearchPromptHelp": "Ne supprimez pas `{search_results}` du prompt.", - "webSearchPromptError": "Veuillez saisir un prompt de recherche Web", - "webSearchPromptPlaceholder": "Entrez le prompt de recherche Web", - "webSearchFollowUpPrompt": "Prompt de suivi de recherche Web", - "webSearchFollowUpPromptHelp": "Ne supprimez pas `{chat_history}` et `{question}` du prompt.", - "webSearchFollowUpPromptError": "Veuillez saisir votre prompt de suivi de recherche Web!", - "webSearchFollowUpPromptPlaceholder": "Votre prompt de suivi de recherche Web" - }, "advanced": { "label": "Configuration avancée de l'URL de Ollama", "urlRewriteEnabled": { @@ -282,5 +247,43 @@ "manageKnowledge": { "title": "Gérer les connaissances", "heading": "Configurer la base de connaissances" + }, + "rag": { + "title": "Paramètres de RAG", + "ragSettings": { + "label": "Paramètres de RAG", + "model": { + "label": "Modèle d'embedding", + "required": "Veuillez sélectionner un modèle", + "help": "Fortement recommandé d'utiliser des modèles d'embedding comme «momic-embed-text».", + "placeholder": "Sélectionnez un modèle" + }, + "chunkSize": { + "label": "Taille", + "placeholder": "Entrez la taille du morceau", + "required": "Veuillez saisir une taille" + }, + "chunkOverlap": { + "label": "Chevauchement", + "placeholder": "Entrez le chevauchement des morceaux", + "required": "Veuillez saisir un chevauchement" + } + }, + "prompt": { + "label": "Configure RAG Prompt", + "option1": "Normal", + "option2": "Web", + "alert": "La configuration du prompt système ici est déconseillée. Veuillez utiliser la section Gérer les prompts pour ajouter...", + "systemPrompt": "Prompt système", + "systemPromptPlaceholder": "Entrez le prompt système", + "webSearchPrompt": "Prompt de recherche Web", + "webSearchPromptHelp": "Ne supprimez pas `{search_results}` du prompt.", + "webSearchPromptError": "Veuillez saisir un prompt de recherche Web", + "webSearchPromptPlaceholder": "Entrez le prompt de recherche Web", + "webSearchFollowUpPrompt": "Prompt de suivi de recherche Web", + "webSearchFollowUpPromptHelp": "Ne supprimez pas `{chat_history}` et `{question}` du prompt.", + "webSearchFollowUpPromptError": "Veuillez saisir votre prompt de suivi de recherche Web!", + "webSearchFollowUpPromptPlaceholder": "Votre prompt de suivi de recherche Web" + } } } \ No newline at end of file diff --git a/src/assets/locale/it/settings.json b/src/assets/locale/it/settings.json index 7ab29d8..c083e5f 100644 --- a/src/assets/locale/it/settings.json +++ b/src/assets/locale/it/settings.json @@ -217,41 +217,6 @@ "label": "Ollama URL", "placeholder": "Inserici l'URL di Ollama" }, - "ragSettings": { - "label": "Impostazioni RAG", - "model": { - "label": "Modello di Embedding", - "required": "Scegliere il modello", - "help": "E' raccomandato l'uso di modelli come `nomic-embed-text`.", - "placeholder": "Seleziona un modello" - }, - "chunkSize": { - "label": "Dimensione del Blocco (Chunk Size)", - "placeholder": "Inserisci la Dimensione del Blocco (Chunk Size)", - "required": "Inserisci la Dimensione del Blocco (chunk size)" - }, - "chunkOverlap": { - "label": "Sovrapposizione del Blocco (Chunk Overlap)", - "placeholder": "Inserisci la Sovrapposizione del Blocco (Chunk Overlap)", - "required": "Inserisci la Sovrapposizione del Blocco" - } - }, - "prompt": { - "label": "Configura il Prompt RAG", - "option1": "Normale", - "option2": "Web", - "alert": "La configurazione del prompt di sistema qui è deprecato. Usa la sezione Gestione Prompt per aggiungere o modificare i prompts.Questa sezione sarà eliminata nelle prossime release", - "systemPrompt": "Prompt di Sistema", - "systemPromptPlaceholder": "Inserisci il Prompt di Sistema", - "webSearchPrompt": "Prompt per la Ricerca Web", - "webSearchPromptHelp": "Non rimuovere `{search_results}` dal prompt.", - "webSearchPromptError": "Inserisci il prompt per la ricerca web", - "webSearchPromptPlaceholder": "Imserosco il Prompt per la Ricerca Web", - "webSearchFollowUpPrompt": "Prompt di Follow Up sulla Ricerca Web", - "webSearchFollowUpPromptHelp": "Non rimuovere `{chat_history}` e `{question}` dal prompt.", - "webSearchFollowUpPromptError": "Inserisci il Prompt di Follow Up della Ricerca Web!", - "webSearchFollowUpPromptPlaceholder": "I tuoi Prompt di Follow Up delle Ricerche Web" - }, "advanced": { "label": "Configurazione Avanzata Ollama URL", "urlRewriteEnabled": { @@ -282,5 +247,43 @@ "manageKnowledge": { "title": "Gestisci Conoscenza", "heading": "Configura Base di Conoscenza" + }, + "rag": { + "title": "Impostazioni RAG", + "ragSettings": { + "label": "Impostazioni RAG", + "model": { + "label": "Modello di Embedding", + "required": "Scegliere il modello", + "help": "E' raccomandato l'uso di modelli come `nomic-embed-text`.", + "placeholder": "Seleziona un modello" + }, + "chunkSize": { + "label": "Dimensione del Blocco (Chunk Size)", + "placeholder": "Inserisci la Dimensione del Blocco (Chunk Size)", + "required": "Inserisci la Dimensione del Blocco (chunk size)" + }, + "chunkOverlap": { + "label": "Sovrapposizione del Blocco (Chunk Overlap)", + "placeholder": "Inserisci la Sovrapposizione del Blocco (Chunk Overlap)", + "required": "Inserisci la Sovrapposizione del Blocco" + } + }, + "prompt": { + "label": "Configura il Prompt RAG", + "option1": "Normale", + "option2": "Web", + "alert": "La configurazione del prompt di sistema qui è deprecato. Usa la sezione Gestione Prompt per aggiungere o modificare i prompts.Questa sezione sarà eliminata nelle prossime release", + "systemPrompt": "Prompt di Sistema", + "systemPromptPlaceholder": "Inserisci il Prompt di Sistema", + "webSearchPrompt": "Prompt per la Ricerca Web", + "webSearchPromptHelp": "Non rimuovere `{search_results}` dal prompt.", + "webSearchPromptError": "Inserisci il prompt per la ricerca web", + "webSearchPromptPlaceholder": "Imserosco il Prompt per la Ricerca Web", + "webSearchFollowUpPrompt": "Prompt di Follow Up sulla Ricerca Web", + "webSearchFollowUpPromptHelp": "Non rimuovere `{chat_history}` e `{question}` dal prompt.", + "webSearchFollowUpPromptError": "Inserisci il Prompt di Follow Up della Ricerca Web!", + "webSearchFollowUpPromptPlaceholder": "I tuoi Prompt di Follow Up delle Ricerche Web" + } } -} +} \ No newline at end of file diff --git a/src/assets/locale/ja-JP/settings.json b/src/assets/locale/ja-JP/settings.json index 5f6e25d..cef567f 100644 --- a/src/assets/locale/ja-JP/settings.json +++ b/src/assets/locale/ja-JP/settings.json @@ -220,41 +220,6 @@ "label": "OllamaのURL", "placeholder": "OllamaのURLを入力" }, - "ragSettings": { - "label": "RAGの設定", - "model": { - "label": "エンベディングモデル", - "required": "モデルを選択してください", - "help": "`nomic-embed-text`などのエンベディングモデルの使用を強くおすすめします。", - "placeholder": "モデルを選択" - }, - "chunkSize": { - "label": "チャンクサイズ", - "placeholder": "チャンクサイズを入力", - "required": "チャンクサイズを入力してください" - }, - "chunkOverlap": { - "label": "チャンクオーバーラップ", - "placeholder": "チャンクオーバーラップを入力", - "required": "チャンクオーバーラップを入力してください" - } - }, - "prompt": { - "label": "RAGプロンプトを設定", - "option1": "通常", - "option2": "Web", - "alert": "ここでシステムプロンプトを設定することは非推奨となりました。プロンプトの追加や編集には「プロンプトを管理」セクションをご利用ください。このセクションは今後のリリースで削除される予定です。", - "systemPrompt": "システムプロンプト", - "systemPromptPlaceholder": "システムプロンプトを入力", - "webSearchPrompt": "Web検索プロンプト", - "webSearchPromptHelp": "プロンプトから`{search_results}`を削除しないでください。", - "webSearchPromptError": "Web検索プロンプトを入力してください", - "webSearchPromptPlaceholder": "Web検索プロンプトを入力", - "webSearchFollowUpPrompt": "Web検索フォローアッププロンプト", - "webSearchFollowUpPromptHelp": "プロンプトから`{chat_history}`と`{question}`を削除しないでください。", - "webSearchFollowUpPromptError": "Web検索フォローアッププロンプトを入力してください!", - "webSearchFollowUpPromptPlaceholder": "Web検索フォローアッププロンプト" - }, "advanced": { "label": "Ollama URL の高度な設定", "urlRewriteEnabled": { @@ -285,5 +250,43 @@ "manageKnowledge": { "title": "知識を管理する", "heading": "知識ベースを構成する" + }, + "rag": { + "title": "RAGの設定", + "ragSettings": { + "label": "RAGの設定", + "model": { + "label": "エンベディングモデル", + "required": "モデルを選択してください", + "help": "`nomic-embed-text`などのエンベディングモデルの使用を強くおすすめします。", + "placeholder": "モデルを選択" + }, + "chunkSize": { + "label": "チャンクサイズ", + "placeholder": "チャンクサイズを入力", + "required": "チャンクサイズを入力してください" + }, + "chunkOverlap": { + "label": "チャンクオーバーラップ", + "placeholder": "チャンクオーバーラップを入力", + "required": "チャンクオーバーラップを入力してください" + } + }, + "prompt": { + "label": "RAGプロンプトを設定", + "option1": "通常", + "option2": "Web", + "alert": "ここでシステムプロンプトを設定することは非推奨となりました。プロンプトの追加や編集には「プロンプトを管理」セクションをご利用ください。このセクションは今後のリリースで削除される予定です。", + "systemPrompt": "システムプロンプト", + "systemPromptPlaceholder": "システムプロンプトを入力", + "webSearchPrompt": "Web検索プロンプト", + "webSearchPromptHelp": "プロンプトから`{search_results}`を削除しないでください。", + "webSearchPromptError": "Web検索プロンプトを入力してください", + "webSearchPromptPlaceholder": "Web検索プロンプトを入力", + "webSearchFollowUpPrompt": "Web検索フォローアッププロンプト", + "webSearchFollowUpPromptHelp": "プロンプトから`{chat_history}`と`{question}`を削除しないでください。", + "webSearchFollowUpPromptError": "Web検索フォローアッププロンプトを入力してください!", + "webSearchFollowUpPromptPlaceholder": "Web検索フォローアッププロンプト" + } } } \ No newline at end of file diff --git a/src/assets/locale/ml/settings.json b/src/assets/locale/ml/settings.json index 5c3c8e4..b83a07e 100644 --- a/src/assets/locale/ml/settings.json +++ b/src/assets/locale/ml/settings.json @@ -220,41 +220,6 @@ "label": "Ollama URL", "placeholder": "Ollama URL നല്കുക" }, - "ragSettings": { - "label": "RAG സെറ്റിംഗുകൾ", - "model": { - "label": "എംബെഡിംഗ് മോഡല്‍", - "required": "ദയവായി ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക", - "help": "`nomic-embed-text` പോലുള്ള എംബെഡിംഗ് മോഡലുകള്‍ ഉപയോഗിക്കുന്നത് വളരെ നന്നായിരിക്കും.", - "placeholder": "ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക" - }, - "chunkSize": { - "label": "ചങ്ക് വലുപ്പം", - "placeholder": "ചങ്ക് വലുപ്പം നല്കുക", - "required": "ദയവായി ചങ്ക് വലുപ്പം നല്കുക" - }, - "chunkOverlap": { - "label": "ചങ്ക് ഓവര്‍ലാപ്പ്", - "placeholder": "ചങ്ക് ഓവര്‍ലാപ്പ് നല്കുക", - "required": "ദയവായി ചങ്ക് ഓവര്‍ലാപ്പ് നല്കുക" - } - }, - "prompt": { - "label": "RAG പ്രോംപ്റ്റ് കോൺഫിഗർ ചെയ്യുക", - "option1": "സാധാരണ", - "option2": "വെബ്", - "alert": "സിസ്റ്റം പ്രോംപ്റ്റ് ഇവിടെ കോൺഫിഗർ ചെയ്യുന്നത് പഴയൗഖികമായി. ദയവായി പ്രോംപ്റ്റുകള്‍ ചേര്‍ക്കാനോ എഡിറ്റുചെയ്യാനോ മാനേജ് പ്രോംപ്റ്റ്‌സ് സെക്ഷന്‍ ഉപയോഗിക്കുക. ഈ സെക്ഷന്‍ ഭാവിയില്‍ നീക്കം ചെയ്യപ്പെടും.", - "systemPrompt": "സിസ്റ്റം പ്രോംപ്റ്റ്", - "systemPromptPlaceholder": "സിസ്റ്റം പ്രോംപ്റ്റ് നല്കുക", - "webSearchPrompt": "വെബ് തിരയല്‍ പ്രോംപ്റ്റ്", - "webSearchPromptHelp": "പ്രോംപ്റ്റില്‍ നിന്ന് `{search_results}` നീക്കം ചെയ്യരുത്.", - "webSearchPromptError": "ദയവായി ഒരു വെബ് തിരയല്‍ പ്രോംപ്റ്റ് നല്കുക", - "webSearchPromptPlaceholder": "വെബ് തിരയല്‍ പ്രോംപ്റ്റ് നല്കുക", - "webSearchFollowUpPrompt": "വെബ് തിരയല്‍ തുടര്‍പ്രോംപ്റ്റ്", - "webSearchFollowUpPromptHelp": "പ്രോംപ്റ്റില്‍ നിന്ന് `{chat_history}` യും `{question}` യും നീക്കം ചെയ്യരുത്.", - "webSearchFollowUpPromptError": "ദയവായി നിങ്ങളുടെ വെബ് തിരയല്‍ തുടര്‍പ്രോംപ്റ്റ് നല്കുക!", - "webSearchFollowUpPromptPlaceholder": "നിങ്ങളുടെ വെബ് തിരയല്‍ തുടര്‍പ്രോംപ്റ്റ്" - }, "advanced": { "label": "Advance Ollama URL Configuration", "urlRewriteEnabled": { @@ -285,5 +250,43 @@ "manageKnowledge": { "title": "വിജ്ഞാനം നിര്‍വ്വഹിക്കുക", "heading": "വിജ്ഞാനാധാരം കോണ്‍ഫിഗര്‍ ചെയ്യുക" + }, + "rag": { + "title": "RAG സെറ്റിംഗുകൾ", + "ragSettings": { + "label": "RAG സെറ്റിംഗുകൾ", + "model": { + "label": "എംബെഡിംഗ് മോഡല്‍", + "required": "ദയവായി ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക", + "help": "`nomic-embed-text` പോലുള്ള എംബെഡിംഗ് മോഡലുകള്‍ ഉപയോഗിക്കുന്നത് വളരെ നന്നായിരിക്കും.", + "placeholder": "ഒരു മോഡല്‍ തിരഞ്ഞെടുക്കുക" + }, + "chunkSize": { + "label": "ചങ്ക് വലുപ്പം", + "placeholder": "ചങ്ക് വലുപ്പം നല്കുക", + "required": "ദയവായി ചങ്ക് വലുപ്പം നല്കുക" + }, + "chunkOverlap": { + "label": "ചങ്ക് ഓവര്‍ലാപ്പ്", + "placeholder": "ചങ്ക് ഓവര്‍ലാപ്പ് നല്കുക", + "required": "ദയവായി ചങ്ക് ഓവര്‍ലാപ്പ് നല്കുക" + } + }, + "prompt": { + "label": "RAG പ്രോംപ്റ്റ് കോൺഫിഗർ ചെയ്യുക", + "option1": "സാധാരണ", + "option2": "വെബ്", + "alert": "സിസ്റ്റം പ്രോംപ്റ്റ് ഇവിടെ കോൺഫിഗർ ചെയ്യുന്നത് പഴയൗഖികമായി. ദയവായി പ്രോംപ്റ്റുകള്‍ ചേര്‍ക്കാനോ എഡിറ്റുചെയ്യാനോ മാനേജ് പ്രോംപ്റ്റ്‌സ് സെക്ഷന്‍ ഉപയോഗിക്കുക. ഈ സെക്ഷന്‍ ഭാവിയില്‍ നീക്കം ചെയ്യപ്പെടും.", + "systemPrompt": "സിസ്റ്റം പ്രോംപ്റ്റ്", + "systemPromptPlaceholder": "സിസ്റ്റം പ്രോംപ്റ്റ് നല്കുക", + "webSearchPrompt": "വെബ് തിരയല്‍ പ്രോംപ്റ്റ്", + "webSearchPromptHelp": "പ്രോംപ്റ്റില്‍ നിന്ന് `{search_results}` നീക്കം ചെയ്യരുത്.", + "webSearchPromptError": "ദയവായി ഒരു വെബ് തിരയല്‍ പ്രോംപ്റ്റ് നല്കുക", + "webSearchPromptPlaceholder": "വെബ് തിരയല്‍ പ്രോംപ്റ്റ് നല്കുക", + "webSearchFollowUpPrompt": "വെബ് തിരയല്‍ തുടര്‍പ്രോംപ്റ്റ്", + "webSearchFollowUpPromptHelp": "പ്രോംപ്റ്റില്‍ നിന്ന് `{chat_history}` യും `{question}` യും നീക്കം ചെയ്യരുത്.", + "webSearchFollowUpPromptError": "ദയവായി നിങ്ങളുടെ വെബ് തിരയല്‍ തുടര്‍പ്രോംപ്റ്റ് നല്കുക!", + "webSearchFollowUpPromptPlaceholder": "നിങ്ങളുടെ വെബ് തിരയല്‍ തുടര്‍പ്രോംപ്റ്റ്" + } } } \ No newline at end of file diff --git a/src/assets/locale/pt-BR/settings.json b/src/assets/locale/pt-BR/settings.json index 1c2aae9..fb22698 100644 --- a/src/assets/locale/pt-BR/settings.json +++ b/src/assets/locale/pt-BR/settings.json @@ -217,41 +217,6 @@ "label": "URL do Ollama", "placeholder": "Insira a URL do Ollama" }, - "ragSettings": { - "label": "Configurações do RAG", - "model": { - "label": "Modelo de Incorporação", - "required": "Por favor, selecione um modelo", - "help": "É altamente recomendável usar modelos de incorporação como `nomic-embed-text`.", - "placeholder": "Selecione um modelo" - }, - "chunkSize": { - "label": "Tamanho do Chunk", - "placeholder": "Insira o tamanho do chunk", - "required": "Por favor, insira o tamanho do chunk" - }, - "chunkOverlap": { - "label": "Sobreposição do Chunk", - "placeholder": "Insira a sobreposição do chunk", - "required": "Por favor, insira a sobreposição do chunk" - } - }, - "prompt": { - "label": "Configurar Prompt do RAG", - "option1": "Normal", - "option2": "Web", - "alert": "Configurar o prompt do sistema aqui está depreciado. Por favor, use a seção Gerenciar Prompts para adicionar ou editar prompts. Esta seção será removida em uma versão futura", - "systemPrompt": "Prompt do Sistema", - "systemPromptPlaceholder": "Insira o prompt do sistema", - "webSearchPrompt": "Prompt de Pesquisa na Web", - "webSearchPromptHelp": "Não remova `{search_results}` do prompt.", - "webSearchPromptError": "Por favor, insira um prompt de pesquisa na web", - "webSearchPromptPlaceholder": "Insira o prompt de pesquisa na web", - "webSearchFollowUpPrompt": "Prompt de Seguimento de Pesquisa na Web", - "webSearchFollowUpPromptHelp": "Não remova `{chat_history}` e `{question}` do prompt.", - "webSearchFollowUpPromptError": "Por favor, insira o prompt de seguimento de pesquisa na web", - "webSearchFollowUpPromptPlaceholder": "Seu prompt de seguimento de pesquisa na web" - }, "advanced": { "label": "Configuração Avançada da URL do Ollama", "urlRewriteEnabled": { @@ -282,5 +247,43 @@ "manageKnowledge": { "title": "Gerenciar Conhecimento", "heading": "Configurar Base de Conhecimento" + }, + "rag": { + "title": "Configurações do RAG", + "ragSettings": { + "label": "Configurações do RAG", + "model": { + "label": "Modelo de Incorporação", + "required": "Por favor, selecione um modelo", + "help": "É altamente recomendável usar modelos de incorporação como `nomic-embed-text`.", + "placeholder": "Selecione um modelo" + }, + "chunkSize": { + "label": "Tamanho do Chunk", + "placeholder": "Insira o tamanho do chunk", + "required": "Por favor, insira o tamanho do chunk" + }, + "chunkOverlap": { + "label": "Sobreposição do Chunk", + "placeholder": "Insira a sobreposição do chunk", + "required": "Por favor, insira a sobreposição do chunk" + } + }, + "prompt": { + "label": "Configurar Prompt do RAG", + "option1": "Normal", + "option2": "Web", + "alert": "Configurar o prompt do sistema aqui está depreciado. Por favor, use a seção Gerenciar Prompts para adicionar ou editar prompts. Esta seção será removida em uma versão futura", + "systemPrompt": "Prompt do Sistema", + "systemPromptPlaceholder": "Insira o prompt do sistema", + "webSearchPrompt": "Prompt de Pesquisa na Web", + "webSearchPromptHelp": "Não remova `{search_results}` do prompt.", + "webSearchPromptError": "Por favor, insira um prompt de pesquisa na web", + "webSearchPromptPlaceholder": "Insira o prompt de pesquisa na web", + "webSearchFollowUpPrompt": "Prompt de Seguimento de Pesquisa na Web", + "webSearchFollowUpPromptHelp": "Não remova `{chat_history}` e `{question}` do prompt.", + "webSearchFollowUpPromptError": "Por favor, insira o prompt de seguimento de pesquisa na web", + "webSearchFollowUpPromptPlaceholder": "Seu prompt de seguimento de pesquisa na web" + } } -} +} \ No newline at end of file diff --git a/src/assets/locale/ru/settings.json b/src/assets/locale/ru/settings.json index 2a48c43..d745db8 100644 --- a/src/assets/locale/ru/settings.json +++ b/src/assets/locale/ru/settings.json @@ -217,41 +217,7 @@ "label": "URL Ollama", "placeholder": "Введите URL Ollama" }, - "ragSettings": { - "label": "Настройки RAG", - "model": { - "label": "Модель вложения", - "required": "Пожалуйста, выберите модель", - "help": "Настоятельно рекомендуется использовать модели вложения, например, `nomic-embed-text`.", - "placeholder": "Выберите модель" - }, - "chunkSize": { - "label": "Размер фрагмента", - "placeholder": "Введите размер фрагмента", - "required": "Пожалуйста, введите размер фрагмента" - }, - "chunkOverlap": { - "label": "Перекрытие фрагментов", - "placeholder": "Введите перекрытие фрагментов", - "required": "Пожалуйста, введите перекрытие фрагментов" - } - }, - "prompt": { - "label": "Настройка системной подсказки RAG", - "option1": "Обычная", - "option2": "Веб", - "alert": "Настройка системной подсказки здесь устарела. Используйте раздел Управление подсказками для добавления или редактирования подсказок. Этот раздел будет удален в будущем выпуске", - "systemPrompt": "Системная подсказка", - "systemPromptPlaceholder": "Введите системную подсказку", - "webSearchPrompt": "Подсказка для веб-поиска", - "webSearchPromptHelp": "Не удаляйте `{search_results}` из подсказки.", - "webSearchPromptError": "Пожалуйста, введите подсказку для веб-поиска", - "webSearchPromptPlaceholder": "Введите подсказку для веб-поиска", - "webSearchFollowUpPrompt": "Последующая подсказка для веб-поиска", - "webSearchFollowUpPromptHelp": "Не удаляйте `{chat_history}` и `{question}` из подсказки.", - "webSearchFollowUpPromptError": "Введите подсказку для последующего веб-поиска!", - "webSearchFollowUpPromptPlaceholder": "Ваша подсказка для последующего веб-поиска" - }, + "advanced": { "label": "Расширенная конфигурация URL Ollama", "urlRewriteEnabled": { @@ -282,5 +248,43 @@ "manageKnowledge": { "title": "Управление знаниями", "heading": "Настройка базы знаний" + }, + "rag": { + "title": "Настройки RAG", + "ragSettings": { + "label": "Настройки RAG", + "model": { + "label": "Модель вложения", + "required": "Пожалуйста, выберите модель", + "help": "Настоятельно рекомендуется использовать модели вложения, например, `nomic-embed-text`.", + "placeholder": "Выберите модель" + }, + "chunkSize": { + "label": "Размер фрагмента", + "placeholder": "Введите размер фрагмента", + "required": "Пожалуйста, введите размер фрагмента" + }, + "chunkOverlap": { + "label": "Перекрытие фрагментов", + "placeholder": "Введите перекрытие фрагментов", + "required": "Пожалуйста, введите перекрытие фрагментов" + } + }, + "prompt": { + "label": "Настройка системной подсказки RAG", + "option1": "Обычная", + "option2": "Веб", + "alert": "Настройка системной подсказки здесь устарела. Используйте раздел Управление подсказками для добавления или редактирования подсказок. Этот раздел будет удален в будущем выпуске", + "systemPrompt": "Системная подсказка", + "systemPromptPlaceholder": "Введите системную подсказку", + "webSearchPrompt": "Подсказка для веб-поиска", + "webSearchPromptHelp": "Не удаляйте `{search_results}` из подсказки.", + "webSearchPromptError": "Пожалуйста, введите подсказку для веб-поиска", + "webSearchPromptPlaceholder": "Введите подсказку для веб-поиска", + "webSearchFollowUpPrompt": "Последующая подсказка для веб-поиска", + "webSearchFollowUpPromptHelp": "Не удаляйте `{chat_history}` и `{question}` из подсказки.", + "webSearchFollowUpPromptError": "Введите подсказку для последующего веб-поиска!", + "webSearchFollowUpPromptPlaceholder": "Ваша подсказка для последующего веб-поиска" + } } } \ No newline at end of file diff --git a/src/assets/locale/zh/settings.json b/src/assets/locale/zh/settings.json index cdb116c..9b27993 100644 --- a/src/assets/locale/zh/settings.json +++ b/src/assets/locale/zh/settings.json @@ -221,41 +221,7 @@ "label": "Ollama URL", "placeholder": "输入 Ollama URL" }, - "ragSettings": { - "label": "RAG 设置", - "model": { - "label": "文本嵌入模型", - "required": "请选择一个模型", - "help": "建议使用文本嵌入模型,如 `nomic-embed-text`。", - "placeholder": "选择一个模型" - }, - "chunkSize": { - "label": "嵌入大小", - "placeholder": "1024-∞", - "required": "请输入块大小" - }, - "chunkOverlap": { - "label": "嵌入重叠", - "placeholder": "256-∞", - "required": "请输入嵌入重叠" - } - }, - "prompt": { - "label": "配置 RAG 提示词", - "option1": "普通", - "option2": "搜索", - "alert": "在此配置系统提示词已过时。请使用管理提示词部分添加或编辑提示词。此部分将在未来版本中删除", - "systemPrompt": "系统提示词", - "systemPromptPlaceholder": "输入系统提示词", - "webSearchPrompt": "网页搜索提示词", - "webSearchPromptHelp": "请勿从提示词中删除 `{search_results}`。", - "webSearchPromptError": "请输入一个网页搜索提示词", - "webSearchPromptPlaceholder": "输入网页搜索提示词", - "webSearchFollowUpPrompt": "网页搜索追问提示词", - "webSearchFollowUpPromptHelp": "请勿从提示词中删除 `{chat_history}` 和 `{question}`。", - "webSearchFollowUpPromptError": "请输入您的网页搜索追问提示词!", - "webSearchFollowUpPromptPlaceholder": "您的网页搜索追问提示词" - }, + "advanced": { "label": "Ollama URL 高级配置", "urlRewriteEnabled": { @@ -286,5 +252,43 @@ "manageKnowledge": { "title": "管理知识", "heading": "配置知识库" + }, + "rag": { + "title": "RAG 设置", + "ragSettings": { + "label": "RAG 设置", + "model": { + "label": "文本嵌入模型", + "required": "请选择一个模型", + "help": "建议使用文本嵌入模型,如 `nomic-embed-text`。", + "placeholder": "选择一个模型" + }, + "chunkSize": { + "label": "嵌入大小", + "placeholder": "1024-∞", + "required": "请输入块大小" + }, + "chunkOverlap": { + "label": "嵌入重叠", + "placeholder": "256-∞", + "required": "请输入嵌入重叠" + } + }, + "prompt": { + "label": "配置 RAG 提示词", + "option1": "普通", + "option2": "搜索", + "alert": "在此配置系统提示词已过时。请使用管理提示词部分添加或编辑提示词。此部分将在未来版本中删除", + "systemPrompt": "系统提示词", + "systemPromptPlaceholder": "输入系统提示词", + "webSearchPrompt": "网页搜索提示词", + "webSearchPromptHelp": "请勿从提示词中删除 `{search_results}`。", + "webSearchPromptError": "请输入一个网页搜索提示词", + "webSearchPromptPlaceholder": "输入网页搜索提示词", + "webSearchFollowUpPrompt": "网页搜索追问提示词", + "webSearchFollowUpPromptHelp": "请勿从提示词中删除 `{chat_history}` 和 `{question}`。", + "webSearchFollowUpPromptError": "请输入您的网页搜索追问提示词!", + "webSearchFollowUpPromptPlaceholder": "您的网页搜索追问提示词" + } } } \ No newline at end of file diff --git a/src/components/Common/Settings/AdvanceOllamaSettings.tsx b/src/components/Common/Settings/AdvanceOllamaSettings.tsx index 0027fb2..258b491 100644 --- a/src/components/Common/Settings/AdvanceOllamaSettings.tsx +++ b/src/components/Common/Settings/AdvanceOllamaSettings.tsx @@ -17,7 +17,7 @@ export const AdvanceOllamaSettings = () => { return (
- + {t("ollamaSettings.settings.advanced.urlRewriteEnabled.label")}
@@ -29,7 +29,7 @@ export const AdvanceOllamaSettings = () => {
- + {t("ollamaSettings.settings.advanced.rewriteUrl.label")}
diff --git a/src/components/Layouts/Header.tsx b/src/components/Layouts/Header.tsx index af180c9..1d6099a 100644 --- a/src/components/Layouts/Header.tsx +++ b/src/components/Layouts/Header.tsx @@ -90,7 +90,7 @@ export const Header: React.FC = ({ - +
)} diff --git a/src/components/Layouts/SettingsOptionLayout.tsx b/src/components/Layouts/SettingsOptionLayout.tsx index e014c80..9a76c34 100644 --- a/src/components/Layouts/SettingsOptionLayout.tsx +++ b/src/components/Layouts/SettingsOptionLayout.tsx @@ -1,10 +1,11 @@ import { - Book, - BrainCircuit, - Orbit, - Share, + BookIcon, + BrainCircuitIcon, + OrbitIcon, + ShareIcon, BlocksIcon, - InfoIcon + InfoIcon, + CombineIcon, } from "lucide-react" import { useTranslation } from "react-i18next" import { Link, useLocation } from "react-router-dom" @@ -35,7 +36,7 @@ const LinkComponent = (item: { className={classNames( item.current === item.href ? "text-gray-600 dark:text-white" - : "text-gray-400 group-hover:text-gray-600 dark:text-gray-200 dark:group-hover:text-white", + : "text-gray-500 group-hover:text-gray-600 dark:text-gray-200 dark:group-hover:text-white", "h-6 w-6 shrink-0" )} aria-hidden="true" @@ -61,7 +62,13 @@ export const SettingsLayout = ({ children }: { children: React.ReactNode }) => { + { href="/settings/model" name={t("manageModels.title")} current={location.pathname} - icon={BrainCircuit} + icon={BrainCircuitIcon} /> { { pullOllamaModel(record.model) } }} - className="text-gray-500 dark:text-gray-400"> + className="text-gray-700 dark:text-gray-400"> diff --git a/src/components/Option/Settings.tsx b/src/components/Option/Settings.tsx index 412708f..4468b70 100644 --- a/src/components/Option/Settings.tsx +++ b/src/components/Option/Settings.tsx @@ -1,7 +1,7 @@ import { Tabs } from "antd" import { SettingsOllama } from "./Settings/ollama" import { SettingPrompt } from "./Settings/prompt" -import { SettingOther } from "./Settings/other" +import { SettingOther } from "./Settings/general-settings" type Props = { setClose: (close: boolean) => void diff --git a/src/components/Option/Settings/about.tsx b/src/components/Option/Settings/about.tsx index 6250ab1..3101ad8 100644 --- a/src/components/Option/Settings/about.tsx +++ b/src/components/Option/Settings/about.tsx @@ -60,7 +60,7 @@ export const AboutApp = () => { ]} />
-

+

{t("about.support")}

diff --git a/src/components/Option/Settings/other.tsx b/src/components/Option/Settings/general-settings.tsx similarity index 92% rename from src/components/Option/Settings/other.tsx rename to src/components/Option/Settings/general-settings.tsx index ad5dc0f..d5d1c27 100644 --- a/src/components/Option/Settings/other.tsx +++ b/src/components/Option/Settings/general-settings.tsx @@ -16,7 +16,7 @@ import { import { BetaTag } from "@/components/Common/Beta" import { useStorage } from "@plasmohq/storage/hook" -export const SettingOther = () => { +export const GeneralSettings = () => { const { clearChat, speechToTextLanguage, setSpeechToTextLanguage } = useMessageOption() @@ -43,7 +43,7 @@ export const SettingOther = () => {
- + {t("generalSettings.settings.speechRecognitionLang.label")} @@ -65,7 +65,7 @@ export const SettingOther = () => { />
- + {t("generalSettings.settings.language.label")} @@ -88,7 +88,7 @@ export const SettingOther = () => {
- + {t("generalSettings.settings.copilotResumeLastChat.label")}
@@ -100,7 +100,7 @@ export const SettingOther = () => {
- + {t("generalSettings.settings.hideCurrentChatModelSettings.label")}
@@ -111,7 +111,7 @@ export const SettingOther = () => { />
- + {t("generalSettings.settings.darkMode.label")} @@ -138,7 +138,7 @@ export const SettingOther = () => {
- + {t("generalSettings.system.deleteChatHistory.label")} @@ -162,7 +162,7 @@ export const SettingOther = () => {
- + {t("generalSettings.system.export.label")}
- + {t("generalSettings.system.import.label")}
-

+

{t("modelSettings.description")}

diff --git a/src/components/Option/Settings/ollama.tsx b/src/components/Option/Settings/ollama.tsx index 3315a1f..e5fefce 100644 --- a/src/components/Option/Settings/ollama.tsx +++ b/src/components/Option/Settings/ollama.tsx @@ -1,19 +1,9 @@ -import { useMutation, useQuery } from "@tanstack/react-query" -import { Collapse, Form, InputNumber, Select, Skeleton } from "antd" +import { useQuery } from "@tanstack/react-query" +import { Collapse, Skeleton } from "antd" import { useState } from "react" import { SaveButton } from "~/components/Common/SaveButton" -import { - defaultEmbeddingChunkOverlap, - defaultEmbeddingChunkSize, - defaultEmbeddingModelForRag, - getAllModels, - getOllamaURL, - saveForRag, - setOllamaURL as saveOllamaURL -} from "~/services/ollama" -import { SettingPrompt } from "./prompt" +import { getOllamaURL, setOllamaURL as saveOllamaURL } from "~/services/ollama" import { Trans, useTranslation } from "react-i18next" -import { useStorage } from "@plasmohq/storage/hook" import { AdvanceOllamaSettings } from "@/components/Common/Settings/AdvanceOllamaSettings" import { ModelSettings } from "./model-settings" @@ -22,34 +12,12 @@ export const SettingsOllama = () => { const { t } = useTranslation("settings") - const { data: ollamaInfo, status } = useQuery({ + const { status } = useQuery({ queryKey: ["fetchOllamURL"], queryFn: async () => { - const [ollamaURL, allModels, chunkOverlap, chunkSize, defaultEM] = - await Promise.all([ - getOllamaURL(), - getAllModels({ returnEmpty: true }), - defaultEmbeddingChunkOverlap(), - defaultEmbeddingChunkSize(), - defaultEmbeddingModelForRag() - ]) + const [ollamaURL] = await Promise.all([getOllamaURL()]) setOllamaURL(ollamaURL) - return { - models: allModels, - chunkOverlap, - chunkSize, - defaultEM - } - } - }) - - const { mutate: saveRAG, isPending: isSaveRAGPending } = useMutation({ - mutationFn: async (data: { - model: string - chunkSize: number - overlap: number - }) => { - await saveForRag(data.model, data.chunkSize, data.overlap) + return {} } }) @@ -92,7 +60,7 @@ export const SettingsOllama = () => {

{t("ollamaSettings.settings.advanced.label")}

-

+

{

-
-
-

- {t("ollamaSettings.settings.ragSettings.label")} -

-
-
-
{ - saveRAG({ - model: data.defaultEM, - chunkSize: data.chunkSize, - overlap: data.chunkOverlap - }) - }} - initialValues={{ - chunkSize: ollamaInfo?.chunkSize, - chunkOverlap: ollamaInfo?.chunkOverlap, - defaultEM: ollamaInfo?.defaultEM - }}> - - + option!.label.toLowerCase().indexOf(input.toLowerCase()) >= + 0 || + option!.value.toLowerCase().indexOf(input.toLowerCase()) >= + 0 + } + showSearch + placeholder={t( + "rag.ragSettings.model.placeholder" + )} + style={{ width: "100%" }} + className="mt-4" + options={ollamaInfo.models?.map((model) => ({ + label: model.name, + value: model.model + }))} + /> + + + + + + + + + +
+ +
+
+
+ +
+
+

+ {t("rag.prompt.label")} +

+
+
+ +
+
+ )} +
+ ) +} diff --git a/src/components/Option/Settings/search-mode.tsx b/src/components/Option/Settings/search-mode.tsx index 8973ec0..e7cc04d 100644 --- a/src/components/Option/Settings/search-mode.tsx +++ b/src/components/Option/Settings/search-mode.tsx @@ -44,7 +44,7 @@ export const SearchModeSettings = () => { })} className="space-y-4">
- + {t("generalSettings.webSearch.provider.label")}
@@ -62,7 +62,7 @@ export const SearchModeSettings = () => {
- + {t("generalSettings.webSearch.searchMode.label")}
@@ -75,7 +75,7 @@ export const SearchModeSettings = () => {
- + {t("generalSettings.webSearch.totalSearchResults.label")}
diff --git a/src/components/Option/Settings/tts-mode.tsx b/src/components/Option/Settings/tts-mode.tsx index bf5ad36..d46dddb 100644 --- a/src/components/Option/Settings/tts-mode.tsx +++ b/src/components/Option/Settings/tts-mode.tsx @@ -49,7 +49,7 @@ export const TTSModeSettings = ({ hideBorder }: { hideBorder?: boolean }) => { })} className="space-y-4">
- + {t("generalSettings.tts.ttsEnabled.label")}
@@ -62,7 +62,7 @@ export const TTSModeSettings = ({ hideBorder }: { hideBorder?: boolean }) => {
- + {t("generalSettings.tts.ttsProvider.label")}
@@ -75,7 +75,7 @@ export const TTSModeSettings = ({ hideBorder }: { hideBorder?: boolean }) => {
- + {t("generalSettings.tts.ttsVoice.label")}
@@ -94,7 +94,7 @@ export const TTSModeSettings = ({ hideBorder }: { hideBorder?: boolean }) => {
- + {t("generalSettings.tts.ssmlEnabled.label")}
diff --git a/src/components/Option/Share/index.tsx b/src/components/Option/Share/index.tsx index cd46f72..f0db8a6 100644 --- a/src/components/Option/Share/index.tsx +++ b/src/components/Option/Share/index.tsx @@ -146,7 +146,7 @@ export const OptionShareBody = () => { -

+

{t("manageShare.webshare.description")}

diff --git a/src/components/Sidepanel/Chat/empty.tsx b/src/components/Sidepanel/Chat/empty.tsx index 000d4e3..f94304b 100644 --- a/src/components/Sidepanel/Chat/empty.tsx +++ b/src/components/Sidepanel/Chat/empty.tsx @@ -94,7 +94,7 @@ export const EmptySidePanel = () => { {ollamaURL && cleanUrl(ollamaURL) !== "http://127.0.0.1:11434" && ( -

+

{ return ( @@ -20,6 +21,7 @@ export const OptionRoutingChrome = () => { } /> } /> } /> + } /> } /> ) diff --git a/src/routes/firefox.tsx b/src/routes/firefox.tsx index 1281a72..40264f4 100644 --- a/src/routes/firefox.tsx +++ b/src/routes/firefox.tsx @@ -1,7 +1,7 @@ // this is a temp fix for firefox // because chunks getting 4mb+ and it's not working on firefox addon store import { lazy } from "react" -import { Route , Routes} from "react-router-dom" +import { Route, Routes } from "react-router-dom" const SidepanelChat = lazy(() => import("./sidepanel-chat")) const SidepanelSettings = lazy(() => import("./sidepanel-settings")) @@ -13,6 +13,7 @@ const OptionSettings = lazy(() => import("./option-settings")) const OptionShare = lazy(() => import("./option-settings-share")) const OptionKnowledgeBase = lazy(() => import("./option-settings-knowledge")) const OptionAbout = lazy(() => import("./option-settings-about")) +const OptionRagSettings = lazy(() => import("./option-rag")) export const OptionRoutingFirefox = () => { return ( @@ -25,6 +26,7 @@ export const OptionRoutingFirefox = () => { } /> } /> } /> + } /> ) } diff --git a/src/routes/option-rag.tsx b/src/routes/option-rag.tsx new file mode 100644 index 0000000..5f07e82 --- /dev/null +++ b/src/routes/option-rag.tsx @@ -0,0 +1,15 @@ +import { SettingsLayout } from "~/components/Layouts/SettingsOptionLayout" +import OptionLayout from "~/components/Layouts/Layout" +import { RagSettings } from "@/components/Option/Settings/rag" + +const OptionRagSettings = () => { + return ( + + + + + + ) +} + +export default OptionRagSettings diff --git a/src/routes/option-settings.tsx b/src/routes/option-settings.tsx index 3bb60c0..7430b4c 100644 --- a/src/routes/option-settings.tsx +++ b/src/routes/option-settings.tsx @@ -1,12 +1,12 @@ import { SettingsLayout } from "~/components/Layouts/SettingsOptionLayout" import OptionLayout from "~/components/Layouts/Layout" -import { SettingOther } from "~/components/Option/Settings/other" +import { GeneralSettings } from "~/components/Option/Settings/general-settings" const OptionSettings = () => { return ( - + )