@lobehub/chat 1.11.8 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +2 -1
- package/.github/workflows/test.yml +2 -1
- package/CHANGELOG.md +50 -0
- package/Dockerfile.database +2 -0
- package/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx +65 -0
- package/locales/ar/chat.json +46 -3
- package/locales/ar/common.json +1 -0
- package/locales/ar/components.json +2 -0
- package/locales/ar/error.json +1 -0
- package/locales/ar/file.json +91 -0
- package/locales/ar/knowledgeBase.json +31 -0
- package/locales/ar/portal.json +1 -0
- package/locales/bg-BG/chat.json +46 -3
- package/locales/bg-BG/common.json +1 -0
- package/locales/bg-BG/components.json +2 -0
- package/locales/bg-BG/error.json +1 -0
- package/locales/bg-BG/file.json +91 -0
- package/locales/bg-BG/knowledgeBase.json +31 -0
- package/locales/bg-BG/portal.json +1 -0
- package/locales/de-DE/chat.json +46 -3
- package/locales/de-DE/common.json +1 -0
- package/locales/de-DE/components.json +2 -0
- package/locales/de-DE/error.json +1 -0
- package/locales/de-DE/file.json +91 -0
- package/locales/de-DE/knowledgeBase.json +31 -0
- package/locales/de-DE/portal.json +1 -0
- package/locales/en-US/chat.json +46 -3
- package/locales/en-US/common.json +1 -0
- package/locales/en-US/components.json +2 -0
- package/locales/en-US/error.json +1 -0
- package/locales/en-US/file.json +91 -0
- package/locales/en-US/knowledgeBase.json +31 -0
- package/locales/en-US/portal.json +1 -0
- package/locales/es-ES/chat.json +46 -3
- package/locales/es-ES/common.json +1 -0
- package/locales/es-ES/components.json +2 -0
- package/locales/es-ES/error.json +1 -0
- package/locales/es-ES/file.json +91 -0
- package/locales/es-ES/knowledgeBase.json +31 -0
- package/locales/es-ES/portal.json +1 -0
- package/locales/fr-FR/chat.json +46 -3
- package/locales/fr-FR/common.json +1 -0
- package/locales/fr-FR/components.json +2 -0
- package/locales/fr-FR/error.json +1 -0
- package/locales/fr-FR/file.json +91 -0
- package/locales/fr-FR/knowledgeBase.json +31 -0
- package/locales/fr-FR/portal.json +1 -0
- package/locales/it-IT/chat.json +46 -3
- package/locales/it-IT/common.json +1 -0
- package/locales/it-IT/components.json +2 -0
- package/locales/it-IT/error.json +1 -0
- package/locales/it-IT/file.json +91 -0
- package/locales/it-IT/knowledgeBase.json +31 -0
- package/locales/it-IT/portal.json +1 -0
- package/locales/ja-JP/chat.json +46 -3
- package/locales/ja-JP/common.json +1 -0
- package/locales/ja-JP/components.json +2 -0
- package/locales/ja-JP/error.json +1 -0
- package/locales/ja-JP/file.json +91 -0
- package/locales/ja-JP/knowledgeBase.json +31 -0
- package/locales/ja-JP/portal.json +1 -0
- package/locales/ko-KR/chat.json +46 -3
- package/locales/ko-KR/common.json +1 -0
- package/locales/ko-KR/components.json +2 -0
- package/locales/ko-KR/error.json +1 -0
- package/locales/ko-KR/file.json +91 -0
- package/locales/ko-KR/knowledgeBase.json +31 -0
- package/locales/ko-KR/portal.json +1 -0
- package/locales/nl-NL/chat.json +46 -3
- package/locales/nl-NL/common.json +1 -0
- package/locales/nl-NL/components.json +2 -0
- package/locales/nl-NL/error.json +1 -0
- package/locales/nl-NL/file.json +91 -0
- package/locales/nl-NL/knowledgeBase.json +31 -0
- package/locales/nl-NL/portal.json +1 -0
- package/locales/pl-PL/chat.json +46 -3
- package/locales/pl-PL/common.json +1 -0
- package/locales/pl-PL/components.json +2 -0
- package/locales/pl-PL/error.json +1 -0
- package/locales/pl-PL/file.json +91 -0
- package/locales/pl-PL/knowledgeBase.json +31 -0
- package/locales/pl-PL/portal.json +1 -0
- package/locales/pt-BR/chat.json +46 -3
- package/locales/pt-BR/common.json +1 -0
- package/locales/pt-BR/components.json +2 -0
- package/locales/pt-BR/error.json +1 -0
- package/locales/pt-BR/file.json +91 -0
- package/locales/pt-BR/knowledgeBase.json +31 -0
- package/locales/pt-BR/portal.json +1 -0
- package/locales/ru-RU/chat.json +46 -3
- package/locales/ru-RU/common.json +1 -0
- package/locales/ru-RU/components.json +2 -0
- package/locales/ru-RU/error.json +1 -0
- package/locales/ru-RU/file.json +91 -0
- package/locales/ru-RU/knowledgeBase.json +31 -0
- package/locales/ru-RU/portal.json +1 -0
- package/locales/tr-TR/chat.json +46 -3
- package/locales/tr-TR/common.json +1 -0
- package/locales/tr-TR/components.json +2 -0
- package/locales/tr-TR/error.json +1 -0
- package/locales/tr-TR/file.json +91 -0
- package/locales/tr-TR/knowledgeBase.json +31 -0
- package/locales/tr-TR/portal.json +1 -0
- package/locales/vi-VN/chat.json +46 -3
- package/locales/vi-VN/common.json +1 -0
- package/locales/vi-VN/components.json +2 -0
- package/locales/vi-VN/error.json +1 -0
- package/locales/vi-VN/file.json +91 -0
- package/locales/vi-VN/knowledgeBase.json +31 -0
- package/locales/vi-VN/portal.json +1 -0
- package/locales/zh-CN/chat.json +46 -3
- package/locales/zh-CN/common.json +1 -0
- package/locales/zh-CN/components.json +2 -0
- package/locales/zh-CN/error.json +1 -0
- package/locales/zh-CN/file.json +91 -0
- package/locales/zh-CN/knowledgeBase.json +31 -0
- package/locales/zh-CN/portal.json +1 -0
- package/locales/zh-TW/chat.json +46 -3
- package/locales/zh-TW/common.json +1 -0
- package/locales/zh-TW/components.json +2 -0
- package/locales/zh-TW/error.json +1 -0
- package/locales/zh-TW/file.json +91 -0
- package/locales/zh-TW/knowledgeBase.json +31 -0
- package/locales/zh-TW/portal.json +1 -0
- package/package.json +3 -2
- package/scripts/migrateServerDB/docker.cjs +6 -0
- package/scripts/migrateServerDB/errorHint.js +17 -0
- package/scripts/migrateServerDB/index.ts +6 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileItem/Content.tsx +37 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileItem/index.tsx +87 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileItem/style.ts +4 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileItem/utils.ts +28 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileList.tsx +41 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/index.tsx +40 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/SendMore.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/index.tsx +7 -22
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/TextArea.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/index.tsx +2 -4
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/FileItem/File.tsx +72 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/FileItem/Image.tsx +74 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/FileItem/index.tsx +39 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/FileItem/style.ts +1 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/index.tsx +33 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/InputArea/Container.tsx +41 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/InputArea/index.tsx +154 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Send.tsx +34 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/index.tsx +24 -11
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/components/UploadDetail/UploadStatus.tsx +71 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/components/UploadDetail/index.tsx +49 -0
- package/src/app/(main)/chat/(workspace)/@portal/FilePreview/index.tsx +26 -0
- package/src/app/(main)/chat/(workspace)/@portal/Home/Files/FileList/Item.tsx +53 -0
- package/src/app/(main)/chat/(workspace)/@portal/Home/Files/FileList/index.tsx +50 -0
- package/src/app/(main)/chat/(workspace)/@portal/Home/Files/index.tsx +21 -0
- package/src/app/(main)/chat/(workspace)/@portal/Home/index.tsx +2 -0
- package/src/app/(main)/chat/(workspace)/@portal/router.tsx +4 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/KnowledgeTag.tsx +41 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags.tsx +7 -2
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/HotKeys.tsx +1 -1
- package/src/app/(main)/files/(content)/@menu/default.tsx +27 -0
- package/src/app/(main)/files/(content)/@menu/features/FileMenu/index.tsx +97 -0
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/EmptyStatus.tsx +53 -0
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/Item/Content.tsx +175 -0
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/Item/index.tsx +69 -0
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/KnowledgeBaseList.tsx +30 -0
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/SkeletonList.tsx +57 -0
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/index.tsx +54 -0
- package/src/app/(main)/files/(content)/@modal/(.)[id]/FileDetail.tsx +16 -0
- package/src/app/(main)/files/(content)/@modal/(.)[id]/FilePreview.tsx +15 -0
- package/src/app/(main)/files/(content)/@modal/(.)[id]/FullscreenModal.tsx +85 -0
- package/src/app/(main)/files/(content)/@modal/(.)[id]/page.tsx +19 -0
- package/src/app/(main)/files/(content)/@modal/default.tsx +3 -0
- package/src/app/(main)/files/(content)/NotSupportClient.tsx +152 -0
- package/src/app/(main)/files/(content)/_layout/Desktop/index.tsx +28 -0
- package/src/app/(main)/files/(content)/_layout/Mobile.tsx +47 -0
- package/src/app/(main)/files/(content)/_layout/type.ts +7 -0
- package/src/app/(main)/files/(content)/layout.tsx +18 -0
- package/src/app/(main)/files/(content)/page.tsx +14 -0
- package/src/app/(main)/files/[id]/Header.tsx +63 -0
- package/src/app/(main)/files/[id]/page.tsx +44 -0
- package/src/app/(main)/files/features/FileDetail.tsx +93 -0
- package/src/app/(main)/files/hooks/useFileCategory.ts +9 -0
- package/src/app/(main)/files/layout.tsx +12 -0
- package/src/app/(main)/files/loading.tsx +21 -0
- package/src/app/(main)/repos/[id]/@menu/Head/index.tsx +33 -0
- package/src/app/(main)/repos/[id]/@menu/Menu/index.tsx +56 -0
- package/src/app/(main)/repos/[id]/@menu/default.tsx +25 -0
- package/src/app/(main)/repos/[id]/_layout/Desktop/index.tsx +25 -0
- package/src/app/(main)/repos/[id]/_layout/Mobile.tsx +47 -0
- package/src/app/(main)/repos/[id]/_layout/type.ts +6 -0
- package/src/app/(main)/repos/[id]/hooks/useKnowledgeItem.ts +7 -0
- package/src/app/(main)/repos/[id]/layout.tsx +13 -0
- package/src/app/(main)/repos/[id]/page.tsx +18 -0
- package/src/app/(main)/repos/layout.tsx +13 -0
- package/src/app/(main)/repos/page.tsx +5 -0
- package/src/app/trpc/async/[trpc]/route.ts +28 -0
- package/src/chains/abstractChunk.ts +19 -0
- package/src/chains/answerWithContext.ts +34 -0
- package/src/chains/rewriteQuery.ts +22 -0
- package/src/components/DragUpload/index.tsx +6 -99
- package/src/components/DragUpload/useDragUpload.tsx +146 -0
- package/src/components/FeatureList/index.tsx +64 -0
- package/src/components/FileParsingStatus/index.tsx +230 -0
- package/src/components/ImageItem/index.tsx +10 -2
- package/src/components/KnowledgeIcon/index.tsx +28 -0
- package/src/config/app.ts +6 -1
- package/src/config/featureFlags/schema.ts +1 -1
- package/src/config/modelProviders/bedrock.ts +5 -5
- package/src/const/file.ts +1 -0
- package/src/const/url.ts +1 -0
- package/src/database/client/models/file.ts +8 -2
- package/src/database/server/migrations/0005_pgvector.sql +2 -0
- package/src/database/server/migrations/0006_add_knowledge_base.sql +307 -0
- package/src/database/server/migrations/meta/0005_snapshot.json +2119 -0
- package/src/database/server/migrations/meta/0006_snapshot.json +3006 -0
- package/src/database/server/migrations/meta/_journal.json +14 -0
- package/src/database/server/models/__tests__/_test_template.ts +155 -0
- package/src/database/server/models/__tests__/agent.test.ts +226 -0
- package/src/database/server/models/__tests__/asyncTask.test.ts +176 -0
- package/src/database/server/models/__tests__/chunk.test.ts +336 -0
- package/src/database/server/models/__tests__/file.test.ts +317 -29
- package/src/database/server/models/__tests__/fixtures/embedding.ts +568 -0
- package/src/database/server/models/__tests__/knowledgeBase.test.ts +132 -0
- package/src/database/server/models/__tests__/message.test.ts +7 -4
- package/src/database/server/models/_template.ts +10 -1
- package/src/database/server/models/agent.ts +165 -0
- package/src/database/server/models/asyncTask.ts +96 -0
- package/src/database/server/models/chunk.ts +203 -0
- package/src/database/server/models/embedding.ts +47 -0
- package/src/database/server/models/file.ts +231 -12
- package/src/database/server/models/knowledgeBase.ts +94 -0
- package/src/database/server/models/message.ts +156 -30
- package/src/database/server/models/user.ts +12 -1
- package/src/database/server/schemas/lobechat/agent.ts +93 -0
- package/src/database/server/schemas/lobechat/discover.ts +1 -1
- package/src/database/server/schemas/lobechat/file.ts +118 -1
- package/src/database/server/schemas/lobechat/index.ts +5 -1
- package/src/database/server/schemas/lobechat/message.ts +169 -0
- package/src/database/server/schemas/lobechat/rag.ts +51 -0
- package/src/database/server/schemas/lobechat/relations.ts +68 -48
- package/src/database/server/schemas/lobechat/session.ts +77 -0
- package/src/database/server/schemas/lobechat/topic.ts +32 -0
- package/src/database/server/schemas/lobechat/user.ts +40 -25
- package/src/database/server/utils/idGenerator.ts +1 -0
- package/src/features/ChatInput/ActionBar/Clear.tsx +1 -1
- package/src/features/ChatInput/ActionBar/Knowledge/Dropdown.tsx +160 -0
- package/src/features/ChatInput/ActionBar/Knowledge/ListItem.tsx +52 -0
- package/src/features/ChatInput/ActionBar/Knowledge/index.tsx +54 -0
- package/src/features/ChatInput/ActionBar/Tools/index.tsx +1 -1
- package/src/features/ChatInput/ActionBar/Upload/ClientMode.tsx +52 -0
- package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +104 -0
- package/src/features/ChatInput/ActionBar/Upload/index.tsx +8 -0
- package/src/features/ChatInput/ActionBar/config.ts +14 -5
- package/src/features/ChatInput/useSend.ts +16 -7
- package/src/features/Conversation/Messages/Assistant/FileChunks/Item/index.tsx +51 -0
- package/src/features/Conversation/Messages/Assistant/FileChunks/Item/style.ts +38 -0
- package/src/features/Conversation/Messages/Assistant/FileChunks/index.tsx +76 -0
- package/src/features/Conversation/Messages/Assistant/index.tsx +13 -4
- package/src/features/Conversation/Messages/Default.tsx +4 -0
- package/src/features/Conversation/Messages/User/BelowMessage.tsx +78 -0
- package/src/features/Conversation/Messages/User/FileListViewer/Item.tsx +53 -0
- package/src/features/Conversation/Messages/User/FileListViewer/index.tsx +21 -0
- package/src/{components/FileList/FileListViewer.tsx → features/Conversation/Messages/User/ImageFileListViewer.tsx} +10 -2
- package/src/features/Conversation/Messages/{User.tsx → User/index.tsx} +11 -2
- package/src/features/Conversation/Messages/index.ts +8 -3
- package/src/features/Conversation/components/ChatItem/index.tsx +33 -10
- package/src/features/Conversation/components/InboxWelcome/QuestionSuggest.tsx +1 -1
- package/src/features/Conversation/types/index.tsx +1 -0
- package/src/features/FileManager/ChunkDrawer/ChunkList/ChunkItem.tsx +61 -0
- package/src/features/FileManager/ChunkDrawer/ChunkList/index.tsx +42 -0
- package/src/features/FileManager/ChunkDrawer/Content.tsx +38 -0
- package/src/features/FileManager/ChunkDrawer/Loading/index.tsx +16 -0
- package/src/features/FileManager/ChunkDrawer/SimilaritySearchList/Item.tsx +62 -0
- package/src/features/FileManager/ChunkDrawer/SimilaritySearchList/index.tsx +31 -0
- package/src/features/FileManager/ChunkDrawer/index.tsx +48 -0
- package/src/features/FileManager/FileList/EmptyStatus.tsx +153 -0
- package/src/features/FileManager/FileList/FileListItem/ChunkTag.tsx +35 -0
- package/src/features/FileManager/FileList/FileListItem/DropdownMenu.tsx +150 -0
- package/src/features/FileManager/FileList/FileListItem/index.tsx +211 -0
- package/src/features/FileManager/FileList/FileSkeleton.tsx +25 -0
- package/src/features/FileManager/FileList/ToolBar/Config.tsx +28 -0
- package/src/features/FileManager/FileList/ToolBar/MultiSelectActions.tsx +152 -0
- package/src/features/FileManager/FileList/ToolBar/index.tsx +114 -0
- package/src/features/FileManager/FileList/index.tsx +143 -0
- package/src/features/FileManager/FileList/useCheckTaskStatus.ts +27 -0
- package/src/features/FileManager/Header/FilesSearchBar.tsx +41 -0
- package/src/features/FileManager/Header/UploadFileButton.tsx +79 -0
- package/src/features/FileManager/Header/index.tsx +39 -0
- package/src/features/FileManager/UploadDock/Item.tsx +124 -0
- package/src/features/FileManager/UploadDock/index.tsx +183 -0
- package/src/features/FileManager/index.tsx +38 -0
- package/src/features/FileSidePanel/index.tsx +79 -0
- package/src/features/FileViewer/NotSupport/index.tsx +54 -0
- package/src/features/FileViewer/PDFViewer/HighlightLayer.tsx +81 -0
- package/src/features/FileViewer/PDFViewer/index.tsx +93 -0
- package/src/features/FileViewer/PDFViewer/style.ts +20 -0
- package/src/features/FileViewer/PDFViewer/useResizeObserver.ts +33 -0
- package/src/features/FileViewer/TXTViewer/index.tsx +41 -0
- package/src/features/FileViewer/index.tsx +45 -0
- package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +115 -0
- package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/index.tsx +43 -0
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/Action.tsx +103 -0
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/EditCustomPlugin.tsx +55 -0
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/PluginTag.tsx +58 -0
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/index.tsx +70 -0
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/List.tsx +49 -0
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Loading.tsx +13 -0
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/index.tsx +39 -0
- package/src/features/KnowledgeBaseModal/CreateNew/CreateForm.tsx +73 -0
- package/src/features/KnowledgeBaseModal/CreateNew/index.tsx +35 -0
- package/src/features/KnowledgeBaseModal/index.ts +3 -0
- package/src/libs/langchain/loaders/pdf/index.ts +2 -2
- package/src/libs/trpc/async/asyncAuth.ts +24 -0
- package/src/libs/trpc/async/index.ts +10 -0
- package/src/libs/trpc/async/init.ts +11 -0
- package/src/libs/trpc/client/async.ts +14 -0
- package/src/libs/trpc/client/index.ts +1 -0
- package/src/libs/trpc/client/lambda.ts +9 -0
- package/src/libs/trpc/middleware/keyVaults.ts +18 -0
- package/src/libs/unstructured/__tests__/index.test.ts +0 -10
- package/src/libs/unstructured/index.ts +6 -11
- package/src/locales/default/chat.ts +47 -3
- package/src/locales/default/common.ts +1 -0
- package/src/locales/default/components.ts +2 -0
- package/src/locales/default/error.ts +6 -1
- package/src/locales/default/file.ts +92 -0
- package/src/locales/default/index.ts +4 -0
- package/src/locales/default/knowledgeBase.ts +31 -0
- package/src/locales/default/portal.ts +1 -0
- package/src/middleware.ts +3 -0
- package/src/server/asyncContext.ts +40 -0
- package/src/server/modules/ContentChunk/index.ts +135 -0
- package/src/server/modules/S3/index.ts +30 -5
- package/src/server/routers/async/caller.ts +27 -0
- package/src/server/routers/async/file.ts +247 -0
- package/src/server/routers/async/index.ts +12 -0
- package/src/server/routers/lambda/_template.ts +77 -0
- package/src/server/routers/lambda/agent.ts +159 -0
- package/src/server/routers/lambda/chunk.ts +189 -0
- package/src/server/routers/lambda/file.ts +129 -5
- package/src/server/routers/lambda/index.ts +6 -0
- package/src/server/routers/lambda/knowledgeBase.ts +79 -0
- package/src/server/routers/lambda/message.ts +6 -0
- package/src/server/routers/lambda/session.ts +0 -25
- package/src/server/routers/lambda/user.ts +5 -1
- package/src/server/services/chunk/index.ts +74 -0
- package/src/server/utils/files.ts +9 -0
- package/src/services/__tests__/chat.test.ts +18 -20
- package/src/services/__tests__/{upload.test.ts → upload_legacy.test.ts} +1 -1
- package/src/services/agent.ts +45 -0
- package/src/services/chat.ts +17 -15
- package/src/services/file/client.test.ts +1 -50
- package/src/services/file/client.ts +12 -25
- package/src/services/file/server.ts +25 -3
- package/src/services/file/type.ts +7 -4
- package/src/services/knowledgeBase.ts +34 -0
- package/src/services/message/client.test.ts +1 -1
- package/src/services/message/client.ts +29 -3
- package/src/services/message/index.ts +0 -2
- package/src/services/message/server.ts +9 -3
- package/src/services/message/type.ts +1 -13
- package/src/services/rag.ts +29 -0
- package/src/services/session/server.ts +1 -1
- package/src/services/upload.ts +89 -84
- package/src/services/upload_legacy.ts +104 -0
- package/src/services/user/client.ts +7 -2
- package/src/services/user/server.ts +6 -2
- package/src/services/user/type.ts +3 -2
- package/src/store/agent/slices/chat/action.ts +90 -18
- package/src/store/agent/slices/chat/initialState.ts +1 -0
- package/src/store/agent/slices/chat/selectors.ts +58 -0
- package/src/store/chat/slices/builtinTool/action.test.ts +2 -2
- package/src/store/chat/slices/builtinTool/action.ts +2 -2
- package/src/store/chat/slices/message/action.test.ts +2 -1
- package/src/store/chat/slices/message/action.ts +102 -26
- package/src/store/chat/slices/message/actions/rag.ts +148 -0
- package/src/store/chat/slices/message/initialState.ts +7 -0
- package/src/store/chat/slices/message/reducer.ts +6 -2
- package/src/store/chat/slices/message/selectors.ts +38 -3
- package/src/store/chat/slices/plugin/action.ts +8 -2
- package/src/store/chat/slices/portal/action.ts +8 -0
- package/src/store/chat/slices/portal/initialState.ts +3 -0
- package/src/store/chat/slices/portal/selectors.ts +8 -2
- package/src/store/file/initialState.ts +5 -1
- package/src/store/file/reducers/uploadFileList.ts +133 -0
- package/src/store/file/selectors.ts +3 -0
- package/src/store/file/slices/chat/action.test.ts +90 -90
- package/src/store/file/slices/chat/action.ts +164 -109
- package/src/store/file/slices/chat/initialState.ts +7 -2
- package/src/store/file/slices/chat/selectors.test.ts +84 -61
- package/src/store/file/slices/chat/selectors.ts +22 -32
- package/src/store/file/slices/chunk/action.ts +36 -0
- package/src/store/file/slices/chunk/index.ts +3 -0
- package/src/store/file/slices/chunk/initialState.ts +15 -0
- package/src/store/file/slices/chunk/selectors.ts +10 -0
- package/src/store/file/slices/fileManager/action.ts +187 -0
- package/src/store/file/slices/fileManager/index.ts +3 -0
- package/src/store/file/slices/fileManager/initialState.ts +18 -0
- package/src/store/file/slices/fileManager/selectors.ts +58 -0
- package/src/store/file/slices/tts/action.test.ts +1 -1
- package/src/store/file/slices/tts/action.ts +2 -2
- package/src/store/file/slices/upload/action.ts +164 -0
- package/src/store/file/store.ts +12 -1
- package/src/store/knowledgeBase/index.ts +2 -0
- package/src/store/knowledgeBase/initialState.ts +7 -0
- package/src/store/knowledgeBase/selectors.ts +1 -0
- package/src/store/knowledgeBase/slices/content/action.ts +27 -0
- package/src/store/knowledgeBase/slices/content/index.ts +1 -0
- package/src/store/knowledgeBase/slices/crud/action.ts +78 -0
- package/src/store/knowledgeBase/slices/crud/index.ts +3 -0
- package/src/store/knowledgeBase/slices/crud/initialState.ts +12 -0
- package/src/store/knowledgeBase/slices/crud/selectors.ts +7 -0
- package/src/store/knowledgeBase/store.ts +30 -0
- package/src/store/serverConfig/selectors.test.ts +1 -1
- package/src/store/user/slices/preference/selectors.ts +8 -0
- package/src/store/user/slices/settings/selectors/systemAgent.ts +2 -0
- package/src/tools/dalle/Render/Item/ImageFileItem.tsx +3 -23
- package/src/types/agent/index.ts +9 -0
- package/src/types/asyncTask.ts +31 -0
- package/src/types/chunk/document.ts +9 -0
- package/src/types/chunk/index.ts +52 -0
- package/src/types/files/index.ts +35 -0
- package/src/types/files/list.ts +44 -0
- package/src/types/files/upload.ts +91 -0
- package/src/types/knowledgeBase/index.ts +45 -0
- package/src/types/message/index.ts +54 -5
- package/src/types/rag.ts +16 -0
- package/src/utils/filter.test.ts +2 -0
- package/src/utils/server/auth.ts +23 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/LocalFiles.tsx +0 -46
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files.tsx +0 -19
- package/src/components/FileList/EditableFileList.tsx +0 -47
- package/src/components/FileList/index.ts +0 -2
- package/src/components/FileList/type.tsx +0 -7
- package/src/database/server/schemas/lobechat/chat.ts +0 -331
- package/src/features/ChatInput/ActionBar/FileUpload.tsx +0 -69
- package/src/features/ChatInput/useChatInput.ts +0 -45
- package/src/features/FileList/EditableFileList.tsx +0 -31
- package/src/features/FileList/FileListPreviewer.tsx +0 -17
- package/src/features/FileList/index.tsx +0 -2
- package/src/types/files.ts +0 -42
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"desc": "ファイルと知識ベースを管理する",
|
|
3
|
+
"detail": {
|
|
4
|
+
"basic": {
|
|
5
|
+
"createdAt": "作成日時",
|
|
6
|
+
"filename": "ファイル名",
|
|
7
|
+
"size": "ファイルサイズ",
|
|
8
|
+
"title": "基本情報",
|
|
9
|
+
"type": "フォーマット",
|
|
10
|
+
"updatedAt": "更新日時"
|
|
11
|
+
},
|
|
12
|
+
"data": {
|
|
13
|
+
"chunkCount": "チャンク数",
|
|
14
|
+
"embedding": {
|
|
15
|
+
"default": "ベクトル化されていません",
|
|
16
|
+
"error": "失敗",
|
|
17
|
+
"pending": "開始待ち",
|
|
18
|
+
"processing": "処理中",
|
|
19
|
+
"success": "完了"
|
|
20
|
+
},
|
|
21
|
+
"embeddingStatus": "ベクトル化"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"header": {
|
|
25
|
+
"actions": {
|
|
26
|
+
"newFolder": "新しいフォルダーを作成",
|
|
27
|
+
"uploadFile": "ファイルをアップロード",
|
|
28
|
+
"uploadFolder": "フォルダーをアップロード"
|
|
29
|
+
},
|
|
30
|
+
"uploadButton": "アップロード"
|
|
31
|
+
},
|
|
32
|
+
"knowledgeBase": {
|
|
33
|
+
"list": {
|
|
34
|
+
"confirmRemoveKnowledgeBase": "この知識ベースを削除しようとしています。ファイルは削除されず、すべてのファイルに移動されます。知識ベースを削除すると復元できませんので、慎重に操作してください。",
|
|
35
|
+
"empty": "クリックして <1>+</1> 知識ベースを作成を開始"
|
|
36
|
+
},
|
|
37
|
+
"new": "新しい知識ベース",
|
|
38
|
+
"title": "知識ベース"
|
|
39
|
+
},
|
|
40
|
+
"notSupportGuide": {
|
|
41
|
+
"desc": "現在のデプロイメントインスタンスはクライアントデータベースモードであり、ファイル管理機能を使用できません。<1>サーバーデータベースデプロイメントモード</1>に切り替えるか、直接 <3>LobeChat Cloud</3> を使用してください。",
|
|
42
|
+
"features": {
|
|
43
|
+
"allKind": {
|
|
44
|
+
"desc": "Word、PPT、Excel、PDF、TXTなどの一般的な文書形式や、JS、Pythonなどの主流のコードファイルを含む、主流のファイルタイプをサポートしています。",
|
|
45
|
+
"title": "多様なファイルタイプの解析"
|
|
46
|
+
},
|
|
47
|
+
"embeddings": {
|
|
48
|
+
"desc": "高性能ベクトルモデルを使用して、テキストチャンクをベクトル化し、ファイル内容の意味的検索を実現します。",
|
|
49
|
+
"title": "ベクトルの意味化"
|
|
50
|
+
},
|
|
51
|
+
"repos": {
|
|
52
|
+
"desc": "知識ベースの作成をサポートし、さまざまなタイプのファイルを追加して、あなたの専門知識を構築できます。",
|
|
53
|
+
"title": "知識ベース"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"title": "現在のデプロイメントモードはファイル管理をサポートしていません"
|
|
57
|
+
},
|
|
58
|
+
"preview": {
|
|
59
|
+
"unsupportedFile": "このファイル形式はオンラインプレビューをサポートしていません"
|
|
60
|
+
},
|
|
61
|
+
"searchFilePlaceholder": "ファイルを検索",
|
|
62
|
+
"tab": {
|
|
63
|
+
"all": "すべてのファイル",
|
|
64
|
+
"audios": "音声",
|
|
65
|
+
"documents": "文書",
|
|
66
|
+
"images": "画像",
|
|
67
|
+
"videos": "動画",
|
|
68
|
+
"websites": "ウェブサイト"
|
|
69
|
+
},
|
|
70
|
+
"title": "ファイル",
|
|
71
|
+
"uploadDock": {
|
|
72
|
+
"body": {
|
|
73
|
+
"collapse": "折りたたむ",
|
|
74
|
+
"item": {
|
|
75
|
+
"done": "アップロード完了",
|
|
76
|
+
"error": "アップロード失敗、再試行してください",
|
|
77
|
+
"pending": "アップロード準備中...",
|
|
78
|
+
"processing": "ファイル処理中...",
|
|
79
|
+
"restTime": "残り {{time}}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"totalCount": "合計 {{count}} 件",
|
|
83
|
+
"uploadStatus": {
|
|
84
|
+
"error": "アップロードエラー",
|
|
85
|
+
"pending": "アップロード待機中",
|
|
86
|
+
"processing": "アップロード中",
|
|
87
|
+
"success": "アップロード完了",
|
|
88
|
+
"uploading": "アップロード中"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addToKnowledgeBase": {
|
|
3
|
+
"addSuccess": "ファイルが正常に追加されました。<1>今すぐ確認</1>",
|
|
4
|
+
"confirm": "追加",
|
|
5
|
+
"id": {
|
|
6
|
+
"placeholder": "追加する知識ベースを選択してください",
|
|
7
|
+
"required": "知識ベースを選択してください",
|
|
8
|
+
"title": "ターゲット知識ベース"
|
|
9
|
+
},
|
|
10
|
+
"title": "知識ベースに追加",
|
|
11
|
+
"totalFiles": "選択されたファイルは {{count}} 件です"
|
|
12
|
+
},
|
|
13
|
+
"createNew": {
|
|
14
|
+
"confirm": "新規作成",
|
|
15
|
+
"description": {
|
|
16
|
+
"placeholder": "知識ベースの説明(任意)"
|
|
17
|
+
},
|
|
18
|
+
"formTitle": "基本情報",
|
|
19
|
+
"name": {
|
|
20
|
+
"placeholder": "知識ベースの名前",
|
|
21
|
+
"required": "知識ベースの名前を入力してください"
|
|
22
|
+
},
|
|
23
|
+
"title": "新しい知識ベースを作成"
|
|
24
|
+
},
|
|
25
|
+
"tab": {
|
|
26
|
+
"files": "ドキュメント",
|
|
27
|
+
"settings": "設定",
|
|
28
|
+
"testing": "リコールテスト"
|
|
29
|
+
},
|
|
30
|
+
"title": "知識ベース"
|
|
31
|
+
}
|
package/locales/ko-KR/chat.json
CHANGED
|
@@ -36,6 +36,24 @@
|
|
|
36
36
|
"stop": "중지",
|
|
37
37
|
"warp": "줄바꿈"
|
|
38
38
|
},
|
|
39
|
+
"knowledgeBase": {
|
|
40
|
+
"all": "모든 내용",
|
|
41
|
+
"allFiles": "모든 파일",
|
|
42
|
+
"allKnowledgeBases": "모든 지식 베이스",
|
|
43
|
+
"disabled": "현재 배포 모드에서는 지식 베이스 대화가 지원되지 않습니다. 사용하려면 서버 데이터베이스 배포로 전환하거나 LobeChat Cloud 서비스를 이용하세요.",
|
|
44
|
+
"library": {
|
|
45
|
+
"action": {
|
|
46
|
+
"add": "추가",
|
|
47
|
+
"detail": "상세",
|
|
48
|
+
"remove": "제거"
|
|
49
|
+
},
|
|
50
|
+
"title": "파일/지식 베이스"
|
|
51
|
+
},
|
|
52
|
+
"relativeFilesOrKnowledgeBases": "관련 파일/지식 베이스",
|
|
53
|
+
"title": "지식 베이스",
|
|
54
|
+
"uploadGuide": "업로드한 파일은 '지식 베이스'에서 확인할 수 있습니다.",
|
|
55
|
+
"viewMore": "더 보기"
|
|
56
|
+
},
|
|
39
57
|
"messageAction": {
|
|
40
58
|
"delAndRegenerate": "삭제하고 다시 생성",
|
|
41
59
|
"regenerate": "다시 생성"
|
|
@@ -43,6 +61,15 @@
|
|
|
43
61
|
"newAgent": "새 도우미",
|
|
44
62
|
"pin": "고정",
|
|
45
63
|
"pinOff": "고정 해제",
|
|
64
|
+
"rag": {
|
|
65
|
+
"referenceChunks": "참조 조각",
|
|
66
|
+
"userQuery": {
|
|
67
|
+
"actions": {
|
|
68
|
+
"delete": "쿼리 삭제",
|
|
69
|
+
"regenerate": "쿼리 재생성"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
46
73
|
"regenerate": "재생성",
|
|
47
74
|
"roleAndArchive": "역할 및 아카이브",
|
|
48
75
|
"searchAgentPlaceholder": "도우미 및 대화 검색...",
|
|
@@ -129,8 +156,24 @@
|
|
|
129
156
|
},
|
|
130
157
|
"updateAgent": "도우미 정보 업데이트",
|
|
131
158
|
"upload": {
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
159
|
+
"action": {
|
|
160
|
+
"fileUpload": "파일 업로드",
|
|
161
|
+
"folderUpload": "폴더 업로드",
|
|
162
|
+
"imageDisabled": "현재 모델은 시각 인식을 지원하지 않습니다. 모델을 변경한 후 사용하세요.",
|
|
163
|
+
"imageUpload": "이미지 업로드",
|
|
164
|
+
"tooltip": "업로드"
|
|
165
|
+
},
|
|
166
|
+
"clientMode": {
|
|
167
|
+
"actionFiletip": "파일 업로드",
|
|
168
|
+
"actionTooltip": "업로드",
|
|
169
|
+
"disabled": "현재 모델은 시각 인식 및 파일 분석을 지원하지 않습니다. 모델을 변경한 후 사용하세요."
|
|
170
|
+
},
|
|
171
|
+
"preview": {
|
|
172
|
+
"prepareTasks": "청크 준비 중...",
|
|
173
|
+
"status": {
|
|
174
|
+
"pending": "업로드 준비 중...",
|
|
175
|
+
"processing": "파일 처리 중..."
|
|
176
|
+
}
|
|
177
|
+
}
|
|
135
178
|
}
|
|
136
179
|
}
|
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
"chunks": {
|
|
51
51
|
"embeddingStatus": {
|
|
52
52
|
"empty": "텍스트 블록이 완전히 벡터화되지 않았습니다. 이는 의미 검색 기능을 사용할 수 없게 만듭니다. 검색 품질을 향상시키기 위해 텍스트 블록을 벡터화해 주세요.",
|
|
53
|
+
"error": "벡터화 실패",
|
|
54
|
+
"errorResult": "벡터화에 실패했습니다. 다시 확인한 후 재시도해 주세요. 실패 원인:",
|
|
53
55
|
"processing": "텍스트 블록이 벡터화되고 있습니다. 잠시 기다려 주세요.",
|
|
54
56
|
"success": "현재 텍스트 블록이 모두 벡터화되었습니다."
|
|
55
57
|
},
|
package/locales/ko-KR/error.json
CHANGED
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
},
|
|
116
116
|
"upload": {
|
|
117
117
|
"desc": "상세 내용: {{detail}}",
|
|
118
|
+
"fileOnlySupportInServerMode": "현재 배포 모드에서는 이미지 파일이 아닌 파일 업로드를 지원하지 않습니다. {{ext}} 형식을 업로드하려면 서버 데이터베이스 배포로 전환하거나 LobeChat Cloud 서비스를 사용하세요.",
|
|
118
119
|
"title": "파일 업로드 실패, 네트워크 연결을 확인하거나 나중에 다시 시도해주세요"
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"desc": "파일 및 지식 베이스 관리",
|
|
3
|
+
"detail": {
|
|
4
|
+
"basic": {
|
|
5
|
+
"createdAt": "생성 시간",
|
|
6
|
+
"filename": "파일 이름",
|
|
7
|
+
"size": "파일 크기",
|
|
8
|
+
"title": "기본 정보",
|
|
9
|
+
"type": "형식",
|
|
10
|
+
"updatedAt": "업데이트 시간"
|
|
11
|
+
},
|
|
12
|
+
"data": {
|
|
13
|
+
"chunkCount": "청크 수",
|
|
14
|
+
"embedding": {
|
|
15
|
+
"default": "벡터화되지 않음",
|
|
16
|
+
"error": "실패",
|
|
17
|
+
"pending": "시작 대기 중",
|
|
18
|
+
"processing": "처리 중",
|
|
19
|
+
"success": "완료"
|
|
20
|
+
},
|
|
21
|
+
"embeddingStatus": "벡터화"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"header": {
|
|
25
|
+
"actions": {
|
|
26
|
+
"newFolder": "새 폴더 만들기",
|
|
27
|
+
"uploadFile": "파일 업로드",
|
|
28
|
+
"uploadFolder": "폴더 업로드"
|
|
29
|
+
},
|
|
30
|
+
"uploadButton": "업로드"
|
|
31
|
+
},
|
|
32
|
+
"knowledgeBase": {
|
|
33
|
+
"list": {
|
|
34
|
+
"confirmRemoveKnowledgeBase": "해당 지식 베이스를 삭제하면 파일은 삭제되지 않고 모든 파일로 이동됩니다. 지식 베이스 삭제 후에는 복구할 수 없으니 신중하게 작업하세요.",
|
|
35
|
+
"empty": "지식 베이스 생성을 시작하려면 <1>+</1>를 클릭하세요."
|
|
36
|
+
},
|
|
37
|
+
"new": "새 지식 베이스 만들기",
|
|
38
|
+
"title": "지식 베이스"
|
|
39
|
+
},
|
|
40
|
+
"notSupportGuide": {
|
|
41
|
+
"desc": "현재 배포된 인스턴스는 클라이언트 데이터베이스 모드로, 파일 관리 기능을 사용할 수 없습니다. <1>서버 데이터베이스 배포 모드</1>로 전환하거나 직접 <3>LobeChat Cloud</3>를 사용하세요.",
|
|
42
|
+
"features": {
|
|
43
|
+
"allKind": {
|
|
44
|
+
"desc": "Word, PPT, Excel, PDF, TXT 등 일반 문서 형식과 JS, Python 등 주요 코드 파일을 포함한 다양한 파일 형식을 지원합니다.",
|
|
45
|
+
"title": "다양한 파일 형식 분석"
|
|
46
|
+
},
|
|
47
|
+
"embeddings": {
|
|
48
|
+
"desc": "고성능 벡터 모델을 사용하여 텍스트 청크를 벡터화하여 파일 내용의 의미 기반 검색을 구현합니다.",
|
|
49
|
+
"title": "벡터 의미화"
|
|
50
|
+
},
|
|
51
|
+
"repos": {
|
|
52
|
+
"desc": "지식 베이스를 생성하고 다양한 유형의 파일을 추가하여 나만의 분야 지식을 구축할 수 있습니다.",
|
|
53
|
+
"title": "지식 베이스"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"title": "현재 배포 모드는 파일 관리를 지원하지 않습니다."
|
|
57
|
+
},
|
|
58
|
+
"preview": {
|
|
59
|
+
"unsupportedFile": "이 파일 형식은 온라인 미리보기를 지원하지 않습니다."
|
|
60
|
+
},
|
|
61
|
+
"searchFilePlaceholder": "파일 검색",
|
|
62
|
+
"tab": {
|
|
63
|
+
"all": "모든 파일",
|
|
64
|
+
"audios": "음성",
|
|
65
|
+
"documents": "문서",
|
|
66
|
+
"images": "이미지",
|
|
67
|
+
"videos": "비디오",
|
|
68
|
+
"websites": "웹사이트"
|
|
69
|
+
},
|
|
70
|
+
"title": "파일",
|
|
71
|
+
"uploadDock": {
|
|
72
|
+
"body": {
|
|
73
|
+
"collapse": "접기",
|
|
74
|
+
"item": {
|
|
75
|
+
"done": "업로드 완료",
|
|
76
|
+
"error": "업로드 실패, 다시 시도하세요.",
|
|
77
|
+
"pending": "업로드 준비 중...",
|
|
78
|
+
"processing": "파일 처리 중...",
|
|
79
|
+
"restTime": "남은 시간 {{time}}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"totalCount": "총 {{count}} 항목",
|
|
83
|
+
"uploadStatus": {
|
|
84
|
+
"error": "업로드 오류",
|
|
85
|
+
"pending": "업로드 대기 중",
|
|
86
|
+
"processing": "업로드 중",
|
|
87
|
+
"success": "업로드 완료",
|
|
88
|
+
"uploading": "업로드 진행 중"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addToKnowledgeBase": {
|
|
3
|
+
"addSuccess": "파일이 성공적으로 추가되었습니다. <1>즉시 확인하기</1>",
|
|
4
|
+
"confirm": "추가",
|
|
5
|
+
"id": {
|
|
6
|
+
"placeholder": "추가할 지식베이스를 선택하세요",
|
|
7
|
+
"required": "지식베이스를 선택하세요",
|
|
8
|
+
"title": "대상 지식베이스"
|
|
9
|
+
},
|
|
10
|
+
"title": "지식베이스에 추가",
|
|
11
|
+
"totalFiles": "총 {{count}} 개의 파일이 선택되었습니다"
|
|
12
|
+
},
|
|
13
|
+
"createNew": {
|
|
14
|
+
"confirm": "새로 만들기",
|
|
15
|
+
"description": {
|
|
16
|
+
"placeholder": "지식베이스 소개 (선택 사항)"
|
|
17
|
+
},
|
|
18
|
+
"formTitle": "기본 정보",
|
|
19
|
+
"name": {
|
|
20
|
+
"placeholder": "지식베이스 이름",
|
|
21
|
+
"required": "지식베이스 이름을 입력하세요"
|
|
22
|
+
},
|
|
23
|
+
"title": "새 지식베이스 만들기"
|
|
24
|
+
},
|
|
25
|
+
"tab": {
|
|
26
|
+
"files": "문서",
|
|
27
|
+
"settings": "설정",
|
|
28
|
+
"testing": "리콜 테스트"
|
|
29
|
+
},
|
|
30
|
+
"title": "지식베이스"
|
|
31
|
+
}
|
package/locales/nl-NL/chat.json
CHANGED
|
@@ -36,6 +36,24 @@
|
|
|
36
36
|
"stop": "Stoppen",
|
|
37
37
|
"warp": "Nieuwe regel"
|
|
38
38
|
},
|
|
39
|
+
"knowledgeBase": {
|
|
40
|
+
"all": "Alle inhoud",
|
|
41
|
+
"allFiles": "Alle bestanden",
|
|
42
|
+
"allKnowledgeBases": "Alle kennisbanken",
|
|
43
|
+
"disabled": "De huidige implementatiemodus ondersteunt geen kennisbankgesprekken. Schakel over naar serverdatabase-implementatie of gebruik de LobeChat Cloud-service om dit te gebruiken.",
|
|
44
|
+
"library": {
|
|
45
|
+
"action": {
|
|
46
|
+
"add": "Toevoegen",
|
|
47
|
+
"detail": "Details",
|
|
48
|
+
"remove": "Verwijderen"
|
|
49
|
+
},
|
|
50
|
+
"title": "Bestand/Kennisbank"
|
|
51
|
+
},
|
|
52
|
+
"relativeFilesOrKnowledgeBases": "Gerelateerde bestanden/kennisbanken",
|
|
53
|
+
"title": "Kennisbank",
|
|
54
|
+
"uploadGuide": "Geüploade bestanden kunnen worden bekeken in de 'Kennisbank'.",
|
|
55
|
+
"viewMore": "Bekijk meer"
|
|
56
|
+
},
|
|
39
57
|
"messageAction": {
|
|
40
58
|
"delAndRegenerate": "Verwijderen en opnieuw genereren",
|
|
41
59
|
"regenerate": "Opnieuw genereren"
|
|
@@ -43,6 +61,15 @@
|
|
|
43
61
|
"newAgent": "Nieuwe assistent",
|
|
44
62
|
"pin": "Vastzetten",
|
|
45
63
|
"pinOff": "Vastzetten uitschakelen",
|
|
64
|
+
"rag": {
|
|
65
|
+
"referenceChunks": "Referentiestukken",
|
|
66
|
+
"userQuery": {
|
|
67
|
+
"actions": {
|
|
68
|
+
"delete": "Verwijder Query herschrijving",
|
|
69
|
+
"regenerate": "Genereer Query opnieuw"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
46
73
|
"regenerate": "Opnieuw genereren",
|
|
47
74
|
"roleAndArchive": "Rol en archief",
|
|
48
75
|
"searchAgentPlaceholder": "Zoek assistenten en gesprekken...",
|
|
@@ -129,8 +156,24 @@
|
|
|
129
156
|
},
|
|
130
157
|
"updateAgent": "Assistentgegevens bijwerken",
|
|
131
158
|
"upload": {
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
159
|
+
"action": {
|
|
160
|
+
"fileUpload": "Bestand uploaden",
|
|
161
|
+
"folderUpload": "Map uploaden",
|
|
162
|
+
"imageDisabled": "Dit model ondersteunt momenteel geen visuele herkenning, schakel alstublieft naar een ander model.",
|
|
163
|
+
"imageUpload": "Afbeelding uploaden",
|
|
164
|
+
"tooltip": "Uploaden"
|
|
165
|
+
},
|
|
166
|
+
"clientMode": {
|
|
167
|
+
"actionFiletip": "Bestand uploaden",
|
|
168
|
+
"actionTooltip": "Uploaden",
|
|
169
|
+
"disabled": "Dit model ondersteunt momenteel geen visuele herkenning en bestandanalyse, schakel alstublieft naar een ander model."
|
|
170
|
+
},
|
|
171
|
+
"preview": {
|
|
172
|
+
"prepareTasks": "Voorbereiden van blokken...",
|
|
173
|
+
"status": {
|
|
174
|
+
"pending": "Voorbereiden om te uploaden...",
|
|
175
|
+
"processing": "Bestand wordt verwerkt..."
|
|
176
|
+
}
|
|
177
|
+
}
|
|
135
178
|
}
|
|
136
179
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"autoGenerate": "Automatisch genereren",
|
|
14
14
|
"autoGenerateTooltip": "Automatisch assistentbeschrijving genereren op basis van suggesties",
|
|
15
15
|
"autoGenerateTooltipDisabled": "Schakel de automatische aanvulling in nadat u een suggestiewoord heeft ingevoerd",
|
|
16
|
+
"back": "Terug",
|
|
16
17
|
"batchDelete": "Batch verwijderen",
|
|
17
18
|
"blog": "Product Blog",
|
|
18
19
|
"cancel": "Annuleren",
|
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
"chunks": {
|
|
51
51
|
"embeddingStatus": {
|
|
52
52
|
"empty": "Tekstblokken zijn nog niet volledig gevectoriseerd, wat de semantische zoekfunctie kan uitschakelen. Om de zoekkwaliteit te verbeteren, vectoriseer de tekstblokken.",
|
|
53
|
+
"error": "Vectorisatie mislukt",
|
|
54
|
+
"errorResult": "Vectorisatie mislukt, controleer en probeer het opnieuw. Reden van falen:",
|
|
53
55
|
"processing": "Tekstblokken worden gevectoriseerd, graag even geduld.",
|
|
54
56
|
"success": "Huidige tekstblokken zijn allemaal gevectoriseerd"
|
|
55
57
|
},
|
package/locales/nl-NL/error.json
CHANGED
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
},
|
|
116
116
|
"upload": {
|
|
117
117
|
"desc": "Details: {{detail}}",
|
|
118
|
+
"fileOnlySupportInServerMode": "De huidige implementatiemodus ondersteunt het uploaden van niet-afbeeldingsbestanden niet. Als u bestanden in {{ext}}-formaat wilt uploaden, schakelt u over naar de serverdatabase-implementatie of gebruikt u de LobeChat Cloud-service.",
|
|
118
119
|
"title": "Bestand uploaden mislukt, controleer uw internetverbinding of probeer het later opnieuw"
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"desc": "Beheer je bestanden en kennisbank",
|
|
3
|
+
"detail": {
|
|
4
|
+
"basic": {
|
|
5
|
+
"createdAt": "Aanmaakdatum",
|
|
6
|
+
"filename": "Bestandsnaam",
|
|
7
|
+
"size": "Bestandsgrootte",
|
|
8
|
+
"title": "Basisinformatie",
|
|
9
|
+
"type": "Formaat",
|
|
10
|
+
"updatedAt": "Bijwerkdatum"
|
|
11
|
+
},
|
|
12
|
+
"data": {
|
|
13
|
+
"chunkCount": "Aantal delen",
|
|
14
|
+
"embedding": {
|
|
15
|
+
"default": "Nog niet gevectoriseerd",
|
|
16
|
+
"error": "Mislukt",
|
|
17
|
+
"pending": "Te starten",
|
|
18
|
+
"processing": "Bezig",
|
|
19
|
+
"success": "Voltooid"
|
|
20
|
+
},
|
|
21
|
+
"embeddingStatus": "Vectorisatie"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"header": {
|
|
25
|
+
"actions": {
|
|
26
|
+
"newFolder": "Nieuwe map",
|
|
27
|
+
"uploadFile": "Bestand uploaden",
|
|
28
|
+
"uploadFolder": "Map uploaden"
|
|
29
|
+
},
|
|
30
|
+
"uploadButton": "Uploaden"
|
|
31
|
+
},
|
|
32
|
+
"knowledgeBase": {
|
|
33
|
+
"list": {
|
|
34
|
+
"confirmRemoveKnowledgeBase": "Je staat op het punt deze kennisbank te verwijderen. De bestanden hierin worden niet verwijderd, maar verplaatst naar 'Alle bestanden'. Een verwijderde kennisbank kan niet worden hersteld, wees voorzichtig.",
|
|
35
|
+
"empty": "Klik op <1>+</1> om een kennisbank te maken"
|
|
36
|
+
},
|
|
37
|
+
"new": "Nieuwe kennisbank",
|
|
38
|
+
"title": "Kennisbank"
|
|
39
|
+
},
|
|
40
|
+
"notSupportGuide": {
|
|
41
|
+
"desc": "De huidige implementatie is in client-database modus, waardoor de bestandsbeheerfunctie niet beschikbaar is. Schakel over naar <1>server-database implementatiemodus</1>, of gebruik direct <3>LobeChat Cloud</3>",
|
|
42
|
+
"features": {
|
|
43
|
+
"allKind": {
|
|
44
|
+
"desc": "Ondersteunt gangbare bestandstypen, waaronder Word, PPT, Excel, PDF, TXT en andere veelvoorkomende documentformaten, evenals JS, Python en andere gangbare codebestanden",
|
|
45
|
+
"title": "Meerdere bestandstype-analyse"
|
|
46
|
+
},
|
|
47
|
+
"embeddings": {
|
|
48
|
+
"desc": "Gebruik hoogwaardige vectormodellen om tekstdelen te vectoriseren, waardoor semantische zoekopdrachten in de inhoud van bestanden mogelijk zijn",
|
|
49
|
+
"title": "Vector-semantisering"
|
|
50
|
+
},
|
|
51
|
+
"repos": {
|
|
52
|
+
"desc": "Ondersteunt het maken van kennisbanken en staat het toevoegen van verschillende bestandstypen toe, zodat je jouw eigen domeinkennis kunt opbouwen",
|
|
53
|
+
"title": "Kennisbank"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"title": "De huidige implementatiemodus ondersteunt geen bestandsbeheer"
|
|
57
|
+
},
|
|
58
|
+
"preview": {
|
|
59
|
+
"unsupportedFile": "Dit bestandsformaat wordt niet ondersteund voor online preview"
|
|
60
|
+
},
|
|
61
|
+
"searchFilePlaceholder": "Zoek bestand",
|
|
62
|
+
"tab": {
|
|
63
|
+
"all": "Alle bestanden",
|
|
64
|
+
"audios": "Audio's",
|
|
65
|
+
"documents": "Documenten",
|
|
66
|
+
"images": "Afbeeldingen",
|
|
67
|
+
"videos": "Video's",
|
|
68
|
+
"websites": "Websites"
|
|
69
|
+
},
|
|
70
|
+
"title": "Bestanden",
|
|
71
|
+
"uploadDock": {
|
|
72
|
+
"body": {
|
|
73
|
+
"collapse": "Samenvouwen",
|
|
74
|
+
"item": {
|
|
75
|
+
"done": "Geüpload",
|
|
76
|
+
"error": "Upload mislukt, probeer het opnieuw",
|
|
77
|
+
"pending": "Voorbereiden om te uploaden...",
|
|
78
|
+
"processing": "Bestand wordt verwerkt...",
|
|
79
|
+
"restTime": "Overgebleven {{time}}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"totalCount": "Totaal {{count}} items",
|
|
83
|
+
"uploadStatus": {
|
|
84
|
+
"error": "Uploadfout",
|
|
85
|
+
"pending": "Wachten op upload",
|
|
86
|
+
"processing": "Bezig met uploaden",
|
|
87
|
+
"success": "Upload voltooid",
|
|
88
|
+
"uploading": "Bezig met uploaden"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addToKnowledgeBase": {
|
|
3
|
+
"addSuccess": "Bestand succesvol toegevoegd, <1>direct bekijken</1>",
|
|
4
|
+
"confirm": "Toevoegen",
|
|
5
|
+
"id": {
|
|
6
|
+
"placeholder": "Selecteer de kennisbank die u wilt toevoegen",
|
|
7
|
+
"required": "Selecteer een kennisbank",
|
|
8
|
+
"title": "Doelkennisbank"
|
|
9
|
+
},
|
|
10
|
+
"title": "Toevoegen aan kennisbank",
|
|
11
|
+
"totalFiles": "{{count}} bestanden geselecteerd"
|
|
12
|
+
},
|
|
13
|
+
"createNew": {
|
|
14
|
+
"confirm": "Nieuw aanmaken",
|
|
15
|
+
"description": {
|
|
16
|
+
"placeholder": "Kennisbank beschrijving (optioneel)"
|
|
17
|
+
},
|
|
18
|
+
"formTitle": "Basisinformatie",
|
|
19
|
+
"name": {
|
|
20
|
+
"placeholder": "Kennisbank naam",
|
|
21
|
+
"required": "Vul de naam van de kennisbank in"
|
|
22
|
+
},
|
|
23
|
+
"title": "Nieuwe kennisbank aanmaken"
|
|
24
|
+
},
|
|
25
|
+
"tab": {
|
|
26
|
+
"files": "Documenten",
|
|
27
|
+
"settings": "Instellingen",
|
|
28
|
+
"testing": "Herinneringstest"
|
|
29
|
+
},
|
|
30
|
+
"title": "Kennisbank"
|
|
31
|
+
}
|
package/locales/pl-PL/chat.json
CHANGED
|
@@ -36,6 +36,24 @@
|
|
|
36
36
|
"stop": "Zatrzymaj",
|
|
37
37
|
"warp": "Złamanie wiersza"
|
|
38
38
|
},
|
|
39
|
+
"knowledgeBase": {
|
|
40
|
+
"all": "Wszystkie treści",
|
|
41
|
+
"allFiles": "Wszystkie pliki",
|
|
42
|
+
"allKnowledgeBases": "Wszystkie bazy wiedzy",
|
|
43
|
+
"disabled": "Aktualny tryb wdrożenia nie obsługuje rozmów z bazą wiedzy. Aby korzystać, przełącz się na wdrożenie bazy danych serwera lub skorzystaj z usługi LobeChat Cloud.",
|
|
44
|
+
"library": {
|
|
45
|
+
"action": {
|
|
46
|
+
"add": "Dodaj",
|
|
47
|
+
"detail": "Szczegóły",
|
|
48
|
+
"remove": "Usuń"
|
|
49
|
+
},
|
|
50
|
+
"title": "Plik/Baza wiedzy"
|
|
51
|
+
},
|
|
52
|
+
"relativeFilesOrKnowledgeBases": "Powiązane pliki/bazy wiedzy",
|
|
53
|
+
"title": "Baza wiedzy",
|
|
54
|
+
"uploadGuide": "Przesłane pliki można przeglądać w „Bazie wiedzy”",
|
|
55
|
+
"viewMore": "Zobacz więcej"
|
|
56
|
+
},
|
|
39
57
|
"messageAction": {
|
|
40
58
|
"delAndRegenerate": "Usuń i wygeneruj ponownie",
|
|
41
59
|
"regenerate": "Wygeneruj ponownie"
|
|
@@ -43,6 +61,15 @@
|
|
|
43
61
|
"newAgent": "Nowy asystent",
|
|
44
62
|
"pin": "Przypnij",
|
|
45
63
|
"pinOff": "Odepnij",
|
|
64
|
+
"rag": {
|
|
65
|
+
"referenceChunks": "Fragmenty odniesienia",
|
|
66
|
+
"userQuery": {
|
|
67
|
+
"actions": {
|
|
68
|
+
"delete": "Usuń przepisanie zapytania",
|
|
69
|
+
"regenerate": "Ponownie wygeneruj zapytanie"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
46
73
|
"regenerate": "Wygeneruj ponownie",
|
|
47
74
|
"roleAndArchive": "Rola i archiwum",
|
|
48
75
|
"searchAgentPlaceholder": "Szukaj asystentów i rozmów...",
|
|
@@ -129,8 +156,24 @@
|
|
|
129
156
|
},
|
|
130
157
|
"updateAgent": "Aktualizuj informacje asystenta",
|
|
131
158
|
"upload": {
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
159
|
+
"action": {
|
|
160
|
+
"fileUpload": "Prześlij plik",
|
|
161
|
+
"folderUpload": "Prześlij folder",
|
|
162
|
+
"imageDisabled": "Aktualny model nie obsługuje rozpoznawania wizualnego, przełącz się na inny model, aby użyć tej funkcji",
|
|
163
|
+
"imageUpload": "Prześlij obraz",
|
|
164
|
+
"tooltip": "Prześlij"
|
|
165
|
+
},
|
|
166
|
+
"clientMode": {
|
|
167
|
+
"actionFiletip": "Prześlij plik",
|
|
168
|
+
"actionTooltip": "Prześlij",
|
|
169
|
+
"disabled": "Aktualny model nie obsługuje rozpoznawania wizualnego i analizy plików, przełącz się na inny model, aby użyć tej funkcji"
|
|
170
|
+
},
|
|
171
|
+
"preview": {
|
|
172
|
+
"prepareTasks": "Przygotowywanie fragmentów...",
|
|
173
|
+
"status": {
|
|
174
|
+
"pending": "Przygotowywanie do przesłania...",
|
|
175
|
+
"processing": "Przetwarzanie pliku..."
|
|
176
|
+
}
|
|
177
|
+
}
|
|
135
178
|
}
|
|
136
179
|
}
|