@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
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"autoGenerate": "Automatyczne generowanie",
|
|
14
14
|
"autoGenerateTooltip": "Automatyczne uzupełnianie opisu asystenta na podstawie sugestii",
|
|
15
15
|
"autoGenerateTooltipDisabled": "Proszę wprowadzić słowo kluczowe przed użyciem funkcji automatycznego uzupełniania",
|
|
16
|
+
"back": "Powrót",
|
|
16
17
|
"batchDelete": "Usuń wiele",
|
|
17
18
|
"blog": "Blog produktowy",
|
|
18
19
|
"cancel": "Anuluj",
|
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
"chunks": {
|
|
51
51
|
"embeddingStatus": {
|
|
52
52
|
"empty": "Bloki tekstowe nie zostały w pełni wektoryzowane, co spowoduje, że funkcja wyszukiwania semantycznego będzie niedostępna. Aby poprawić jakość wyszukiwania, proszę wektoryzować bloki tekstowe",
|
|
53
|
+
"error": "Błąd wektoryzacji",
|
|
54
|
+
"errorResult": "Błąd wektoryzacji, spróbuj ponownie po sprawdzeniu. Powód błędu:",
|
|
53
55
|
"processing": "Bloki tekstowe są wektoryzowane, proszę czekać",
|
|
54
56
|
"success": "Obecne bloki tekstowe zostały w pełni wektoryzowane"
|
|
55
57
|
},
|
package/locales/pl-PL/error.json
CHANGED
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
},
|
|
116
116
|
"upload": {
|
|
117
117
|
"desc": "Szczegóły: {{detail}}",
|
|
118
|
+
"fileOnlySupportInServerMode": "Aktualny tryb wdrożenia nie obsługuje przesyłania plików, które nie są obrazami. Aby przesłać pliki w formacie {{ext}}, przełącz się na wdrożenie bazy danych na serwerze lub skorzystaj z usługi LobeChat Cloud.",
|
|
118
119
|
"title": "Nie udało się przesłać pliku. Sprawdź połączenie sieciowe lub spróbuj ponownie później"
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"desc": "Zarządzaj swoimi plikami i bazą wiedzy",
|
|
3
|
+
"detail": {
|
|
4
|
+
"basic": {
|
|
5
|
+
"createdAt": "Data utworzenia",
|
|
6
|
+
"filename": "Nazwa pliku",
|
|
7
|
+
"size": "Rozmiar pliku",
|
|
8
|
+
"title": "Informacje podstawowe",
|
|
9
|
+
"type": "Format",
|
|
10
|
+
"updatedAt": "Data aktualizacji"
|
|
11
|
+
},
|
|
12
|
+
"data": {
|
|
13
|
+
"chunkCount": "Liczba fragmentów",
|
|
14
|
+
"embedding": {
|
|
15
|
+
"default": "Nie zindeksowano",
|
|
16
|
+
"error": "Błąd",
|
|
17
|
+
"pending": "Oczekiwanie na uruchomienie",
|
|
18
|
+
"processing": "W trakcie przetwarzania",
|
|
19
|
+
"success": "Zakończono"
|
|
20
|
+
},
|
|
21
|
+
"embeddingStatus": "Indeksowanie"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"header": {
|
|
25
|
+
"actions": {
|
|
26
|
+
"newFolder": "Nowy folder",
|
|
27
|
+
"uploadFile": "Prześlij plik",
|
|
28
|
+
"uploadFolder": "Prześlij folder"
|
|
29
|
+
},
|
|
30
|
+
"uploadButton": "Prześlij"
|
|
31
|
+
},
|
|
32
|
+
"knowledgeBase": {
|
|
33
|
+
"list": {
|
|
34
|
+
"confirmRemoveKnowledgeBase": "Zaraz usuniesz tę bazę wiedzy, pliki w niej zawarte nie zostaną usunięte, a zostaną przeniesione do folderu wszystkich plików. Po usunięciu bazy wiedzy nie będzie można jej przywrócić, proszę działać ostrożnie.",
|
|
35
|
+
"empty": "Kliknij <1>+</1>, aby rozpocząć tworzenie bazy wiedzy"
|
|
36
|
+
},
|
|
37
|
+
"new": "Nowa baza wiedzy",
|
|
38
|
+
"title": "Baza wiedzy"
|
|
39
|
+
},
|
|
40
|
+
"notSupportGuide": {
|
|
41
|
+
"desc": "Obecna instancja wdrożeniowa jest w trybie bazy danych klienta, co uniemożliwia korzystanie z funkcji zarządzania plikami. Proszę przełączyć się na <1>tryb wdrożenia bazy danych serwera</1> lub bezpośrednio korzystać z <3>LobeChat Cloud</3>",
|
|
42
|
+
"features": {
|
|
43
|
+
"allKind": {
|
|
44
|
+
"desc": "Obsługuje popularne typy plików, w tym formaty dokumentów takie jak Word, PPT, Excel, PDF, TXT oraz popularne pliki kodu, takie jak JS, Python",
|
|
45
|
+
"title": "Analiza różnych typów plików"
|
|
46
|
+
},
|
|
47
|
+
"embeddings": {
|
|
48
|
+
"desc": "Wykorzystuje wysokowydajne modele wektorowe do indeksowania fragmentów tekstu, umożliwiając semantyczne przeszukiwanie treści plików",
|
|
49
|
+
"title": "Semantyzacja wektorów"
|
|
50
|
+
},
|
|
51
|
+
"repos": {
|
|
52
|
+
"desc": "Obsługuje tworzenie bazy wiedzy i pozwala na dodawanie różnych typów plików, budując swoją własną wiedzę w danej dziedzinie",
|
|
53
|
+
"title": "Baza wiedzy"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"title": "Obecny tryb wdrożenia nie obsługuje zarządzania plikami"
|
|
57
|
+
},
|
|
58
|
+
"preview": {
|
|
59
|
+
"unsupportedFile": "Ten format pliku nie jest obsługiwany w podglądzie online"
|
|
60
|
+
},
|
|
61
|
+
"searchFilePlaceholder": "Szukaj pliku",
|
|
62
|
+
"tab": {
|
|
63
|
+
"all": "Wszystkie pliki",
|
|
64
|
+
"audios": "Audio",
|
|
65
|
+
"documents": "Dokumenty",
|
|
66
|
+
"images": "Obrazy",
|
|
67
|
+
"videos": "Wideo",
|
|
68
|
+
"websites": "Strony internetowe"
|
|
69
|
+
},
|
|
70
|
+
"title": "Pliki",
|
|
71
|
+
"uploadDock": {
|
|
72
|
+
"body": {
|
|
73
|
+
"collapse": "Zwiń",
|
|
74
|
+
"item": {
|
|
75
|
+
"done": "Przesłano",
|
|
76
|
+
"error": "Błąd przesyłania, spróbuj ponownie",
|
|
77
|
+
"pending": "Przygotowanie do przesłania...",
|
|
78
|
+
"processing": "Przetwarzanie pliku...",
|
|
79
|
+
"restTime": "Pozostały czas {{time}}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"totalCount": "Łącznie {{count}} pozycji",
|
|
83
|
+
"uploadStatus": {
|
|
84
|
+
"error": "Błąd przesyłania",
|
|
85
|
+
"pending": "Oczekiwanie na przesłanie",
|
|
86
|
+
"processing": "Przesyłanie",
|
|
87
|
+
"success": "Przesyłanie zakończone",
|
|
88
|
+
"uploading": "Przesyłanie w toku"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addToKnowledgeBase": {
|
|
3
|
+
"addSuccess": "Plik dodany pomyślnie, <1>zobacz teraz</1>",
|
|
4
|
+
"confirm": "Dodaj",
|
|
5
|
+
"id": {
|
|
6
|
+
"placeholder": "Wybierz bazę wiedzy do dodania",
|
|
7
|
+
"required": "Wybierz bazę wiedzy",
|
|
8
|
+
"title": "Docelowa baza wiedzy"
|
|
9
|
+
},
|
|
10
|
+
"title": "Dodaj do bazy wiedzy",
|
|
11
|
+
"totalFiles": "Wybrano {{count}} plików"
|
|
12
|
+
},
|
|
13
|
+
"createNew": {
|
|
14
|
+
"confirm": "Utwórz",
|
|
15
|
+
"description": {
|
|
16
|
+
"placeholder": "Opis bazy wiedzy (opcjonalnie)"
|
|
17
|
+
},
|
|
18
|
+
"formTitle": "Podstawowe informacje",
|
|
19
|
+
"name": {
|
|
20
|
+
"placeholder": "Nazwa bazy wiedzy",
|
|
21
|
+
"required": "Proszę wpisać nazwę bazy wiedzy"
|
|
22
|
+
},
|
|
23
|
+
"title": "Utwórz nową bazę wiedzy"
|
|
24
|
+
},
|
|
25
|
+
"tab": {
|
|
26
|
+
"files": "Dokumenty",
|
|
27
|
+
"settings": "Ustawienia",
|
|
28
|
+
"testing": "Testowanie przypomnienia"
|
|
29
|
+
},
|
|
30
|
+
"title": "Baza wiedzy"
|
|
31
|
+
}
|
package/locales/pt-BR/chat.json
CHANGED
|
@@ -36,6 +36,24 @@
|
|
|
36
36
|
"stop": "Parar",
|
|
37
37
|
"warp": "Quebrar linha"
|
|
38
38
|
},
|
|
39
|
+
"knowledgeBase": {
|
|
40
|
+
"all": "Todo conteúdo",
|
|
41
|
+
"allFiles": "Todos os arquivos",
|
|
42
|
+
"allKnowledgeBases": "Todos os bancos de conhecimento",
|
|
43
|
+
"disabled": "O modo de implantação atual não suporta diálogos de banco de conhecimento. Para usar, mude para a implantação de banco de dados no servidor ou utilize o serviço LobeChat Cloud.",
|
|
44
|
+
"library": {
|
|
45
|
+
"action": {
|
|
46
|
+
"add": "Adicionar",
|
|
47
|
+
"detail": "Detalhes",
|
|
48
|
+
"remove": "Remover"
|
|
49
|
+
},
|
|
50
|
+
"title": "Arquivo/Banco de Conhecimento"
|
|
51
|
+
},
|
|
52
|
+
"relativeFilesOrKnowledgeBases": "Arquivos/Bancos de Conhecimento relacionados",
|
|
53
|
+
"title": "Banco de Conhecimento",
|
|
54
|
+
"uploadGuide": "Os arquivos enviados podem ser visualizados em 'Banco de Conhecimento'.",
|
|
55
|
+
"viewMore": "Ver mais"
|
|
56
|
+
},
|
|
39
57
|
"messageAction": {
|
|
40
58
|
"delAndRegenerate": "Excluir e Regenerar",
|
|
41
59
|
"regenerate": "Regenerar"
|
|
@@ -43,6 +61,15 @@
|
|
|
43
61
|
"newAgent": "Novo Assistente",
|
|
44
62
|
"pin": "Fixar",
|
|
45
63
|
"pinOff": "Desafixar",
|
|
64
|
+
"rag": {
|
|
65
|
+
"referenceChunks": "Referências",
|
|
66
|
+
"userQuery": {
|
|
67
|
+
"actions": {
|
|
68
|
+
"delete": "Excluir reescrita de Query",
|
|
69
|
+
"regenerate": "Regenerar Query"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
46
73
|
"regenerate": "Regenerar",
|
|
47
74
|
"roleAndArchive": "Função e Arquivo",
|
|
48
75
|
"searchAgentPlaceholder": "Pesquisar assistentes e conversas...",
|
|
@@ -129,8 +156,24 @@
|
|
|
129
156
|
},
|
|
130
157
|
"updateAgent": "Atualizar Informações do Assistente",
|
|
131
158
|
"upload": {
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
159
|
+
"action": {
|
|
160
|
+
"fileUpload": "Enviar arquivo",
|
|
161
|
+
"folderUpload": "Enviar pasta",
|
|
162
|
+
"imageDisabled": "O modelo atual não suporta reconhecimento visual, por favor, mude de modelo antes de usar",
|
|
163
|
+
"imageUpload": "Enviar imagem",
|
|
164
|
+
"tooltip": "Enviar"
|
|
165
|
+
},
|
|
166
|
+
"clientMode": {
|
|
167
|
+
"actionFiletip": "Enviar arquivo",
|
|
168
|
+
"actionTooltip": "Enviar",
|
|
169
|
+
"disabled": "O modelo atual não suporta reconhecimento visual e análise de arquivos, por favor, mude de modelo antes de usar"
|
|
170
|
+
},
|
|
171
|
+
"preview": {
|
|
172
|
+
"prepareTasks": "Preparando partes...",
|
|
173
|
+
"status": {
|
|
174
|
+
"pending": "Preparando para upload...",
|
|
175
|
+
"processing": "Processando arquivo..."
|
|
176
|
+
}
|
|
177
|
+
}
|
|
135
178
|
}
|
|
136
179
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"autoGenerate": "Auto completar",
|
|
14
14
|
"autoGenerateTooltip": "Auto completar descrição do assistente com base em sugestões",
|
|
15
15
|
"autoGenerateTooltipDisabled": "Por favor, preencha a dica antes de usar a função de preenchimento automático",
|
|
16
|
+
"back": "Voltar",
|
|
16
17
|
"batchDelete": "Excluir em massa",
|
|
17
18
|
"blog": "Blog de Produtos",
|
|
18
19
|
"cancel": "Cancelar",
|
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
"chunks": {
|
|
51
51
|
"embeddingStatus": {
|
|
52
52
|
"empty": "Os blocos de texto ainda não foram completamente vetorizados, o que resultará na funcionalidade de busca semântica indisponível. Para melhorar a qualidade da busca, por favor, vetorize os blocos de texto.",
|
|
53
|
+
"error": "Falha na vetorização",
|
|
54
|
+
"errorResult": "Falha na vetorização, por favor verifique e tente novamente. Motivo da falha:",
|
|
53
55
|
"processing": "Os blocos de texto estão sendo vetorizados, por favor, aguarde.",
|
|
54
56
|
"success": "Atualmente, todos os blocos de texto foram vetorizados."
|
|
55
57
|
},
|
package/locales/pt-BR/error.json
CHANGED
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
},
|
|
116
116
|
"upload": {
|
|
117
117
|
"desc": "Detalhes: {{detail}}",
|
|
118
|
+
"fileOnlySupportInServerMode": "O modo de implantação atual não suporta o upload de arquivos que não sejam imagens. Para fazer o upload de arquivos no formato {{ext}}, por favor, mude para a implantação do banco de dados no servidor ou utilize o serviço LobeChat Cloud.",
|
|
118
119
|
"title": "Falha ao enviar o arquivo, verifique a conexão de rede ou tente novamente mais tarde"
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"desc": "Gerencie seus arquivos e repositórios de conhecimento",
|
|
3
|
+
"detail": {
|
|
4
|
+
"basic": {
|
|
5
|
+
"createdAt": "Data de criação",
|
|
6
|
+
"filename": "Nome do arquivo",
|
|
7
|
+
"size": "Tamanho do arquivo",
|
|
8
|
+
"title": "Informações básicas",
|
|
9
|
+
"type": "Formato",
|
|
10
|
+
"updatedAt": "Data de atualização"
|
|
11
|
+
},
|
|
12
|
+
"data": {
|
|
13
|
+
"chunkCount": "Número de partes",
|
|
14
|
+
"embedding": {
|
|
15
|
+
"default": "Ainda não vetorizado",
|
|
16
|
+
"error": "Falha",
|
|
17
|
+
"pending": "Aguardando início",
|
|
18
|
+
"processing": "Processando",
|
|
19
|
+
"success": "Concluído"
|
|
20
|
+
},
|
|
21
|
+
"embeddingStatus": "Vetorização"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"header": {
|
|
25
|
+
"actions": {
|
|
26
|
+
"newFolder": "Nova pasta",
|
|
27
|
+
"uploadFile": "Enviar arquivo",
|
|
28
|
+
"uploadFolder": "Enviar pasta"
|
|
29
|
+
},
|
|
30
|
+
"uploadButton": "Enviar"
|
|
31
|
+
},
|
|
32
|
+
"knowledgeBase": {
|
|
33
|
+
"list": {
|
|
34
|
+
"confirmRemoveKnowledgeBase": "Você está prestes a excluir este repositório de conhecimento. Os arquivos não serão excluídos, mas serão movidos para 'Todos os arquivos'. Após a exclusão, o repositório não poderá ser recuperado, por favor, proceda com cautela.",
|
|
35
|
+
"empty": "Clique em <1>+</1> para começar a criar um repositório de conhecimento"
|
|
36
|
+
},
|
|
37
|
+
"new": "Novo repositório de conhecimento",
|
|
38
|
+
"title": "Repositório de conhecimento"
|
|
39
|
+
},
|
|
40
|
+
"notSupportGuide": {
|
|
41
|
+
"desc": "A instância atual está no modo de banco de dados cliente e não pode usar a funcionalidade de gerenciamento de arquivos. Por favor, mude para <1>modo de banco de dados servidor</1>, ou use diretamente <3>LobeChat Cloud</3>",
|
|
42
|
+
"features": {
|
|
43
|
+
"allKind": {
|
|
44
|
+
"desc": "Suporta os principais tipos de arquivos, incluindo formatos comuns como Word, PPT, Excel, PDF, TXT, além de arquivos de código como JS, Python",
|
|
45
|
+
"title": "Análise de vários tipos de arquivos"
|
|
46
|
+
},
|
|
47
|
+
"embeddings": {
|
|
48
|
+
"desc": "Utiliza modelos vetoriais de alto desempenho para vetorização de partes de texto, permitindo a busca semântica do conteúdo dos arquivos",
|
|
49
|
+
"title": "Semantização vetorial"
|
|
50
|
+
},
|
|
51
|
+
"repos": {
|
|
52
|
+
"desc": "Permite a criação de repositórios de conhecimento e a adição de diferentes tipos de arquivos, construindo seu próprio conhecimento de domínio",
|
|
53
|
+
"title": "Repositório de conhecimento"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"title": "O modo de implantação atual não suporta gerenciamento de arquivos"
|
|
57
|
+
},
|
|
58
|
+
"preview": {
|
|
59
|
+
"unsupportedFile": "Este formato de arquivo não suporta visualização online"
|
|
60
|
+
},
|
|
61
|
+
"searchFilePlaceholder": "Pesquisar arquivo",
|
|
62
|
+
"tab": {
|
|
63
|
+
"all": "Todos os arquivos",
|
|
64
|
+
"audios": "Áudios",
|
|
65
|
+
"documents": "Documentos",
|
|
66
|
+
"images": "Imagens",
|
|
67
|
+
"videos": "Vídeos",
|
|
68
|
+
"websites": "Sites"
|
|
69
|
+
},
|
|
70
|
+
"title": "Arquivos",
|
|
71
|
+
"uploadDock": {
|
|
72
|
+
"body": {
|
|
73
|
+
"collapse": "Recolher",
|
|
74
|
+
"item": {
|
|
75
|
+
"done": "Enviado",
|
|
76
|
+
"error": "Falha no envio, por favor, tente novamente",
|
|
77
|
+
"pending": "Preparando para enviar...",
|
|
78
|
+
"processing": "Processando arquivo...",
|
|
79
|
+
"restTime": "Restante {{time}}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"totalCount": "Total de {{count}} itens",
|
|
83
|
+
"uploadStatus": {
|
|
84
|
+
"error": "Erro no envio",
|
|
85
|
+
"pending": "Aguardando envio",
|
|
86
|
+
"processing": "Enviando",
|
|
87
|
+
"success": "Envio concluído",
|
|
88
|
+
"uploading": "Enviando"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addToKnowledgeBase": {
|
|
3
|
+
"addSuccess": "Arquivo adicionado com sucesso, <1>ver agora</1>",
|
|
4
|
+
"confirm": "Adicionar",
|
|
5
|
+
"id": {
|
|
6
|
+
"placeholder": "Selecione o conhecimento a ser adicionado",
|
|
7
|
+
"required": "Selecione o conhecimento",
|
|
8
|
+
"title": "Conhecimento alvo"
|
|
9
|
+
},
|
|
10
|
+
"title": "Adicionar ao conhecimento",
|
|
11
|
+
"totalFiles": "Foram selecionados {{count}} arquivos"
|
|
12
|
+
},
|
|
13
|
+
"createNew": {
|
|
14
|
+
"confirm": "Criar novo",
|
|
15
|
+
"description": {
|
|
16
|
+
"placeholder": "Descrição do conhecimento (opcional)"
|
|
17
|
+
},
|
|
18
|
+
"formTitle": "Informações básicas",
|
|
19
|
+
"name": {
|
|
20
|
+
"placeholder": "Nome do conhecimento",
|
|
21
|
+
"required": "Por favor, preencha o nome do conhecimento"
|
|
22
|
+
},
|
|
23
|
+
"title": "Criar conhecimento"
|
|
24
|
+
},
|
|
25
|
+
"tab": {
|
|
26
|
+
"files": "Documentos",
|
|
27
|
+
"settings": "Configurações",
|
|
28
|
+
"testing": "Teste de recuperação"
|
|
29
|
+
},
|
|
30
|
+
"title": "Conhecimento"
|
|
31
|
+
}
|
package/locales/ru-RU/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
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"autoGenerate": "Автозаполнение",
|
|
14
14
|
"autoGenerateTooltip": "Автоматическое дополнение описания агента на основе подсказок",
|
|
15
15
|
"autoGenerateTooltipDisabled": "Пожалуйста, введите подсказку перед использованием функции автозаполнения",
|
|
16
|
+
"back": "Назад",
|
|
16
17
|
"batchDelete": "Пакетное удаление",
|
|
17
18
|
"blog": "Блог о продуктах",
|
|
18
19
|
"cancel": "Отмена",
|
|
@@ -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/ru-RU/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
|
+
}
|