Skip to content

Commit

Permalink
💄 style: improve chunk and file preview (#3658)
Browse files Browse the repository at this point in the history
* ♻️ refactor: refactor the status

* 💄 style: improve chunk preview

* 💄 style: improve chunk preview

* 🌐 chore: update i18n
  • Loading branch information
arvinxx authored Aug 28, 2024
1 parent fc2d3a1 commit 4c9155c
Show file tree
Hide file tree
Showing 66 changed files with 695 additions and 260 deletions.
7 changes: 7 additions & 0 deletions locales/ar/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "القطع الأثرية",
"FilePreview": {
"tabs": {
"chunk": "جزء",
"file": "ملف"
}
},
"actions": {
"genAiMessage": "إنشاء رسالة مساعد ذكاء اصطناعي",
"summary": "ملخص",
"summaryTooltip": "ملخص للمحتوى الحالي"
},
"emptyArtifactList": "قائمة القطع الأثرية الحالية فارغة، يرجى استخدام الإضافات في الجلسة ومن ثم التحقق مرة أخرى",
"emptyKnowledgeList": "قائمة المعرفة الحالية فارغة، يرجى فتح قاعدة المعرفة حسب الحاجة في المحادثة قبل العرض",
"files": "ملفات",
"title": "نافذة موسعة"
}
7 changes: 7 additions & 0 deletions locales/bg-BG/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Артефакти",
"FilePreview": {
"tabs": {
"chunk": "Част",
"file": "Файл"
}
},
"actions": {
"genAiMessage": "Създаване на съобщение на помощника",
"summary": "Обобщение",
"summaryTooltip": "Обобщение на текущото съдържание"
},
"emptyArtifactList": "Списъкът с текущите артефакти е празен. Моля, използвайте добавки в разговора и след това проверете отново.",
"emptyKnowledgeList": "Текущият списък с познания е празен. Моля, активирайте базата данни на познанията по време на сесията, за да я прегледате.",
"files": "файлове",
"title": "Разширено прозорец"
}
7 changes: 7 additions & 0 deletions locales/de-DE/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artefakte",
"FilePreview": {
"tabs": {
"chunk": "Chunk",
"file": "Datei"
}
},
"actions": {
"genAiMessage": "Assistenten-Nachricht erstellen",
"summary": "Zusammenfassung",
"summaryTooltip": "Zusammenfassung des aktuellen Inhalts"
},
"emptyArtifactList": "Die Liste der Artefakte ist derzeit leer. Bitte verwenden Sie Plugins in der Sitzung und überprüfen Sie sie erneut.",
"emptyKnowledgeList": "Die aktuelle Wissensliste ist leer. Bitte aktivieren Sie die Wissensdatenbank nach Bedarf in der Sitzung, um sie anzuzeigen.",
"files": "Dateien",
"title": "Erweiterungsfenster"
}
20 changes: 10 additions & 10 deletions locales/en-US/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"addToOtherKnowledgeBase": "Add to Other Knowledge Base",
"batchChunking": "Batch Chunking",
"chunking": "Chunking",
"chunkingTooltip": "Split the file into multiple text chunks and vectorize them for semantic search and file dialogue.",
"chunkingTooltip": "Split the file into multiple text chunks and embedding them for semantic search and file dialogue.",
"confirmDelete": "You are about to delete this file. Once deleted, it cannot be recovered. Please confirm your action.",
"confirmDeleteMultiFiles": "You are about to delete the selected {{count}} files. Once deleted, they cannot be recovered. Please confirm your action.",
"confirmRemoveFromKnowledgeBase": "You are about to remove the selected {{count}} files from the knowledge base. They will still be viewable in all files. Please confirm your action.",
"copyUrl": "Copy Link",
"copyUrlSuccess": "File address copied successfully.",
"copyUrlSuccess": "File url copied successfully.",
"createChunkingTask": "Preparing...",
"deleteSuccess": "File deleted successfully.",
"downloading": "Downloading file...",
Expand Down Expand Up @@ -49,16 +49,16 @@
"FileParsingStatus": {
"chunks": {
"embeddingStatus": {
"empty": "Text chunks have not been fully vectorized, which will render the semantic search feature unavailable. To improve search quality, please vectorize the text chunks.",
"error": "Vectorization failed",
"errorResult": "Vectorization failed, please check and try again. Reason for failure:",
"processing": "Text chunks are being vectorized, please be patient.",
"success": "All current text chunks have been vectorized."
"empty": "Text chunks have not been fully embedded, which will render the semantic search feature unavailable. To improve search quality, please embedding the text chunks.",
"error": "Embedding failed",
"errorResult": "Vectorization failed, please check and try again. Error detail:",
"processing": "Text chunks are being embedded, please be patient.",
"success": "All current text chunks have been embedded"
},
"embeddings": "Vectorization",
"embeddings": "Embedding",
"status": {
"error": "Chunking failed.",
"errorResult": "Chunking failed, please check and try again. Reason for failure:",
"error": "Chunking failed",
"errorResult": "Chunking failed, please check and try again. Error detail:",
"processing": "Chunking in progress.",
"processingTip": "The server is splitting text chunks; closing the page will not affect the chunking progress."
}
Expand Down
10 changes: 5 additions & 5 deletions locales/en-US/file.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"desc": "Manage your files and knowledge base",
"desc": "Manage files and knowledge base",
"detail": {
"basic": {
"createdAt": "Creation Time",
Expand All @@ -10,15 +10,15 @@
"updatedAt": "Update Time"
},
"data": {
"chunkCount": "Number of Chunks",
"chunkCount": "Chunks",
"embedding": {
"default": "Not yet vectorized",
"default": "Not embedding",
"error": "Failed",
"pending": "Pending start",
"processing": "In progress",
"success": "Completed"
},
"embeddingStatus": "Vectorization"
"embeddingStatus": "embedding"
}
},
"header": {
Expand All @@ -32,7 +32,7 @@
"knowledgeBase": {
"list": {
"confirmRemoveKnowledgeBase": "You are about to delete this knowledge base. The files within will not be deleted and will be moved to All Files. Once deleted, the knowledge base cannot be recovered. Please proceed with caution.",
"empty": "Click <1>+</1> to start creating a knowledge base"
"empty": "Click <1>+</1> to add a knowledge base"
},
"new": "New Knowledge Base",
"title": "Knowledge Base"
Expand Down
7 changes: 7 additions & 0 deletions locales/en-US/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artifacts",
"FilePreview": {
"tabs": {
"chunk": "Chunk",
"file": "File"
}
},
"actions": {
"genAiMessage": "Generate Assistant Message",
"summary": "Summary",
"summaryTooltip": "Summarize current content"
},
"emptyArtifactList": "The current Artifacts list is empty. Please use plugins in the session as needed before viewing.",
"emptyKnowledgeList": "The current knowledge list is empty. Please enable the knowledge base as needed during the conversation before viewing.",
"files": "Files",
"title": "Portal View"
}
2 changes: 1 addition & 1 deletion locales/en-US/tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"generate": "Generate",
"generating": "Generating...",
"images": "Images:",
"prompt": "提示词"
"prompt": "Prompt"
}
}
7 changes: 7 additions & 0 deletions locales/es-ES/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artefactos",
"FilePreview": {
"tabs": {
"chunk": "Fragmento",
"file": "Archivo"
}
},
"actions": {
"genAiMessage": "Crear mensaje de IA",
"summary": "Resumen",
"summaryTooltip": "Resumir el contenido actual"
},
"emptyArtifactList": "La lista de Artefactos actual está vacía. Por favor, utilice los complementos en la conversación y vuelva a intentarlo.",
"emptyKnowledgeList": "La lista de conocimientos actual está vacía. Por favor, activa la base de conocimientos según sea necesario en la conversación antes de volver a revisar.",
"files": "archivos",
"title": "Ventana de expansión"
}
7 changes: 7 additions & 0 deletions locales/fr-FR/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artifacts",
"FilePreview": {
"tabs": {
"chunk": "Fragment",
"file": "Fichier"
}
},
"actions": {
"genAiMessage": "Créer un message d'assistant",
"summary": "Résumé",
"summaryTooltip": "Résumé du contenu actuel"
},
"emptyArtifactList": "La liste des Artifacts est actuellement vide. Veuillez utiliser les plugins dans la conversation avant de consulter à nouveau.",
"emptyKnowledgeList": "La liste des connaissances est actuellement vide. Veuillez activer la base de connaissances selon vos besoins dans la conversation avant de consulter.",
"files": "Fichiers",
"title": "Fenêtre d'extension"
}
7 changes: 7 additions & 0 deletions locales/it-IT/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artefatti",
"FilePreview": {
"tabs": {
"chunk": "Blocco",
"file": "File"
}
},
"actions": {
"genAiMessage": "Genera messaggio AI",
"summary": "Sommario",
"summaryTooltip": "Sommario del contenuto attuale"
},
"emptyArtifactList": "La lista degli Artefatti attuale è vuota, si prega di utilizzare i plugin necessari durante la sessione e poi controllare di nuovo",
"emptyKnowledgeList": "L'elenco delle conoscenze attuale è vuoto. Si prega di attivare il database delle conoscenze durante la conversazione per visualizzarlo.",
"files": "File",
"title": "Finestra di espansione"
}
7 changes: 7 additions & 0 deletions locales/ja-JP/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "アーティファクト",
"FilePreview": {
"tabs": {
"chunk": "チャンク",
"file": "ファイル"
}
},
"actions": {
"genAiMessage": "AIメッセージを生成",
"summary": "サマリー",
"summaryTooltip": "現在の内容を要約"
},
"emptyArtifactList": "現在、アーティファクトリストは空です。プラグインを使用してセッション中に追加してください。",
"emptyKnowledgeList": "現在の知識リストは空です。会話中に必要に応じて知識ベースを開いてからご覧ください。",
"files": "ファイル",
"title": "拡張ウィンドウ"
}
7 changes: 7 additions & 0 deletions locales/ko-KR/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "아티팩트",
"FilePreview": {
"tabs": {
"chunk": "청크",
"file": "파일"
}
},
"actions": {
"genAiMessage": "AI 메시지 생성",
"summary": "요약",
"summaryTooltip": "현재 콘텐츠를 요약합니다"
},
"emptyArtifactList": "현재 아티팩트 목록이 비어 있습니다. 플러그인을 사용한 후에 다시 확인해주세요.",
"emptyKnowledgeList": "현재 지식 목록이 비어 있습니다. 대화 중에 필요에 따라 지식 베이스를 활성화한 후 다시 확인해 주세요.",
"files": "파일",
"title": "확장 창"
}
7 changes: 7 additions & 0 deletions locales/nl-NL/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artifacts",
"FilePreview": {
"tabs": {
"chunk": "Chunk",
"file": "Bestand"
}
},
"actions": {
"genAiMessage": "Creëer assistentbericht",
"summary": "Samenvatting",
"summaryTooltip": "Samenvatting van de huidige inhoud"
},
"emptyArtifactList": "De huidige lijst met Artifacts is leeg. Gebruik plugins in de sessie en bekijk deze later opnieuw.",
"emptyKnowledgeList": "De huidige kennislijst is leeg. Gelieve de kennisbank in de sessie te openen voordat u deze bekijkt.",
"files": "Bestanden",
"title": "Uitbreidingsvenster"
}
7 changes: 7 additions & 0 deletions locales/pl-PL/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artefakty",
"FilePreview": {
"tabs": {
"chunk": "Część",
"file": "Plik"
}
},
"actions": {
"genAiMessage": "Tworzenie wiadomości AI",
"summary": "Podsumowanie",
"summaryTooltip": "Podsumowanie bieżącej zawartości"
},
"emptyArtifactList": "Obecna lista Artefaktów jest pusta. Proszę użyć wtyczek w trakcie sesji, a następnie sprawdzić ponownie.",
"emptyKnowledgeList": "Aktualna lista wiedzy jest pusta. Proszę otworzyć bazę wiedzy w trakcie rozmowy, aby ją przeglądać.",
"files": "Pliki",
"title": "Okno rozszerzenia"
}
7 changes: 7 additions & 0 deletions locales/pt-BR/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artefatos",
"FilePreview": {
"tabs": {
"chunk": "Parte",
"file": "Arquivo"
}
},
"actions": {
"genAiMessage": "Gerar mensagem de IA",
"summary": "Resumo",
"summaryTooltip": "Resumir o conteúdo atual"
},
"emptyArtifactList": "A lista de Artefatos atual está vazia. Por favor, use os plugins conforme necessário durante a sessão e depois verifique novamente.",
"emptyKnowledgeList": "A lista de conhecimentos atual está vazia. Por favor, ative o repositório de conhecimentos conforme necessário durante a conversa antes de visualizar.",
"files": "Arquivos",
"title": "Janela de Expansão"
}
7 changes: 7 additions & 0 deletions locales/ru-RU/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Артефакты",
"FilePreview": {
"tabs": {
"chunk": "Часть",
"file": "Файл"
}
},
"actions": {
"genAiMessage": "Создать сообщение помощника",
"summary": "Сводка",
"summaryTooltip": "Сводка текущего содержимого"
},
"emptyArtifactList": "Список текущих артефактов пуст. Пожалуйста, используйте плагины во время сеанса и затем просмотрите.",
"emptyKnowledgeList": "Текущий список знаний пуст. Пожалуйста, откройте базу знаний по мере необходимости в разговоре, прежде чем просматривать.",
"files": "файлы",
"title": "Расширенное окно"
}
7 changes: 7 additions & 0 deletions locales/tr-TR/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artefaktlar",
"FilePreview": {
"tabs": {
"chunk": "Parça",
"file": "Dosya"
}
},
"actions": {
"genAiMessage": "Yapay Zeka Mesajı Oluştur",
"summary": "Özet",
"summaryTooltip": "Mevcut içeriği özetle"
},
"emptyArtifactList": "Mevcut Artefakt listesi boş, lütfen eklentileri kullanarak oturumda gerektiğinde göz atın",
"emptyKnowledgeList": "Mevcut bilgi listesi boş. Lütfen sohbet sırasında ihtiyaç duyduğunuz bilgi havuzunu açtıktan sonra tekrar kontrol edin.",
"files": "Dosyalar",
"title": "Genişletme Penceresi"
}
7 changes: 7 additions & 0 deletions locales/vi-VN/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Tác Phẩm",
"FilePreview": {
"tabs": {
"chunk": "Phân đoạn",
"file": "Tập tin"
}
},
"actions": {
"genAiMessage": "Tạo tin nhắn trợ giúp",
"summary": "Tóm tắt",
"summaryTooltip": "Tóm tắt nội dung hiện tại"
},
"emptyArtifactList": "Danh sách Tác Phẩm hiện tại đang trống, vui lòng sử dụng các plugin trong cuộc trò chuyện trước khi xem lại",
"emptyKnowledgeList": "Danh sách kiến thức hiện tại trống, vui lòng mở kho kiến thức khi cần trong cuộc trò chuyện trước khi xem",
"files": "Tập tin",
"title": "Cửa sổ mở rộng"
}
7 changes: 7 additions & 0 deletions locales/zh-CN/portal.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"Artifacts": "Artifacts",
"FilePreview": {
"tabs": {
"chunk": "分块",
"file": "文件"
}
},
"actions": {
"genAiMessage": "创建助手消息",
"summary": "总结",
"summaryTooltip": "总结当前内容"
},
"emptyArtifactList": "当前 Artifacts 列表为空,请在会话中按需使用插件后再查看",
"emptyKnowledgeList": "当前知识列表为空,请在会话中按需开启知识库后再查看",
"files": "文件",
"title": "工作区"
}
Loading

0 comments on commit 4c9155c

Please sign in to comment.