@lobehub/chat 1.11.9 → 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.
Files changed (354) hide show
  1. package/.github/workflows/release.yml +2 -1
  2. package/.github/workflows/test.yml +2 -1
  3. package/CHANGELOG.md +25 -0
  4. package/Dockerfile.database +2 -0
  5. package/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx +65 -0
  6. package/locales/ar/chat.json +13 -3
  7. package/locales/ar/components.json +2 -0
  8. package/locales/bg-BG/chat.json +13 -3
  9. package/locales/bg-BG/components.json +2 -0
  10. package/locales/de-DE/chat.json +13 -3
  11. package/locales/de-DE/components.json +2 -0
  12. package/locales/en-US/chat.json +13 -3
  13. package/locales/en-US/components.json +2 -0
  14. package/locales/es-ES/chat.json +13 -3
  15. package/locales/es-ES/components.json +2 -0
  16. package/locales/fr-FR/chat.json +13 -3
  17. package/locales/fr-FR/components.json +2 -0
  18. package/locales/it-IT/chat.json +13 -3
  19. package/locales/it-IT/components.json +2 -0
  20. package/locales/ja-JP/chat.json +13 -3
  21. package/locales/ja-JP/components.json +2 -0
  22. package/locales/ko-KR/chat.json +13 -3
  23. package/locales/ko-KR/components.json +2 -0
  24. package/locales/nl-NL/chat.json +13 -3
  25. package/locales/nl-NL/components.json +2 -0
  26. package/locales/pl-PL/chat.json +13 -3
  27. package/locales/pl-PL/components.json +2 -0
  28. package/locales/pt-BR/chat.json +13 -3
  29. package/locales/pt-BR/components.json +2 -0
  30. package/locales/ru-RU/chat.json +13 -3
  31. package/locales/ru-RU/components.json +2 -0
  32. package/locales/tr-TR/chat.json +13 -3
  33. package/locales/tr-TR/components.json +2 -0
  34. package/locales/vi-VN/chat.json +13 -3
  35. package/locales/vi-VN/components.json +2 -0
  36. package/locales/zh-CN/chat.json +13 -3
  37. package/locales/zh-CN/components.json +2 -0
  38. package/locales/zh-TW/chat.json +13 -3
  39. package/locales/zh-TW/components.json +2 -0
  40. package/package.json +3 -2
  41. package/scripts/migrateServerDB/docker.cjs +6 -0
  42. package/scripts/migrateServerDB/errorHint.js +17 -0
  43. package/scripts/migrateServerDB/index.ts +6 -0
  44. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileItem/Content.tsx +37 -0
  45. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileItem/index.tsx +87 -0
  46. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileItem/style.ts +4 -0
  47. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileItem/utils.ts +28 -0
  48. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/FileList.tsx +41 -0
  49. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/FilePreview/index.tsx +40 -0
  50. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/SendMore.tsx +1 -1
  51. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/index.tsx +7 -22
  52. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/TextArea.tsx +1 -1
  53. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/index.tsx +2 -4
  54. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/FileItem/File.tsx +72 -0
  55. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/FileItem/Image.tsx +74 -0
  56. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/FileItem/index.tsx +39 -0
  57. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/FileItem/style.ts +1 -0
  58. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/index.tsx +33 -0
  59. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/InputArea/Container.tsx +41 -0
  60. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/InputArea/index.tsx +154 -0
  61. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Send.tsx +34 -0
  62. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/index.tsx +24 -11
  63. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/components/UploadDetail/UploadStatus.tsx +71 -0
  64. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/components/UploadDetail/index.tsx +49 -0
  65. package/src/app/(main)/chat/(workspace)/@portal/FilePreview/index.tsx +26 -0
  66. package/src/app/(main)/chat/(workspace)/@portal/Home/Files/FileList/Item.tsx +53 -0
  67. package/src/app/(main)/chat/(workspace)/@portal/Home/Files/FileList/index.tsx +50 -0
  68. package/src/app/(main)/chat/(workspace)/@portal/Home/Files/index.tsx +21 -0
  69. package/src/app/(main)/chat/(workspace)/@portal/Home/index.tsx +2 -0
  70. package/src/app/(main)/chat/(workspace)/@portal/router.tsx +4 -0
  71. package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/KnowledgeTag.tsx +41 -0
  72. package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags.tsx +7 -2
  73. package/src/app/(main)/chat/(workspace)/_layout/Desktop/HotKeys.tsx +1 -1
  74. package/src/app/(main)/files/(content)/@menu/default.tsx +27 -0
  75. package/src/app/(main)/files/(content)/@menu/features/FileMenu/index.tsx +97 -0
  76. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/EmptyStatus.tsx +53 -0
  77. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/Item/Content.tsx +175 -0
  78. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/Item/index.tsx +69 -0
  79. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/KnowledgeBaseList.tsx +30 -0
  80. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/SkeletonList.tsx +57 -0
  81. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/index.tsx +54 -0
  82. package/src/app/(main)/files/(content)/@modal/(.)[id]/FileDetail.tsx +16 -0
  83. package/src/app/(main)/files/(content)/@modal/(.)[id]/FilePreview.tsx +15 -0
  84. package/src/app/(main)/files/(content)/@modal/(.)[id]/FullscreenModal.tsx +85 -0
  85. package/src/app/(main)/files/(content)/@modal/(.)[id]/page.tsx +19 -0
  86. package/src/app/(main)/files/(content)/@modal/default.tsx +3 -0
  87. package/src/app/(main)/files/(content)/NotSupportClient.tsx +152 -0
  88. package/src/app/(main)/files/(content)/_layout/Desktop/index.tsx +28 -0
  89. package/src/app/(main)/files/(content)/_layout/Mobile.tsx +47 -0
  90. package/src/app/(main)/files/(content)/_layout/type.ts +7 -0
  91. package/src/app/(main)/files/(content)/layout.tsx +18 -0
  92. package/src/app/(main)/files/(content)/page.tsx +14 -0
  93. package/src/app/(main)/files/[id]/Header.tsx +63 -0
  94. package/src/app/(main)/files/[id]/page.tsx +44 -0
  95. package/src/app/(main)/files/features/FileDetail.tsx +93 -0
  96. package/src/app/(main)/files/hooks/useFileCategory.ts +9 -0
  97. package/src/app/(main)/files/layout.tsx +12 -0
  98. package/src/app/(main)/files/loading.tsx +21 -0
  99. package/src/app/(main)/repos/[id]/@menu/Head/index.tsx +33 -0
  100. package/src/app/(main)/repos/[id]/@menu/Menu/index.tsx +56 -0
  101. package/src/app/(main)/repos/[id]/@menu/default.tsx +25 -0
  102. package/src/app/(main)/repos/[id]/_layout/Desktop/index.tsx +25 -0
  103. package/src/app/(main)/repos/[id]/_layout/Mobile.tsx +47 -0
  104. package/src/app/(main)/repos/[id]/_layout/type.ts +6 -0
  105. package/src/app/(main)/repos/[id]/hooks/useKnowledgeItem.ts +7 -0
  106. package/src/app/(main)/repos/[id]/layout.tsx +13 -0
  107. package/src/app/(main)/repos/[id]/page.tsx +18 -0
  108. package/src/app/(main)/repos/layout.tsx +13 -0
  109. package/src/app/(main)/repos/page.tsx +5 -0
  110. package/src/app/trpc/async/[trpc]/route.ts +28 -0
  111. package/src/chains/abstractChunk.ts +19 -0
  112. package/src/chains/answerWithContext.ts +34 -0
  113. package/src/chains/rewriteQuery.ts +22 -0
  114. package/src/components/DragUpload/index.tsx +6 -99
  115. package/src/components/DragUpload/useDragUpload.tsx +146 -0
  116. package/src/components/FeatureList/index.tsx +64 -0
  117. package/src/components/FileParsingStatus/index.tsx +230 -0
  118. package/src/components/ImageItem/index.tsx +10 -2
  119. package/src/components/KnowledgeIcon/index.tsx +28 -0
  120. package/src/config/app.ts +6 -1
  121. package/src/config/featureFlags/schema.ts +1 -1
  122. package/src/const/file.ts +1 -0
  123. package/src/const/url.ts +1 -0
  124. package/src/database/client/models/file.ts +8 -2
  125. package/src/database/server/migrations/0005_pgvector.sql +2 -0
  126. package/src/database/server/migrations/0006_add_knowledge_base.sql +307 -0
  127. package/src/database/server/migrations/meta/0005_snapshot.json +2119 -0
  128. package/src/database/server/migrations/meta/0006_snapshot.json +3006 -0
  129. package/src/database/server/migrations/meta/_journal.json +14 -0
  130. package/src/database/server/models/__tests__/_test_template.ts +155 -0
  131. package/src/database/server/models/__tests__/agent.test.ts +226 -0
  132. package/src/database/server/models/__tests__/asyncTask.test.ts +176 -0
  133. package/src/database/server/models/__tests__/chunk.test.ts +336 -0
  134. package/src/database/server/models/__tests__/file.test.ts +317 -29
  135. package/src/database/server/models/__tests__/fixtures/embedding.ts +568 -0
  136. package/src/database/server/models/__tests__/knowledgeBase.test.ts +132 -0
  137. package/src/database/server/models/__tests__/message.test.ts +7 -4
  138. package/src/database/server/models/_template.ts +10 -1
  139. package/src/database/server/models/agent.ts +165 -0
  140. package/src/database/server/models/asyncTask.ts +96 -0
  141. package/src/database/server/models/chunk.ts +203 -0
  142. package/src/database/server/models/embedding.ts +47 -0
  143. package/src/database/server/models/file.ts +231 -12
  144. package/src/database/server/models/knowledgeBase.ts +94 -0
  145. package/src/database/server/models/message.ts +156 -30
  146. package/src/database/server/models/user.ts +12 -1
  147. package/src/database/server/schemas/lobechat/agent.ts +93 -0
  148. package/src/database/server/schemas/lobechat/discover.ts +1 -1
  149. package/src/database/server/schemas/lobechat/file.ts +118 -1
  150. package/src/database/server/schemas/lobechat/index.ts +5 -1
  151. package/src/database/server/schemas/lobechat/message.ts +169 -0
  152. package/src/database/server/schemas/lobechat/rag.ts +51 -0
  153. package/src/database/server/schemas/lobechat/relations.ts +68 -48
  154. package/src/database/server/schemas/lobechat/session.ts +77 -0
  155. package/src/database/server/schemas/lobechat/topic.ts +32 -0
  156. package/src/database/server/schemas/lobechat/user.ts +40 -25
  157. package/src/database/server/utils/idGenerator.ts +1 -0
  158. package/src/features/ChatInput/ActionBar/Clear.tsx +1 -1
  159. package/src/features/ChatInput/ActionBar/Knowledge/Dropdown.tsx +160 -0
  160. package/src/features/ChatInput/ActionBar/Knowledge/ListItem.tsx +52 -0
  161. package/src/features/ChatInput/ActionBar/Knowledge/index.tsx +54 -0
  162. package/src/features/ChatInput/ActionBar/Tools/index.tsx +1 -1
  163. package/src/features/ChatInput/ActionBar/Upload/ClientMode.tsx +52 -0
  164. package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +104 -0
  165. package/src/features/ChatInput/ActionBar/Upload/index.tsx +8 -0
  166. package/src/features/ChatInput/ActionBar/config.ts +14 -5
  167. package/src/features/ChatInput/useSend.ts +16 -7
  168. package/src/features/Conversation/Messages/Assistant/FileChunks/Item/index.tsx +51 -0
  169. package/src/features/Conversation/Messages/Assistant/FileChunks/Item/style.ts +38 -0
  170. package/src/features/Conversation/Messages/Assistant/FileChunks/index.tsx +76 -0
  171. package/src/features/Conversation/Messages/Assistant/index.tsx +13 -4
  172. package/src/features/Conversation/Messages/Default.tsx +4 -0
  173. package/src/features/Conversation/Messages/User/BelowMessage.tsx +78 -0
  174. package/src/features/Conversation/Messages/User/FileListViewer/Item.tsx +53 -0
  175. package/src/features/Conversation/Messages/User/FileListViewer/index.tsx +21 -0
  176. package/src/{components/FileList/FileListViewer.tsx → features/Conversation/Messages/User/ImageFileListViewer.tsx} +10 -2
  177. package/src/features/Conversation/Messages/{User.tsx → User/index.tsx} +11 -2
  178. package/src/features/Conversation/Messages/index.ts +8 -3
  179. package/src/features/Conversation/components/ChatItem/index.tsx +33 -10
  180. package/src/features/Conversation/components/InboxWelcome/QuestionSuggest.tsx +1 -1
  181. package/src/features/Conversation/types/index.tsx +1 -0
  182. package/src/features/FileManager/ChunkDrawer/ChunkList/ChunkItem.tsx +61 -0
  183. package/src/features/FileManager/ChunkDrawer/ChunkList/index.tsx +42 -0
  184. package/src/features/FileManager/ChunkDrawer/Content.tsx +38 -0
  185. package/src/features/FileManager/ChunkDrawer/Loading/index.tsx +16 -0
  186. package/src/features/FileManager/ChunkDrawer/SimilaritySearchList/Item.tsx +62 -0
  187. package/src/features/FileManager/ChunkDrawer/SimilaritySearchList/index.tsx +31 -0
  188. package/src/features/FileManager/ChunkDrawer/index.tsx +48 -0
  189. package/src/features/FileManager/FileList/EmptyStatus.tsx +153 -0
  190. package/src/features/FileManager/FileList/FileListItem/ChunkTag.tsx +35 -0
  191. package/src/features/FileManager/FileList/FileListItem/DropdownMenu.tsx +150 -0
  192. package/src/features/FileManager/FileList/FileListItem/index.tsx +211 -0
  193. package/src/features/FileManager/FileList/FileSkeleton.tsx +25 -0
  194. package/src/features/FileManager/FileList/ToolBar/Config.tsx +28 -0
  195. package/src/features/FileManager/FileList/ToolBar/MultiSelectActions.tsx +152 -0
  196. package/src/features/FileManager/FileList/ToolBar/index.tsx +114 -0
  197. package/src/features/FileManager/FileList/index.tsx +143 -0
  198. package/src/features/FileManager/FileList/useCheckTaskStatus.ts +27 -0
  199. package/src/features/FileManager/Header/FilesSearchBar.tsx +41 -0
  200. package/src/features/FileManager/Header/UploadFileButton.tsx +79 -0
  201. package/src/features/FileManager/Header/index.tsx +39 -0
  202. package/src/features/FileManager/UploadDock/Item.tsx +124 -0
  203. package/src/features/FileManager/UploadDock/index.tsx +183 -0
  204. package/src/features/FileManager/index.tsx +38 -0
  205. package/src/features/FileSidePanel/index.tsx +79 -0
  206. package/src/features/FileViewer/NotSupport/index.tsx +54 -0
  207. package/src/features/FileViewer/PDFViewer/HighlightLayer.tsx +81 -0
  208. package/src/features/FileViewer/PDFViewer/index.tsx +93 -0
  209. package/src/features/FileViewer/PDFViewer/style.ts +20 -0
  210. package/src/features/FileViewer/PDFViewer/useResizeObserver.ts +33 -0
  211. package/src/features/FileViewer/TXTViewer/index.tsx +41 -0
  212. package/src/features/FileViewer/index.tsx +45 -0
  213. package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +115 -0
  214. package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/index.tsx +43 -0
  215. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/Action.tsx +103 -0
  216. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/EditCustomPlugin.tsx +55 -0
  217. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/PluginTag.tsx +58 -0
  218. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/index.tsx +70 -0
  219. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/List.tsx +49 -0
  220. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Loading.tsx +13 -0
  221. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/index.tsx +39 -0
  222. package/src/features/KnowledgeBaseModal/CreateNew/CreateForm.tsx +73 -0
  223. package/src/features/KnowledgeBaseModal/CreateNew/index.tsx +35 -0
  224. package/src/features/KnowledgeBaseModal/index.ts +3 -0
  225. package/src/libs/langchain/loaders/pdf/index.ts +2 -2
  226. package/src/libs/trpc/async/asyncAuth.ts +24 -0
  227. package/src/libs/trpc/async/index.ts +10 -0
  228. package/src/libs/trpc/async/init.ts +11 -0
  229. package/src/libs/trpc/client/async.ts +14 -0
  230. package/src/libs/trpc/client/index.ts +1 -0
  231. package/src/libs/trpc/client/lambda.ts +9 -0
  232. package/src/libs/trpc/middleware/keyVaults.ts +18 -0
  233. package/src/libs/unstructured/__tests__/index.test.ts +0 -10
  234. package/src/libs/unstructured/index.ts +6 -11
  235. package/src/locales/default/chat.ts +47 -3
  236. package/src/locales/default/common.ts +1 -0
  237. package/src/locales/default/components.ts +2 -0
  238. package/src/locales/default/error.ts +6 -1
  239. package/src/locales/default/file.ts +92 -0
  240. package/src/locales/default/index.ts +4 -0
  241. package/src/locales/default/knowledgeBase.ts +31 -0
  242. package/src/locales/default/portal.ts +1 -0
  243. package/src/middleware.ts +3 -0
  244. package/src/server/asyncContext.ts +40 -0
  245. package/src/server/modules/ContentChunk/index.ts +135 -0
  246. package/src/server/modules/S3/index.ts +30 -5
  247. package/src/server/routers/async/caller.ts +27 -0
  248. package/src/server/routers/async/file.ts +247 -0
  249. package/src/server/routers/async/index.ts +12 -0
  250. package/src/server/routers/lambda/_template.ts +77 -0
  251. package/src/server/routers/lambda/agent.ts +159 -0
  252. package/src/server/routers/lambda/chunk.ts +189 -0
  253. package/src/server/routers/lambda/file.ts +129 -5
  254. package/src/server/routers/lambda/index.ts +6 -0
  255. package/src/server/routers/lambda/knowledgeBase.ts +79 -0
  256. package/src/server/routers/lambda/message.ts +6 -0
  257. package/src/server/routers/lambda/session.ts +0 -25
  258. package/src/server/routers/lambda/user.ts +5 -1
  259. package/src/server/services/chunk/index.ts +74 -0
  260. package/src/server/utils/files.ts +9 -0
  261. package/src/services/__tests__/chat.test.ts +18 -20
  262. package/src/services/__tests__/{upload.test.ts → upload_legacy.test.ts} +1 -1
  263. package/src/services/agent.ts +45 -0
  264. package/src/services/chat.ts +17 -15
  265. package/src/services/file/client.test.ts +1 -50
  266. package/src/services/file/client.ts +12 -25
  267. package/src/services/file/server.ts +25 -3
  268. package/src/services/file/type.ts +7 -4
  269. package/src/services/knowledgeBase.ts +34 -0
  270. package/src/services/message/client.test.ts +1 -1
  271. package/src/services/message/client.ts +29 -3
  272. package/src/services/message/index.ts +0 -2
  273. package/src/services/message/server.ts +9 -3
  274. package/src/services/message/type.ts +1 -13
  275. package/src/services/rag.ts +29 -0
  276. package/src/services/session/server.ts +1 -1
  277. package/src/services/upload.ts +89 -84
  278. package/src/services/upload_legacy.ts +104 -0
  279. package/src/services/user/client.ts +7 -2
  280. package/src/services/user/server.ts +6 -2
  281. package/src/services/user/type.ts +3 -2
  282. package/src/store/agent/slices/chat/action.ts +90 -18
  283. package/src/store/agent/slices/chat/initialState.ts +1 -0
  284. package/src/store/agent/slices/chat/selectors.ts +58 -0
  285. package/src/store/chat/slices/builtinTool/action.test.ts +2 -2
  286. package/src/store/chat/slices/builtinTool/action.ts +2 -2
  287. package/src/store/chat/slices/message/action.test.ts +2 -1
  288. package/src/store/chat/slices/message/action.ts +102 -26
  289. package/src/store/chat/slices/message/actions/rag.ts +148 -0
  290. package/src/store/chat/slices/message/initialState.ts +7 -0
  291. package/src/store/chat/slices/message/reducer.ts +6 -2
  292. package/src/store/chat/slices/message/selectors.ts +38 -3
  293. package/src/store/chat/slices/plugin/action.ts +8 -2
  294. package/src/store/chat/slices/portal/action.ts +8 -0
  295. package/src/store/chat/slices/portal/initialState.ts +3 -0
  296. package/src/store/chat/slices/portal/selectors.ts +8 -2
  297. package/src/store/file/initialState.ts +5 -1
  298. package/src/store/file/reducers/uploadFileList.ts +133 -0
  299. package/src/store/file/selectors.ts +3 -0
  300. package/src/store/file/slices/chat/action.test.ts +90 -90
  301. package/src/store/file/slices/chat/action.ts +164 -109
  302. package/src/store/file/slices/chat/initialState.ts +7 -2
  303. package/src/store/file/slices/chat/selectors.test.ts +84 -61
  304. package/src/store/file/slices/chat/selectors.ts +22 -32
  305. package/src/store/file/slices/chunk/action.ts +36 -0
  306. package/src/store/file/slices/chunk/index.ts +3 -0
  307. package/src/store/file/slices/chunk/initialState.ts +15 -0
  308. package/src/store/file/slices/chunk/selectors.ts +10 -0
  309. package/src/store/file/slices/fileManager/action.ts +187 -0
  310. package/src/store/file/slices/fileManager/index.ts +3 -0
  311. package/src/store/file/slices/fileManager/initialState.ts +18 -0
  312. package/src/store/file/slices/fileManager/selectors.ts +58 -0
  313. package/src/store/file/slices/tts/action.test.ts +1 -1
  314. package/src/store/file/slices/tts/action.ts +2 -2
  315. package/src/store/file/slices/upload/action.ts +164 -0
  316. package/src/store/file/store.ts +12 -1
  317. package/src/store/knowledgeBase/index.ts +2 -0
  318. package/src/store/knowledgeBase/initialState.ts +7 -0
  319. package/src/store/knowledgeBase/selectors.ts +1 -0
  320. package/src/store/knowledgeBase/slices/content/action.ts +27 -0
  321. package/src/store/knowledgeBase/slices/content/index.ts +1 -0
  322. package/src/store/knowledgeBase/slices/crud/action.ts +78 -0
  323. package/src/store/knowledgeBase/slices/crud/index.ts +3 -0
  324. package/src/store/knowledgeBase/slices/crud/initialState.ts +12 -0
  325. package/src/store/knowledgeBase/slices/crud/selectors.ts +7 -0
  326. package/src/store/knowledgeBase/store.ts +30 -0
  327. package/src/store/serverConfig/selectors.test.ts +1 -1
  328. package/src/store/user/slices/preference/selectors.ts +8 -0
  329. package/src/store/user/slices/settings/selectors/systemAgent.ts +2 -0
  330. package/src/tools/dalle/Render/Item/ImageFileItem.tsx +3 -23
  331. package/src/types/agent/index.ts +9 -0
  332. package/src/types/asyncTask.ts +31 -0
  333. package/src/types/chunk/document.ts +9 -0
  334. package/src/types/chunk/index.ts +52 -0
  335. package/src/types/files/index.ts +35 -0
  336. package/src/types/files/list.ts +44 -0
  337. package/src/types/files/upload.ts +91 -0
  338. package/src/types/knowledgeBase/index.ts +45 -0
  339. package/src/types/message/index.ts +54 -5
  340. package/src/types/rag.ts +16 -0
  341. package/src/utils/filter.test.ts +2 -0
  342. package/src/utils/server/auth.ts +23 -0
  343. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/LocalFiles.tsx +0 -46
  344. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files.tsx +0 -19
  345. package/src/components/FileList/EditableFileList.tsx +0 -47
  346. package/src/components/FileList/index.ts +0 -2
  347. package/src/components/FileList/type.tsx +0 -7
  348. package/src/database/server/schemas/lobechat/chat.ts +0 -331
  349. package/src/features/ChatInput/ActionBar/FileUpload.tsx +0 -69
  350. package/src/features/ChatInput/useChatInput.ts +0 -45
  351. package/src/features/FileList/EditableFileList.tsx +0 -31
  352. package/src/features/FileList/FileListPreviewer.tsx +0 -17
  353. package/src/features/FileList/index.tsx +0 -2
  354. package/src/types/files.ts +0 -42
@@ -0,0 +1,568 @@
1
+ /* eslint-disable unicorn/numeric-separators-style */
2
+
3
+ // query: 设计思维的困境是什么 / text-embedding-3-small / 1024d
4
+ export const designThinkingQuery = [
5
+ 0.07259023189544678, -0.034810926765203476, 0.0220064427703619, 0.013883893378078938,
6
+ 0.03181556984782219, -0.02168262004852295, -0.010402800515294075, 0.023085853084921837,
7
+ -0.027201097458600998, -0.011826271191239357, 0.027592383325099945, 0.012426692061126232,
8
+ -0.037779301404953, -0.03235527500510216, 0.027767786756157875, -0.006692333612591028,
9
+ -0.011441731825470924, -0.03759040683507919, 0.012251287698745728, 0.06557407230138779,
10
+ 0.04663045331835747, 0.037752315402030945, 0.02235725149512291, 0.010969489812850952,
11
+ 0.017230059951543808, 0.020495271310210228, 0.03348865360021591, 0.0256089698523283,
12
+ -0.007636816240847111, 0.016609400510787964, 0.03340769559144974, -0.036376070231199265,
13
+ -0.012844962999224663, -0.02768683061003685, 0.0204817783087492, 0.06616774946451187,
14
+ -0.04916706308722496, -0.008122550323605537, 0.038265034556388855, 0.006054807920008898,
15
+ -0.015948262065649033, 0.03305688872933388, 0.03203145042061806, -0.006142509635537863,
16
+ 0.05591336637735367, -0.018781710416078568, -0.0020255777053534985, 0.03286799415946007,
17
+ 0.0018518604338169098, 0.013533085584640503, -0.019159503281116486, 0.05607527866959572,
18
+ 0.06886626780033112, -0.014207716099917889, -0.05650704354047775, -0.019469833001494408,
19
+ -0.048708315938711166, -0.0067328112199902534, -0.02733602374792099, 0.03203145042061806,
20
+ 0.06967582553625107, -0.03011550009250641, 0.013452130369842052, 0.04457957670092583,
21
+ -0.05418631434440613, -0.02680981159210205, -0.013209262862801552, -0.0013745594769716263,
22
+ -0.0443367101252079, -0.02131832018494606, 0.016744326800107956, 0.030358368530869484,
23
+ 0.03300292044878006, 0.01682528294622898, 0.041827086359262466, -0.012919171713292599,
24
+ 0.029090063646435738, -0.037212613970041275, 0.04579390957951546, -0.033812474459409714,
25
+ -0.005656776018440723, -0.0598532073199749, 0.037914227694272995, -0.016029218211770058,
26
+ 0.0069352006539702415, -0.0019800402224063873, -0.03783327341079712, -0.003548555774614215,
27
+ -0.029980575665831566, -0.045119281858205795, -0.019199980422854424, 0.0017742778873071074,
28
+ -0.06573598831892014, -0.002118339529260993, -0.056129250675439835, -0.00451327720656991,
29
+ 0.07512684166431427, 0.05585939809679985, -0.03543158993124962, 0.04104451462626457,
30
+ -0.002125085797160864, -0.04206995293498039, 0.030574249103665352, 0.036888789385557175,
31
+ -0.020900050178170204, -0.02165563590824604, 0.01565142534673214, 0.0005405475967563689,
32
+ -0.06681539118289948, 0.04260965436697006, -0.07307596504688263, -0.03837297856807709,
33
+ -0.07275214046239853, -0.012568363919854164, 0.00972142443060875, -0.05272911116480827,
34
+ -0.007353471126407385, 0.0032517185900360346, 0.054105356335639954, -0.015395065769553185,
35
+ 0.006196480244398117, 0.001359380199573934, -0.029872633516788483, 0.024529561400413513,
36
+ -0.04606376215815544, -0.003359659342095256, 0.04938294366002083, -0.016582414507865906,
37
+ 0.006557407323271036, -0.027713816612958908, 0.033245787024497986, 0.004783129319548607,
38
+ 0.031032998114824295, -0.0070229023694992065, -0.03848091885447502, -0.009033300913870335,
39
+ -0.04501134157180786, 0.060069091618061066, -0.03950635716319084, -0.051649704575538635,
40
+ 0.06341525912284851, -0.003889244282618165, 0.01805310882627964, 0.0054071624763309956,
41
+ 0.02169611304998398, 0.030358368530869484, -0.0036463772412389517, 0.029629766941070557,
42
+ 0.00017213616229128093, 0.0180800948292017, 0.0031336580868810415, -0.07124096900224686,
43
+ 0.010281367227435112, -0.035863351076841354, 0.07091714441776276, -0.08759400993585587,
44
+ 0.00042037907405756414, -0.008493596687912941, -0.007245530374348164, 0.018282484263181686,
45
+ 0.0008862956892699003, -0.006176241207867861, 0.023463645949959755, -0.022748537361621857,
46
+ 0.039803192019462585, 0.04206995293498039, 0.0398571640253067, 0.00962697621434927,
47
+ 0.024097798392176628, -0.03151873126626015, -0.03386644646525383, -0.046360600739717484,
48
+ -0.03686180338263512, 0.019334906712174416, 0.0880257710814476, 0.016757819801568985,
49
+ 0.0211294237524271, -0.023342212662100792, 0.024664487689733505, -0.0069217076525092125,
50
+ -0.02547404356300831, 0.02064369060099125, -0.027363009750843048, 0.024381142109632492,
51
+ -0.02063019759953022, -0.017472926527261734, 0.020832587033510208, -0.04619868844747543,
52
+ -0.005248624365776777, 0.01945634000003338, -0.044255755841732025, 0.02749793417751789,
53
+ 0.07307596504688263, 0.010814324952661991, 0.030358368530869484, -0.05531969293951988,
54
+ 0.052513230592012405, 0.02046828716993332, -0.008689239621162415, 0.0038588859606534243,
55
+ 0.001644411589950323, -0.013964849524199963, 0.026607422158122063, -0.02026589773595333,
56
+ -0.0034068834502249956, 0.0443367101252079, 0.04468751698732376, 0.016069695353507996,
57
+ 0.0038352739065885544, -0.016056204214692116, 0.027133634313941002, -0.013350935652852058,
58
+ 0.05035441368818283, 0.03939841687679291, 0.052891023457050323, 0.017742779105901718,
59
+ 0.028334476053714752, 0.009674199856817722, -0.016056204214692116, 0.05432124063372612,
60
+ -0.011826271191239357, -0.0049956380389630795, 0.027120141312479973, 0.022829493507742882,
61
+ -0.014720435254275799, 0.08376210927963257, 0.01170483697205782, -0.006243704352527857,
62
+ -0.004516650456935167, -0.03213939070701599, 0.059043653309345245, -0.05866586044430733,
63
+ -0.02871226891875267, -0.009680946357548237, -0.006634989753365517, 0.015057750046253204,
64
+ 0.0013315516989678144, -0.016987193375825882, 0.0058119408786296844, -0.02542007341980934,
65
+ 0.02732253074645996, -0.01392437145113945, -0.010139694437384605, -0.012231049127876759,
66
+ -0.050975073128938675, 0.021183393895626068, -0.024178752675652504, 0.05105602741241455,
67
+ -0.051325879991054535, -0.02231677435338497, 0.052864037454128265, 0.0643327534198761,
68
+ 0.044282738119363785, 0.02683679759502411, -0.04584788158535957, 0.019388876855373383,
69
+ 0.047008246183395386, -0.026081211864948273, 0.06546613574028015, -0.042366787791252136,
70
+ 0.024543054401874542, -0.013539832085371017, 0.022465191781520844, -0.03011550009250641,
71
+ 0.03151873126626015, -0.00009813764336286113, -0.02372000552713871, 0.01299338135868311,
72
+ -0.054402194917201996, -0.04765589162707329, -0.014059297740459442, -0.01348586194217205,
73
+ 0.00313534471206367, 0.052351318299770355, 0.03543158993124962, -0.047035232186317444,
74
+ 0.00955276656895876, 0.03392041474580765, -0.03203145042061806, 0.04457957670092583,
75
+ -0.022262802347540855, 0.0016427249647676945, 0.031086968258023262, -0.016595907509326935,
76
+ -0.026512974873185158, 0.03508077934384346, -0.005137310363352299, 0.01787770539522171,
77
+ -0.01443709060549736, 0.021965965628623962, 0.04528119042515755, -0.006631616968661547,
78
+ 0.0059333741664886475, 0.03572842478752136, 0.023436659947037697, -0.053052935749292374,
79
+ 0.005056354682892561, -0.019658729434013367, 0.019874611869454384, 0.040990542620420456,
80
+ 0.08791783452033997, 0.01616414450109005, 0.025501029565930367, 0.03419026732444763,
81
+ -0.0010153187904506922, -0.02903609164059162, 0.009748409502208233, 0.01856582798063755,
82
+ 0.0608246773481369, 0.0043648588471114635, -0.016380026936531067, -0.0678408294916153,
83
+ 0.025581983849406242, 0.03270608186721802, -0.03788724169135094, 0.014599001966416836,
84
+ 0.003432182129472494, -0.034298207610845566, 0.00575459748506546, 0.0020458167418837547,
85
+ -0.009606736712157726, 0.0012455363757908344, 0.01563793234527111, 0.0010153187904506922,
86
+ 0.008669001050293446, 0.022640595212578773, -0.0030358368530869484, 0.059583358466625214,
87
+ 0.021372290328145027, -0.026769334450364113, 0.010011514648795128, -0.011644120328128338,
88
+ 0.00485396571457386, 0.007886429317295551, 0.01219731755554676, -0.06168820336461067,
89
+ -0.04279855266213417, 0.04797971248626709, 0.06821862608194351, -0.03696974739432335,
90
+ -0.04644155502319336, 0.009438078850507736, -0.05650704354047775, -0.010854803025722504,
91
+ -0.011327044107019901, -0.023612063378095627, 0.029629766941070557, 0.008534074760973454,
92
+ 0.07917462289333344, 0.01067265309393406, 0.007441173307597637, 0.027470950037240982,
93
+ 0.0044188289903104305, 0.009161480702459812, 0.012312004342675209, 0.028982121497392654,
94
+ -0.0069217076525092125, -0.004489665385335684, -0.022141369059681892, -0.021885009482502937,
95
+ 0.003260151483118534, -0.007812220137566328, -0.006631616968661547, 0.04104451462626457,
96
+ -0.020063508301973343, 0.0556974858045578, -0.04463354870676994, -0.00893210619688034,
97
+ -0.006429227534681559, -0.040828630328178406, 0.010423040017485619, 0.003266897751018405,
98
+ -0.004746024962514639, -0.05197352543473244, -0.023261256515979767, -0.01100322138518095,
99
+ 0.0098023796454072, 0.005730985198169947, -0.03702371567487717, 0.06001511961221695,
100
+ -0.003976946230977774, -0.019537296146154404, -0.05229735001921654, -0.03141079097986221,
101
+ -0.004698800854384899, 0.028604328632354736, 0.034109313040971756, -0.026081211864948273,
102
+ -0.05661498382687569, -0.042906492948532104, 0.061472322791814804, -0.009606736712157726,
103
+ 0.021439753472805023, -0.0017388598062098026, 0.0182420052587986, -0.01221755612641573,
104
+ 0.04142230749130249, 0.03178858384490013, 0.007926907390356064, -0.006489944644272327,
105
+ 0.02819954976439476, -0.001593814347870648, -0.062497761100530624, -0.017850719392299652,
106
+ 0.04986868053674698, 0.013796191662549973, 0.04487641528248787, 0.020927034318447113,
107
+ -0.022748537361621857, -0.04695427417755127, 0.019550789147615433, -0.01790469139814377,
108
+ 0.008992822840809822, 0.03788724169135094, 0.0012674618046730757, -0.05326881632208824,
109
+ 0.016933223232626915, 0.02680981159210205, 0.03710467368364334, 0.05764042213559151,
110
+ -0.018835680559277534, 0.014747420325875282, -0.03818408027291298, -0.02494783140718937,
111
+ 0.00009518612932879478, 0.029305944219231606, 0.03114093840122223, -0.025676432996988297,
112
+ 0.09898177534341812, -0.061796143651008606, -0.0014529852196574211, 0.023342212662100792,
113
+ -0.009977784007787704, 0.001689949189312756, -0.015853814780712128, 0.02714712731540203,
114
+ -0.02925197407603264, -0.026013748720288277, 0.012568363919854164, -0.023274749517440796,
115
+ -0.03340769559144974, -0.007474904879927635, -0.012190571054816246, -0.02166912890970707,
116
+ -0.023166807368397713, 0.04749397933483124, -0.010787339881062508, -0.00014515094517264515,
117
+ -0.01546252891421318, -0.06104055792093277, 0.02077861689031124, -0.042042966932058334,
118
+ 0.03302990272641182, -0.010335337370634079, -0.027241574600338936, -0.03027741238474846,
119
+ 0.0007648622267879546, -0.008648761548101902, 0.008284461684525013, 0.011833016760647297,
120
+ 0.01142149232327938, -0.007238784339278936, -0.03589033707976341, -0.009869842790067196,
121
+ 0.07307596504688263, 0.02494783140718937, 0.0316806435585022, 0.01358031015843153,
122
+ -0.03675386309623718, 0.05486094206571579, -0.027295546606183052, 0.02457003854215145,
123
+ 0.01802612468600273, -0.03060123510658741, -0.02733602374792099, 0.02115640975534916,
124
+ -0.0005515103694051504, -0.0032011212315410376, -0.043419212102890015, 0.017257045954465866,
125
+ -0.020927034318447113, 0.023477137088775635, 0.015948262065649033, -0.0068002743646502495,
126
+ -0.03076314553618431, 0.1360054910182953, -0.06805671751499176, -0.029953589662909508,
127
+ -0.012244542129337788, 0.01928093656897545, -0.018444394692778587, -0.019172996282577515,
128
+ -0.03958731144666672, -0.012035406194627285, -0.014936316758394241, -0.033461667597293854,
129
+ 0.00460435263812542, 0.0009461691370233893, -0.007117350585758686, 0.0031437776051461697,
130
+ 0.005781582556664944, 0.03678084909915924, -0.06373907625675201, 0.023247763514518738,
131
+ 0.020495271310210228, -0.027565397322177887, 0.04061274975538254, -0.004155723378062248,
132
+ 0.04142230749130249, 0.011738568544387817, 0.05059728026390076, 0.019172996282577515,
133
+ 0.03956032544374466, 0.07156479358673096, 0.027120141312479973, 0.02734951674938202,
134
+ 0.021426262333989143, -0.004152350127696991, 0.0028823583852499723, 0.01142149232327938,
135
+ 0.033083874732255936, -0.03219336271286011, -0.009249182417988777, 0.004479545634239912,
136
+ -0.05469903349876404, 0.01596175506711006, -0.048195596784353256, 0.016460981220006943,
137
+ -0.04973375424742699, 0.016433997079730034, 0.02925197407603264, -0.01859281398355961,
138
+ 0.0075491140596568584, 0.03270608186721802, -0.019199980422854424, -0.02873925492167473,
139
+ 0.00197666697204113, -0.036726877093315125, -0.007663801312446594, -0.0034743465948849916,
140
+ 0.05445616692304611, 0.0020458167418837547, -0.004095006734132767, -0.0043850974179804325,
141
+ -0.03238225728273392, 0.027430471032857895, -0.050975073128938675, 0.020400824025273323,
142
+ 0.03195049613714218, 0.023787468671798706, 0.00926942192018032, -0.008642015047371387,
143
+ 0.039614297449588776, -0.0800381526350975, 0.025312133133411407, -0.015408557839691639,
144
+ -0.012332243844866753, 0.0016047770623117685, -0.004442441277205944, 0.005953613203018904,
145
+ -0.005552208051085472, -0.02231677435338497, -0.00031939533073455095, 0.006769916042685509,
146
+ -0.00597385223954916, 0.013141799718141556, -0.005380177404731512, 0.003535063238814473,
147
+ 0.017607852816581726, -0.00009486990165896714, -0.04619868844747543, 0.033110860735177994,
148
+ -0.015867307782173157, 0.0016174264019355178, 0.0069891707971692085, 0.014248194172978401,
149
+ 0.05213543772697449, 0.00790666788816452, -0.0242462158203125, -0.033299755305051804,
150
+ -0.001931129489094019, -0.0446605309844017, -0.03966826573014259, -0.012163585983216763,
151
+ -0.07658404111862183, 0.010207157582044601, 0.000887982256244868, -0.035161737352609634,
152
+ 0.019469833001494408, 0.0015440603019669652, -0.014990287832915783, 0.02906307764351368,
153
+ 0.0018754724878817797, 0.021399276331067085, 0.010348830372095108, -0.030655205249786377,
154
+ 0.016069695353507996, 0.022789014503359795, 0.016393518075346947, -0.01906505413353443,
155
+ 0.02284298464655876, -0.021628649905323982, -0.004651576746255159, -0.030736161395907402,
156
+ -0.01979365572333336, -0.045982807874679565, -0.011070684529840946, 0.03467600420117378,
157
+ 0.014072789810597897, -0.022073905915021896, 0.01910553313791752, 0.013357682153582573,
158
+ -0.0013146860292181373, -0.10524234175682068, 0.0005257900920696557, -0.017230059951543808,
159
+ -0.04379700496792793, 0.00044525606790557504, 0.0158403217792511, 0.009053539484739304,
160
+ -0.002941388636827469, 0.01099647581577301, 0.02871226891875267, -0.07782536000013351,
161
+ 0.03262512758374214, -0.0004899503546766937, -0.017661822959780693, -0.031383804976940155,
162
+ -0.028631314635276794, -0.0187277402728796, -0.03524269163608551, 0.00808881875127554,
163
+ 0.02992660365998745, -0.040693704038858414, -0.010989729315042496, 0.023436659947037697,
164
+ 0.005383550655096769, -0.031167924404144287, 0.011178625747561455, -0.009451571851968765,
165
+ 0.07145684957504272, 0.015422050841152668, -0.025716910138726234, -0.06708524376153946,
166
+ 0.010618682019412518, -0.04549707472324371, -0.006894722580909729, 0.018120571970939636,
167
+ -0.010875041596591473, 0.0022954298183321953, -0.015395065769553185, -0.012271527200937271,
168
+ -0.01056471187621355, -0.0020711154211312532, 0.027983669191598892, 0.04036988317966461,
169
+ -0.038238052278757095, -0.013087829574942589, -0.03607923537492752, 0.021075453609228134,
170
+ 0.029278960078954697, -0.032760053873062134, -0.009944052435457706, 0.04779081791639328,
171
+ 0.03521570563316345, 0.018525350838899612, 0.0021115930285304785, -0.025312133133411407,
172
+ -0.016393518075346947, -0.0041253650560975075, -0.0035215707030147314, 0.048033684492111206,
173
+ 0.004101752769201994, 0.039101578295230865, 0.013391413725912571, 0.0017675316194072366,
174
+ 0.01876821741461754, 0.001636822009459138, 0.033083874732255936, -0.02474544383585453,
175
+ 0.03238225728273392, -0.014747420325875282, -0.013438637368381023, -0.0077380104921758175,
176
+ 0.032571155577898026, -0.01686576008796692, 0.016933223232626915, -0.045820895582437515,
177
+ 0.0007408285164274275, 0.02873925492167473, 0.0008795493631623685, 0.008743209764361382,
178
+ 0.01521966140717268, 0.005562327802181244, 0.02868528477847576, -0.023301733657717705,
179
+ 0.021763576194643974, 0.06838053464889526, 0.027228083461523056, 0.10524234175682068,
180
+ -0.015570469200611115, -0.019146010279655457, -0.020940527319908142, 0.0340823270380497,
181
+ -0.019631745293736458, -0.08446372300386429, -0.022816000506281853, 0.02338268980383873,
182
+ 0.0605008527636528, 0.039101578295230865, -0.055130794644355774, -0.034298207610845566,
183
+ 0.026607422158122063, 0.019388876855373383, -0.003582287346944213, 0.012048899196088314,
184
+ 0.04250171408057213, 0.02699870802462101, 0.037914227694272995, 0.01494980975985527,
185
+ -0.03475695848464966, -0.0556974858045578, -0.06352319568395615, 0.00004374556374386884,
186
+ -0.016946716234087944, -0.027632860466837883, 0.0021031603682786226, -0.021196886897087097,
187
+ 0.03902062401175499, -0.0017371732974424958, -0.023585079237818718, 0.02941388450562954,
188
+ 0.013897386379539967, 0.025136727839708328, -0.006874483544379473, 0.00875670276582241,
189
+ -0.007974131032824516, 0.030331382527947426, -0.001931129489094019, -0.03141079097986221,
190
+ -0.0256089698523283, 0.000492901832330972, 0.009181719273328781, 0.04555104300379753,
191
+ -0.007016156334429979, 0.032220348715782166, -0.012338990345597267, 0.02699870802462101,
192
+ -0.006860991008579731, 0.017297523096203804, 0.006807020865380764, 0.00921545084565878,
193
+ -0.013843415305018425, -0.03162667155265808, -0.019348399713635445, -0.027578890323638916,
194
+ -0.004084886983036995, 0.04142230749130249, 0.03332674130797386, 0.013634280301630497,
195
+ 0.013742221519351006, 0.02701220102608204, -0.05259418487548828, -0.009579751640558243,
196
+ -0.0009841170394793153, -0.0038082886021584272, -0.029144033789634705, -0.01005199272185564,
197
+ -0.013114814646542072, -0.02443511225283146, 0.00987658929079771, -0.013087829574942589,
198
+ 0.030817115679383278, 0.00022684446594212204, -0.01254137884825468, 0.010800832882523537,
199
+ 0.01409977488219738, -0.049436915665864944, -0.05038139969110489, 0.0067328112199902534,
200
+ 0.029791679233312607, 0.008561059832572937, -0.04762890562415123, 0.05105602741241455,
201
+ -0.03526967763900757, -0.03605224937200546, 0.030844101682305336, -0.012231049127876759,
202
+ -0.019213473424315453, -0.012939411215484142, -0.014572016894817352, -0.021952472627162933,
203
+ 0.012278272770345211, -0.03383946046233177, -0.020225418731570244, 0.007380456663668156,
204
+ 0.0026698498986661434, -0.0595293864607811, 0.03969525173306465, -0.03332674130797386,
205
+ 0.03769834712147713, 0.02183103933930397, -0.012514393776655197, -0.006179614458233118,
206
+ 0.001438649371266365, 0.032571155577898026, 0.04690030589699745, -0.008837657980620861,
207
+ 0.026742348447442055, 0.007144336123019457, 0.035485558211803436, 0.06838053464889526,
208
+ 0.004270410630851984, -0.00020491897885221988, -0.009694438427686691, -0.05882776901125908,
209
+ 0.011273073963820934, -0.04846544936299324, -0.01704116351902485, 0.008689239621162415,
210
+ 0.06330731511116028, -0.014760913327336311, 0.009478556923568249, -0.027875728905200958,
211
+ 0.027551906183362007, -0.018471380695700645, -0.018282484263181686, -0.011205610819160938,
212
+ -0.08057785779237747, -0.004938294645398855, 0.015327602624893188, -0.04457957670092583,
213
+ -0.007124097086489201, -0.007029648870229721, -0.02714712731540203, 0.040288928896188736,
214
+ -0.010382561944425106, -0.045308176428079605, 0.021871518343687057, 0.047359053045511246,
215
+ -0.003164016641676426, -0.00962697621434927, -0.04328428581357002, 0.0038690052460879087,
216
+ 0.013209262862801552, 0.0015904412139207125, 0.013114814646542072, -0.07334581762552261,
217
+ -0.015422050841152668, -0.005083340220153332, -0.07895874232053757, 0.022977910935878754,
218
+ 0.021088946610689163, 0.020077001303434372, -0.010780593380331993, -0.009154734201729298,
219
+ 0.034460119903087616, -0.01419422309845686, 0.00683063268661499, -0.0006607161485590041,
220
+ 0.02598676271736622, 0.00026647900813259184, 0.02149372361600399, 0.0013897386379539967,
221
+ 0.0007720301509834826, -0.021547695621848106, 0.008453118614852428, 0.02354460023343563,
222
+ -0.018471380695700645, 0.0006156002636998892, 0.040693704038858414, 0.03815709426999092,
223
+ -0.03702371567487717, -0.0025214310735464096, 0.025541506707668304, 0.009782141074538231,
224
+ -0.02185802534222603, 0.042393773794174194, 0.033461667597293854, -0.017675315961241722,
225
+ 0.01619112864136696, -0.05162271857261658, 0.015503006987273693, 0.01685226708650589,
226
+ 0.039992090314626694, 0.00023443406098522246, 0.008763449266552925, 0.001134222373366356,
227
+ -0.007184813730418682, -0.026175659149885178, 0.01894362084567547, -0.02906307764351368,
228
+ 0.01924045942723751, 0.005039488896727562, 0.026229629293084145, 0.01754038967192173,
229
+ 0.04158421605825424, -0.01617763750255108, 0.04781780391931534, 0.007987624034285545,
230
+ -0.025055773556232452, -0.023625556379556656, 0.001093744533136487, 0.027632860466837883,
231
+ -0.035485558211803436, 0.01925395242869854, -0.0035384364891797304, -0.026526467874646187,
232
+ -0.016973700374364853, -0.0031791958026587963, 0.03157270327210426, -0.029953589662909508,
233
+ 0.03969525173306465, -0.014760913327336311, 0.019307922571897507, -0.009438078850507736,
234
+ -0.055967338383197784, -0.002273504389449954, -0.000270484626526013, -0.031006013974547386,
235
+ -0.0256089698523283, -0.042042966932058334, 0.03783327341079712, 0.014045804738998413,
236
+ 0.0037273329216986895, 0.035485558211803436, -0.022438207641243935, -0.015098228119313717,
237
+ 0.045820895582437515, -0.015111721120774746, 0.05402440205216408, -0.024988310411572456,
238
+ 0.013499354012310505, -0.02765984646975994, 0.06730113178491592, 0.020940527319908142,
239
+ 0.04250171408057213, -0.012055644765496254, 0.021412769332528114, 0.009836111217737198,
240
+ -0.055643513798713684, -0.002057622652500868, -0.009599990211427212, 0.026539959013462067,
241
+ 0.009856349788606167, -0.0032972560729831457, 0.02301838994026184, 0.06854245066642761,
242
+ -0.0151252131909132, -0.005144056864082813, 0.00919521227478981, 0.006570899859070778,
243
+ 0.053241830319166183, 0.014639480039477348, -0.01837693154811859, -0.02046828716993332,
244
+ 0.000015574474673485383, -0.026715364307165146, 0.008284461684525013, 0.022262802347540855,
245
+ 0.016069695353507996, -0.03321880102157593, -0.01751340553164482, -0.05607527866959572,
246
+ 0.002290370175614953, -0.012109615840017796, -0.00997103750705719, -0.02165563590824604,
247
+ -0.014882346615195274, -0.07474904507398605, 0.003379898378625512, 0.04471450299024582,
248
+ 0.02461051754653454, -0.03340769559144974, 0.03435217961668968, -0.009937305934727192,
249
+ 0.023112837225198746, 0.012001674622297287, 0.01461249403655529, -0.053889475762844086,
250
+ 0.015152198262512684, 0.027875728905200958, -0.022789014503359795, -0.017931675538420677,
251
+ -0.02284298464655876, 0.002872238866984844, -0.007339978590607643, 0.013357682153582573,
252
+ 0.005744477733969688, 0.015192676335573196, 0.013553325086832047, -0.0021554441191256046,
253
+ -0.0182420052587986, -0.017081642523407936, 0.026728855445981026, -0.00451327720656991,
254
+ -0.024111289530992508, -0.04206995293498039, 0.04501134157180786, -0.02819954976439476,
255
+ -0.07253625988960266, -0.010119455866515636, 0.03626812994480133, 0.033245787024497986,
256
+ -0.009842857718467712, -0.023666033521294594, -0.024866877123713493, -0.03902062401175499,
257
+ 0.039830178022384644, 0.030871087685227394, 0.04198899492621422, -0.041503261774778366,
258
+ 0.07917462289333344, 0.035512544214725494, 0.001792830298654735, 0.07215847074985504,
259
+ -0.01891663670539856, 0.009411093778908253, -0.029683737084269524, 0.008972584269940853,
260
+ -0.016002232208848, 0.0038858710322529078, -0.03556651622056961, 0.02233026549220085,
261
+ ];
262
+
263
+ // query: What is design thinking? / text-embedding-3-small / 1024d
264
+ export const designThinkingQuery2 = [
265
+ 0.046730567, 0.0026507701, 0.016324067, 0.017052943, 0.0147838015, -0.021164903, -0.015622697,
266
+ 0.051461384, -0.023227759, -0.018840753, 0.003940055, 0.026280787, -0.014082431, -0.05869513,
267
+ 0.04188973, 0.03174048, 0.003754398, -0.07096225, -0.0027264082, 0.02380536, 0.036333773,
268
+ 0.047583215, 0.0025407511, 0.050966296, 0.040211942, 0.00052216044, 0.04018444, 0.0666165,
269
+ -0.024066655, 0.016571611, 0.017231725, -0.04304493, -0.03135541, -0.04640051, 0.051296353,
270
+ 0.020436028, -0.043595023, 0.022760179, 0.03545362, 0.046428014, -0.06106054, -0.00017405348,
271
+ 0.021343684, 0.041202113, 0.025758196, -0.031410422, 0.020147229, 0.021096142, -0.007976376,
272
+ 0.020958617, -0.00063217944, 0.00086897815, 0.05451441, -0.014206202, -0.03688387, -0.023791607,
273
+ -0.0059375875, 0.012377136, -0.03058528, 0.06634145, 0.025331873, -0.02526311, 0.014384983,
274
+ 0.020724827, 0.0010159566, 0.024602996, -0.040129427, 0.0060201017, -0.017699305, -0.016406583,
275
+ 0.05484447, 0.03944181, -0.03564615, 0.012294622, 0.03567366, -0.020133475, -0.022856446,
276
+ 0.0005840461, 0.05462443, -0.011001899, 0.03575617, -0.021041133, 0.016750392, -0.008100148,
277
+ -0.024520483, 0.0015600349, -0.011517613, -0.0051640165, -0.051488888, -0.04164219, -0.02733972,
278
+ -0.03295069, -0.00028084926, 0.018125629, -0.08135904, 0.03905674, 0.028659947, 0.069972076,
279
+ 0.022003798, 0.030365242, 0.037296437, 0.0012927231, 0.0020714514, 0.04414512, -0.012714069,
280
+ 0.005549083, -0.011943936, 0.023557816, -0.03094284, 0.016420335, -0.088125214, -0.03383084,
281
+ -0.000881871, 0.017465515, -0.046565536, -0.025579415, 0.005480321, -0.05242405, 0.011668889,
282
+ -0.027559757, 0.015210126, -0.049205992, -0.008925291, 0.075087965, -0.07195242, -0.018345667,
283
+ -0.0056762923, -0.028769966, -0.0012789707, 0.0101355, -0.017988104, 0.014756297, 0.017520525,
284
+ -0.036251258, 0.007866357, -0.04373255, -0.044695213, 0.031878002, -0.07519798, -0.06639646,
285
+ 0.0269409, 0.0109331375, 0.000091592956, 0.017025439, 0.045355327, -0.04431015, 0.0023327465,
286
+ 0.060455434, 0.037791524, 0.02467176, -0.010589328, -0.023227759, -0.011668889, 0.016984181,
287
+ 0.06656149, -0.0364988, 0.027037168, 0.022223836, 0.036003716, -0.027986081, 0.007687577,
288
+ 0.004672369, -0.033500783, -0.019514618, -0.0013468731, 0.0010271304, 0.030557774, -0.019830924,
289
+ -0.0048408355, -0.00091195427, -0.050361194, 0.020958617, -0.00788011, 0.04934352, 0.088840336,
290
+ 0.021976294, -0.040404476, 0.010039233, -0.040486988, 0.0053256066, -0.04860089, 0.00008391097,
291
+ -0.10506814, -0.015320145, 0.0016227801, 0.012927231, -0.027669776, -0.071622364, -0.009255348,
292
+ 0.008003881, -0.055422068, -0.0035756172, 0.039936893, -0.073272645, 0.009606034, 0.0151138585,
293
+ 0.046097957, 0.037791524, 0.040514495, -0.053771783, -0.0096197855, -0.046840586, -0.004166969,
294
+ -0.0075569293, -0.0098398235, 0.08972049, 0.021068636, -0.029127527, -0.028824976, -0.03869918,
295
+ -0.003754398, 0.009296604, -0.008127653, 0.016310316, 0.021013627, 0.017548028, 0.009482262,
296
+ -0.026913395, -0.039249275, 0.035068553, -0.032290574, 0.015155116, -0.020587305, 0.023860369,
297
+ -0.017561782, 0.00087800313, 0.012040203, -0.008877157, -0.017341744, -0.06634145, -0.006295149,
298
+ -0.08636491, 0.009234719, -0.030447755, -0.010850623, -0.005002426, 0.008787767, -0.010878128,
299
+ 0.04106459, -0.031300403, 0.0010365852, -0.052589078, -0.016846659, 0.002392913, -0.040872056,
300
+ 0.014632526, -0.039936893, -0.009447881, -0.012480279, 0.0154439155, -0.021646237, -0.04466771,
301
+ 0.007941996, -0.028412404, 0.040349465, -0.004668931, -0.008285806, 0.015127611, 0.02016098,
302
+ -0.0063467207, -0.034518458, -0.050718755, 0.030612784, 0.022746427, -0.039771866, 0.030722803,
303
+ 0.016255306, -0.030722803, -0.033115715, -0.009110948, 0.008402701, -0.017424257, -0.010018605,
304
+ 0.057319894, -0.01906079, -0.06287585, 0.006367349, 0.05875014, -0.026212025, -0.07624316,
305
+ 0.019569628, -0.048628394, 0.010678718, -0.00669053, -0.04004691, 0.04931601, 0.010575576,
306
+ 0.021797512, -0.05481696, -0.027298462, 0.0022089751, 0.012865346, -0.014206202, -0.0047686356,
307
+ -0.037819028, 0.016516602, 0.01610403, -0.0011680922, -0.004514217, -0.0039847502, 0.04136714,
308
+ -0.026913395, -0.0012463089, -0.02293896, 0.0036959504, -0.024231683, -0.02357157, -0.018813247,
309
+ 0.09379119, -0.0051399497, 0.001233416, -0.034986038, 0.051076315, -0.0457679, -0.017864333,
310
+ 0.03770901, -0.002282894, 0.0683768, -0.053909305, -0.061940692, -0.067386635, 0.010403671,
311
+ 0.01963839, 0.0014861159, 0.009083443, 0.0023843178, 0.01036929, 0.032648135, 0.012157098,
312
+ -0.036113735, 0.028990004, -0.03454596, 0.001765461, 0.016901668, -0.0027074986, -0.029402575,
313
+ -0.049838603, -0.035948705, 0.022856446, -0.039524324, -0.031245394, -0.036361277, -0.025923224,
314
+ -0.026253281, 0.05770496, 0.035151068, -0.076023124, -0.05764995, 0.025936978, 0.0058928924,
315
+ 0.016351573, 0.0063054636, -0.0005531033, -0.022237588, -0.0252081, 0.06078549, -0.034766,
316
+ -0.034710992, -0.04100958, -0.047885764, -0.004524531, -0.005421873, 0.014742545, 0.033885848,
317
+ -0.011861422, 0.03152044, -0.004648302, 0.02577195, -0.04015693, -0.05374428, -0.0006704282,
318
+ -0.007164987, -0.024630502, 0.043127444, -0.002172875, -0.034490954, 0.02733972, 0.017383,
319
+ -0.0002748326, 0.053331707, 0.040927064, 0.067221604, -0.007405653, -0.050993804, -0.0077425865,
320
+ 0.055284545, 0.069972076, -0.03894672, -0.012720946, -0.05168142, 0.026225777, -0.021536218,
321
+ 0.04188973, 0.0036409409, 0.007983253, 0.032125544, -0.003240403, 0.004252922, 0.019954694,
322
+ 0.007316263, -0.005146826, -0.029182537, -0.016599115, 0.0199822, -0.0006450723, -0.000266882,
323
+ 0.006958701, 0.009447881, 0.0058997683, -0.01193706, 0.043760054, -0.060565453, 0.009743557,
324
+ 0.0666165, -0.004675807, -0.029925166, 0.037296437, 0.036223754, 0.050966296, 0.06018039,
325
+ -0.030557774, 0.0411471, 0.008505844, -0.010740604, 0.042412322, 0.061610635, 0.041972246,
326
+ 0.012397765, 0.05352424, -0.03933179, -0.014398735, 0.024382958, 0.076903276, -0.01604902,
327
+ -0.0590802, 0.039551828, 0.011304451, -0.0021917846, 0.044530187, 0.013766127, -0.044860244,
328
+ 0.014618773, -0.003491384, -0.009516642, -0.04785826, 0.02537313, -0.03457347, -0.0061266827,
329
+ -0.04587792, -0.07442785, -0.0029120652, 0.016214048, 0.015072602, 0.034903526, 0.0099429665,
330
+ -0.040349465, -0.035426114, 0.027752291, 0.010788737, 0.02456174, -0.017946849, -0.018827,
331
+ -0.018964523, 0.063921034, -0.0031131937, 0.013209155, 0.020793589, 0.020367267, 0.011187556,
332
+ -0.025180597, -0.023200255, 0.0063570347, 0.024149168, 0.037516475, 0.0107130995, 0.012892851,
333
+ 0.013573593, -0.022801436, 0.023722844, 0.05544957, 0.014054926, -0.00661833, 0.030117698,
334
+ 0.05687982, 0.005215588, 0.010114871, -0.11607003, -0.025923224, -0.0038437885, -0.008608986,
335
+ 0.018978275, -0.02989766, 0.0058069397, -0.011201308, -0.014261211, 0.0051605785, 0.028192367,
336
+ -0.026033243, -0.0009910305, -0.019377096, 0.013876146, 0.023420293, -0.0064876825, 0.062325757,
337
+ -0.032043032, 0.0018565705, 0.06106054, -0.0042632357, 0.026844634, 0.004582979, 0.011228813,
338
+ -0.005480321, -0.011586375, 0.043292474, 0.029045014, -0.045740396, -0.013298546, 0.010781861,
339
+ 0.0024754272, -0.011476356, -0.00045941523, -0.00016792938, -0.038149085, 0.021866275,
340
+ 0.016846659, 0.026913395, -0.046483025, -0.03248311, -0.04502527, 0.008395825, -0.02786231,
341
+ 0.0024891796, 0.002979108, 0.011311327, -0.05346923, -0.07393276, -0.010114871, 0.0046826834,
342
+ -0.04796828, 0.017341744, 0.013112889, 0.02416292, -0.017754314, -0.0067042825, -0.016530354,
343
+ 0.012549041, -0.030200213, -0.048105802, 0.014687535, 0.061390597, 0.0335833, -0.00764632,
344
+ 0.030172708, -0.055064507, 0.05115883, 0.0071718628, -0.02937507, -0.009956718, 0.00946851,
345
+ -0.025991987, -0.012487155, -0.028054843, 0.0016863849, -0.022787683, 0.054706942, 0.0144537445,
346
+ -0.020050962, -0.056824807, 0.0013176494, -0.0062332633, -0.045685384, -0.0048064548,
347
+ -0.005930711, 0.009798567, 0.026033243, 0.073657714, 0.04095457, -0.011689518, -0.02989766,
348
+ 0.0044007595, -0.01668163, -0.0063398443, -0.019803418, -0.00434575, -0.04431015, -0.0111531755,
349
+ 0.014605021, -0.053194184, 0.047693234, 0.0147838015, -0.013312298, 0.018221896, 0.06320591,
350
+ 0.025015568, 0.041312132, -0.04125712, -0.031767983, 0.04483274, 0.0032197745, 0.0054596923,
351
+ -0.011304451, 0.002057699, -0.00111824, 0.0050574355, -0.035481125, 0.0082995575, -0.020298503,
352
+ 0.025153091, 0.0013606255, -0.0054115593, 0.008780891, -0.0036203123, 0.038424134, -0.04623548,
353
+ -0.015787724, -0.009709176, -0.0031131937, 0.04367754, 0.070137106, 0.027793547, -0.012411517,
354
+ -0.038011562, 0.035343602, -0.0089527955, 0.02009222, -0.011070661, -0.019803418, -0.015773972,
355
+ 0.06700157, 0.008540224, -0.0026799939, 0.005996035, -0.005635035, 0.0061198063, -0.042439826,
356
+ 0.027064672, 0.0016279373, 0.019033285, -0.05063624, 0.0031802366, -0.0034707554, -0.0011680922,
357
+ 0.004125712, -0.032978192, 0.06914694, 0.009544147, -0.025098082, 0.003943493, -0.02068357,
358
+ 0.028879985, -0.0076325675, -0.037186418, 0.049040966, -0.015663953, 0.060675472, 0.07552804,
359
+ -0.04582291, -0.0045726644, -0.04007442, 0.067056574, 0.04018444, -0.026445815, -0.018744485,
360
+ 0.037103906, 0.018565705, 0.0043113693, 0.026734615, 0.0026198272, -0.017644295, 0.017905591,
361
+ -0.04931601, -0.00062057585, 0.0071306056, 0.02641831, -0.0012841279, -0.00037819028, 0.011806413,
362
+ -0.014660031, 0.031410422, -0.01300287, -0.013305422, -0.012610927, 0.01604902, -0.017561782,
363
+ 0.028879985, -0.035233583, 0.015787724, -0.0037234551, -0.02595073, 0.00049508543, 0.007385025,
364
+ -0.027986081, -0.003414027, -0.0069724536, 0.032895677, -0.063756004, 0.030887831, 0.039469313,
365
+ 0.006632082, -0.047995783, -0.0097023, 0.007886986, -0.016997933, 0.036636323, 0.027532253,
366
+ -0.041119598, -0.014261211, 0.0052052736, 0.022127569, 0.0370764, -0.0115932515, -0.030887831,
367
+ 0.012122718, -0.008725882, 0.010967518, 0.01413744, -0.025194349, 0.056219704, 0.018153133,
368
+ 0.008340815, -0.08548476, -0.021797512, -0.020050962, -0.006260768, 0.01947336, -0.022498883,
369
+ -0.00054665684, -0.009661043, 0.036278762, -0.009887957, -0.012287746, 0.07514297, 0.05399182,
370
+ -0.045437843, 0.011985194, 0.012892851, -0.020284751, 0.013580469, 0.047198147, 0.011943936,
371
+ -0.023915378, 0.016777895, 0.031933013, 0.026322044, 0.016406583, 0.00396756, 0.00860211,
372
+ 0.061830673, -0.008244548, -0.015567687, 0.028769966, 0.008237672, -0.05786999, -0.015416411,
373
+ -0.061940692, 0.00009830799, -0.002171156, -0.015045097, 0.013394812, 0.013917402, 0.023296522,
374
+ 0.013711117, -0.052451555, -0.012879098, -0.020711076, -0.0074812914, 0.0182494, 0.018111877,
375
+ -0.026555834, 0.01098127, -0.0027831367, 0.008175787, -0.001469785, -0.011840794, 0.059025187,
376
+ -0.026432063, -0.006580511, 0.036168743, -0.008120777, -0.00903531, 0.026253281, -0.037901543,
377
+ -0.033033203, -0.016874162, -0.032070536, -0.036223754, -0.023158997, -0.0076669483,
378
+ -0.0153338965, -0.030392746, 0.031190384, 0.003988188, 0.0061645014, -0.01477005, -0.03556364,
379
+ 0.036003716, 0.005707235, -0.029045014, -0.028109852, -0.020243494, 0.020532295, -0.029320061,
380
+ 0.00065710564, 0.002133337, 0.021123646, -0.02879747, -0.02641831, -0.05247906, -0.0019648704,
381
+ -0.007928244, 0.0088427765, 0.017795572, -0.01413744, -0.002863932, -0.04015693, -0.055229533,
382
+ 0.022196332, 0.0035446745, -0.028247377, 0.005115883, 0.03905674, -0.036058724, 0.009516642,
383
+ -0.023530312, 0.0625458, 0.014976335, 0.009324109, -0.025565663, -0.05278161, -0.020697324,
384
+ 0.01529264, -0.026665853, 0.020271, 0.02154997, -0.027724786, 0.010554947, -0.05058123,
385
+ -0.011840794, 0.03330825, 0.04414512, -0.029650118, 0.013195403, -0.025675682, -0.00587914,
386
+ -0.0049095973, -0.0199822, 0.029320061, -0.03614124, -0.047940776, -0.03295069, -0.07266755,
387
+ 0.0106030805, -0.027092177, 0.0275185, -0.035013545, -0.012102089, -0.0031131937, 0.014618773,
388
+ -0.023324026, -0.0058997683, -0.007694453, 0.016516602, -0.0026799939, -0.014495002,
389
+ -0.0038884836, 0.0014938517, -0.013415441, 0.0061163683, 0.04722565, -0.004187598, 0.048408356,
390
+ -0.021659989, -0.060015358, -0.009317233, 0.011276946, 0.028412404, -0.008230796, 0.041834723,
391
+ 0.07195242, -0.027490996, 0.017548028, 0.0007125449, -0.00587914, -0.029787641, 0.027394729,
392
+ 0.006652711, 0.054486904, -0.030557774, -0.019624637, -0.04849087, -0.005707235, 0.0073300153,
393
+ 0.0034277793, -0.06474618, -0.0088496525, 0.008719005, -0.005669416, 0.007852606, 0.017025439,
394
+ 0.000085683736, -0.025813205, -0.029870156, 0.039716855, 0.02057355, -0.03985438, 0.0017267824,
395
+ -0.023090236, -0.011366337, -0.0058997683, -0.060620464, 0.029100023, -0.025070578, -0.0030031747,
396
+ 0.029595109, 0.013222908, 0.011146299, -0.006700844, -0.0023086797, -0.02236136, -0.065956384,
397
+ -0.0071512344, -0.042907406, -0.005748492, 0.043374985, -0.031162878, 0.04832584, -0.01727298,
398
+ 0.03157545, 0.03776402, 0.028467413, 0.052396543, 0.03152044, -0.0037509599, -0.026789624,
399
+ 0.040652018, -0.022100065, 0.021522464, -0.013876146, 0.012885975, 0.0033280745, -0.052121498,
400
+ -0.032648135, -0.039029237, 0.013147269, -0.030255223, -0.006522063, 0.03578368, 0.059465263,
401
+ 0.024369206, 0.01848319, 0.044117615, 0.023970388, 0.037461467, 0.011084413, 0.024094159,
402
+ 0.0048373975, -0.037213925, -0.0013142113, -0.023860369, 0.034518458, -0.024836788, -0.013415441,
403
+ -0.033060707, -0.0113732135, -0.013463574, -0.00086768885, -0.025043072, 0.009626661, 0.04147716,
404
+ -0.07261253, -0.0017826514, 0.020986123, 0.0411471, -0.02236136, 0.03377583, 0.00006629074,
405
+ 0.032868173, -0.014357478, 0.058640122, 0.009537271, 0.0034432507, 0.04235731, -0.0024462035,
406
+ -0.0003689504, -0.033528287, -0.0031389794, -0.036801353, -0.009434128, 0.021412445, 0.035206076,
407
+ 0.0047514453, -0.020202238, 0.026748367, 0.0016889634, 0.045987938, 0.029320061, -0.030172708,
408
+ -0.059740312, 0.007495044, -0.013442946, -0.014866316, 0.021852521, -0.011524489, 0.018579457,
409
+ 0.0011912994, -0.052754108, 0.025290616, -0.024960559, 0.027504748, 0.016612867, 0.04164219,
410
+ 0.021041133, 0.028219871, -0.019817172, 0.025386883, 0.036251258, 0.007164987, -0.0112631945,
411
+ -0.027202196, -0.0013821136, 0.009997976, -0.019858427, -0.029210042, -0.0021539656,
412
+ ];
413
+
414
+ /**
415
+ * chunk:
416
+ *
417
+ * ``````jsx filename="app/client-redirect.jsx" switcher'use client'import { navigate } from './actions'export function ClientRedirect() { return ( <form action={navigate}> <input type="text" name="id" /> <button>Submit</button> </form> )}``````ts filename="app/actions.ts" switcher'use server'import { redirect } from 'next/navigation'export async function navigate(data: FormData) { redirect(`/posts/${data.get('id')}`)}``````js filename="app/actions.js" switcher'use server'import { redirect } from 'next/navigation'export async function navigate(data) { redirect(`/posts/${data.get('id')}`)}```
418
+ */
419
+
420
+ export const codeEmbedding = [
421
+ -0.026551945, 0.016553676, -0.009343998, 0.00018550233, 0.012151644, -0.003228475, -0.012577237,
422
+ 0.020072762, 0.015677081, -0.03488595, 0.031328753, -0.02089854, 0.034276146, 0.016452042,
423
+ 0.004487787, 0.0005137293, 0.0017770111, -0.040780738, 0.017620835, 0.046853382, 0.01092568,
424
+ -0.022219785, 0.02718716, 0.03686782, -0.04111105, -0.054475952, -0.028610038, 0.02045389,
425
+ 0.0018595889, -0.0028521107, 0.043143734, -0.021482937, 0.013695213, 0.03524167, -0.020060057,
426
+ -0.007635272, 0.0005280216, -0.011497373, -0.000051511885, -0.009140729, -0.04479529, -0.06316568,
427
+ 0.0071969745, 0.017951148, 0.0046084775, 0.039408676, -0.08776116, -0.016007392, -0.015003754,
428
+ 0.01676965, 0.013250563, -0.07978287, -0.011592655, 0.09136918, -0.0069047757, -0.011135301,
429
+ -0.045582954, 0.028305136, 0.028355952, 0.024011089, 0.03524167, 0.008060865, -0.019780563,
430
+ -0.0036937692, 0.033437666, 0.012393025, -0.04088237, 0.025929434, 0.06524918, 0.05224,
431
+ 0.030998442, 0.03069354, 0.02176243, -0.01787492, 0.00427499, 0.0026170816, -0.00037160018,
432
+ 0.012069066, 0.048225444, -0.03292949, -0.017023735, 0.03773171, -0.018446613, -0.05782988,
433
+ -0.030439453, -0.011294104, -0.05437432, -0.0112814, -0.010519143, -0.013847665, 0.0090263905,
434
+ -0.004084426, -0.09761968, 0.03315817, 0.003671537, 0.008346711, -0.048276264, -0.035546575,
435
+ 0.029219843, 0.05589883, 0.06845066, -0.08288272, -0.0046275337, 0.05325634, 0.008422937,
436
+ -0.013974708, 0.0114402035, 0.02982965, 0.014495583, -0.012583589, 0.009718774, -0.031430386,
437
+ 0.041009415, 0.04550673, 0.031303346, -0.039408676, -0.008168852, -0.025891323, -0.029321477,
438
+ -0.053357974, 0.029575562, -0.0003950237, 0.046319805, -0.017646244, -0.03209101, -0.025764279,
439
+ 0.009458336, 0.008334007, -0.04639603, -0.01876422, 0.040094707, 0.01410175, -0.017252412,
440
+ -0.050131086, -0.042915057, 0.033971243, -0.061742797, -0.016185252, -0.06667206, 0.0673835,
441
+ -0.0007614628, -0.043905992, 0.046218168, -0.006993706, -0.01401282, 0.012570885, 0.010430214,
442
+ 0.06951782, -0.03597852, -0.0014768725, 0.012856731, -0.020707976, -0.0060631176, 0.044007625,
443
+ 0.041593812, -0.007266848, 0.033463072, 0.048759025, -0.048682798, 0.028305136, -0.03839233,
444
+ -0.042356066, -0.023274241, 0.009051799, -0.049190972, -0.052697353, 0.007825837, -0.023833228,
445
+ -0.060370736, 0.03244673, -0.017239707, -0.039789803, -0.0052722762, -0.00037537178, 0.023502918,
446
+ -0.034657273, 0.014686148, -0.052443266, 0.003503205, 0.09828031, 0.033666342, 0.05274817,
447
+ -0.061946068, 0.019018307, -0.024900388, -0.015181614, -0.009153433, 0.018535543, -0.010157072,
448
+ -0.0075209336, -0.020428482, 0.07109315, -0.0033189931, -0.060116652, 0.0011290929, -0.033234395,
449
+ 0.007616216, 0.011148006, 0.020530116, 0.014889415, 0.008880291, -0.03821447, 0.03719813,
450
+ -0.03470809, -0.023998383, -0.008619853, -0.04200035, -0.03559739, 0.02282959, -0.028787898,
451
+ 0.016261477, -0.004487787, -0.045405094, 0.0019866317, -0.013860369, 0.008035457, 0.0062949704,
452
+ 0.04375354, -0.0030998443, 0.04375354, 0.033259805, 0.022080038, 0.024798755, -0.109968245,
453
+ 0.047742683, 0.044566613, 0.02431599, -0.042940464, -0.012088122, 0.034504823, 0.01763354,
454
+ 0.036613733, -0.014343131, -0.03526708, 0.030134551, -0.022448462, 0.023058267, -0.023769706,
455
+ -0.031862333, 0.0044369698, -0.008264134, -0.040450428, 0.011395738, -0.033945836, 0.060777273,
456
+ 0.014787781, -0.010697003, -0.0052532195, -0.023858637, 0.008257782, -0.012901196, 0.058998674,
457
+ 0.024176244, -0.009756886, -0.01911994, -0.015092684, 0.04637062, -0.0038652772, -0.008156148,
458
+ 0.05396778, 0.0066252816, -0.02927066, 0.044592023, 0.03310735, -0.0017770111, 0.004554484,
459
+ 0.030718949, 0.07846163, 0.024938501, -0.015448404, 0.009331293, 0.01481319, 0.01445747,
460
+ -0.027568286, -0.020047354, -0.04563377, 0.03351389, 0.016655311, -0.034631867, 0.04652307,
461
+ -0.0127614485, -0.048352487, -0.008931109, -0.0028012937, -0.0033761624, 0.011859445,
462
+ -0.011109892, 0.019450253, 0.004351216, -0.0430421, 0.0131108165, -0.02125426, -0.059913382,
463
+ -0.062098518, 0.015143502, 0.072973385, 0.01834498, -0.012742393, 0.003960559, 0.019958423,
464
+ 0.012011897, -0.03351389, -0.022041924, -0.010379396, 0.029804239, -0.011376683, 0.004319455,
465
+ 0.048098404, 0.05396778, 0.014914825, -0.059456028, -0.02065716, 0.009331293, -0.029397704,
466
+ 0.007838541, -0.036918636, -0.0047196397, -0.037350584, 0.04639603, -0.01499105, -0.028813306,
467
+ -0.0015205435, -0.0057455106, -0.029245252, -0.026755214, -0.0059328987, -0.023464805,
468
+ 0.027619103, 0.0057899756, 0.023350466, 0.015219727, -0.014584513, 0.020085465, 0.07632731,
469
+ 0.032014783, -0.029041983, -0.047132876, 0.03864642, -0.056508634, 0.039434083, -0.046624705,
470
+ -0.044719063, -0.02662817, -0.003935151, -0.022639027, 0.009667957, 0.0019913958, -0.022854999,
471
+ -0.0036016633, -0.022816885, -0.024150835, 0.015753306, -0.042051166, 0.0008718312, -0.021457529,
472
+ 0.013746031, -0.025865912, -0.047005836, -0.03224346, 0.0317607, -0.01570249, 0.031633656,
473
+ -0.025840504, -0.004332159, 0.013911186, -0.0035127334, -0.049699143, -0.012678871, 0.08567766,
474
+ -0.010652538, 0.05554311, -0.007343074, -0.053815328, 0.042203616, -0.007838541, -0.054577585,
475
+ 0.0032840562, 0.020860428, 0.0635214, 0.036562916, 0.009756886, 0.058846224, -0.07836,
476
+ -0.03806202, -0.039561126, -0.004224173, 0.038875096, -0.030210776, 0.030185368, 0.010754173,
477
+ -0.0053866147, -0.018116303, -0.009795, 0.0040240805, -0.016985621, 0.034276146, 0.096044354,
478
+ 0.02556101, -0.00679679, 0.00516429, 0.050486807, 0.0061679278, -0.054577585, -0.022435758,
479
+ 0.062149335, 0.013784143, 0.008454698, -0.029016575, 0.023947567, -0.020923948, 0.056356184,
480
+ -0.034149103, 0.057982333, 0.025345039, 0.03328521, -0.026729804, 0.02627245, -0.00798464,
481
+ 0.0074256514, 0.0041161864, 0.013352198, -0.073634006, -0.008778657, -0.02529422, -0.0299821,
482
+ -0.020962061, 0.07038171, -0.008232373, 0.05925276, -0.07647976, -0.037477624, 0.030642722,
483
+ 0.055289026, 0.004853035, 0.025726166, 0.016324999, 0.016197957, -0.017201595, 0.045430504,
484
+ 0.0047641047, 0.006047237, 0.013002831, -0.051528558, 0.043448634, 0.049089335, -0.003050615,
485
+ -0.028228909, -0.05376451, -0.05376451, -0.020225214, -0.039129183, 0.0069810017, -0.027263384,
486
+ -0.020758793, -0.06402957, -0.003047439, -0.006314027, -0.03737599, 0.0670786, -0.019945718,
487
+ -0.011427499, 0.044312526, -0.03303113, -0.018446613, 0.028330544, 0.021025583, 0.009896634,
488
+ 0.008645263, 0.06580817, -0.012170699, 0.017138073, 0.011294104, 0.004691055, -0.024684416,
489
+ -0.06484264, 0.019018307, 0.048022177, -0.0051166485, 0.01959, -0.048708208, -0.0035159094,
490
+ 0.040069297, -0.020847723, -0.0525449, 0.029524745, 0.051604785, -0.009108968, 0.015931167,
491
+ -0.017265117, 0.03310735, 0.04070451, 0.03336144, 0.031074667, -0.011338569, 0.00896287,
492
+ -0.043245368, 0.004535428, 0.002813998, -0.015626265, -0.04022175, -0.0069174804, -0.04034879,
493
+ -0.036588326, -0.0030315588, 0.0011767339, -0.0025313278, 0.0047958656, 0.032700814,
494
+ -0.0034873248, -0.0071461573, 0.008886644, -0.032675408, -0.037274357, -0.030998442, -0.0299821,
495
+ 0.026145408, -0.042076573, 0.04464284, -0.008295895, -0.019374026, -0.017252412, -0.018294163,
496
+ -0.025954843, -0.011643472, -0.020377664, 0.018459318, 0.021660797, -0.06712941, -0.0013268032,
497
+ -0.012653463, 0.03336144, -0.021711614, 0.019818677, 0.014749669, 0.027644513, -0.026018364,
498
+ -0.06651961, -0.005634348, -0.005866201, -0.034504823, 0.0072477916, 0.004586245, 0.0031252527,
499
+ -0.024773344, -0.031481206, 0.0045195473, -0.0011219467, 0.025421264, -0.010506439, 0.022130854,
500
+ -0.01974245, -0.054221865, 0.009566323, -0.033234395, 0.02080961, -0.025637235, 0.017913034,
501
+ -0.017824104, 0.006237801, -0.024328696, -0.006771381, 0.03440319, 0.05010568, -0.027110932,
502
+ 0.0149783455, -0.008721488, 0.019488364, 0.037782528, -0.023134492, 0.006088526, 0.00065982854,
503
+ 0.0356228, -0.026933072, 0.03526708, -0.012901196, 0.01790033, 0.005815384, -0.02247387,
504
+ -0.025078248, 0.01816712, -0.03015996, -0.0145464, 0.030312411, 0.036410466, -0.053662878,
505
+ -0.02520529, 0.010220593, -0.053713694, -0.008118034, 0.04266097, 0.025040135, -0.013987412,
506
+ -0.0045671887, 0.031303346, 0.0149783455, -0.00085118675, -0.003534966, 0.0077559627,
507
+ 0.0058058556, 0.041695446, 0.03298031, -0.05854132, -0.0072414395, 0.0021501994, 0.007000058,
508
+ -0.025345039, -0.014889415, -0.026729804, 0.00071223365, 0.037858754, 0.039789803, 0.019971127,
509
+ 0.002134319, 0.011154357, 0.033590116, -0.020962061, -0.033234395, 0.0026853671, -0.0022962985,
510
+ -0.0037445864, -0.007343074, 0.009934747, 0.075920776, 0.018548248, 0.023795115, 0.026602762,
511
+ 0.002321707, -0.03458105, -0.011808628, -0.030617313, -0.0077369064, -0.03844315, 0.03773171,
512
+ 0.007908414, -0.011478317, -0.029804239, 0.028965758, 0.01172605, -0.027619103, 0.008956517,
513
+ -0.051757235, 0.01092568, 0.038189065, 0.011332218, -0.0039256224, 0.051757235, -0.052341633,
514
+ 0.03371716, -0.03310735, 0.0054342556, -0.009890282, -0.019297801, 0.012132587, -0.03508922,
515
+ 0.046446845, -0.028559221, -0.005735982, 0.0058376165, -0.045608364, 0.045354277, 0.022308715,
516
+ 0.034860544, -0.07414217, 0.028406769, -0.026501127, 0.019488364, 0.0065681124, 0.022397645,
517
+ -0.004598949, -0.052697353, -0.04022175, 0.027212568, 0.07144887, -0.002358232, -0.03369175,
518
+ -0.05782988, 0.00039145062, -0.004344864, -0.0025329157, -0.0068285502, -0.005774095, 0.005262748,
519
+ -0.019348618, 0.005138881, 0.022524688, -0.039993074, -0.04268638, -0.011643472, -0.009401167,
520
+ 0.011935671, -0.0051992266, -0.0007523316, 0.008378472, -0.03300572, 0.0026520183, 0.008276838,
521
+ 0.036105562, 0.035648208, 0.013085408, -0.012863083, -0.009718774, -0.021660797, -0.019310504,
522
+ 0.012024601, -0.02716175, -0.031963967, 0.0062886183, 0.0068793674, 0.011560895, -0.034784317,
523
+ -0.023159903, 0.010398453, -0.03470809, -0.0495721, 0.008041809, 0.010157072, -0.03849397,
524
+ 0.0012307271, 0.031430386, -0.06906047, -0.018891264, 0.00039482518, -0.0347335, -0.010830399,
525
+ -0.001905642, 0.045709997, -0.057270892, 0.012265982, -0.011929318, 0.016439337, -0.019018307,
526
+ 0.06133626, -0.053357974, 0.009248716, -0.013161634, 0.050334357, -0.008950165, -0.038951322,
527
+ 0.045227237, -0.008664318, 0.0029648612, -0.0465993, -0.056508634, -0.024646303, 0.06118381,
528
+ -0.02324883, -0.0049324366, 0.023566438, -0.00035254375, 0.0045195473, -0.027288793, 0.0061520473,
529
+ 0.0014903708, -0.036080156, 0.033615522, -0.008365768, -0.004916556, -0.01967893, -0.025217995,
530
+ 0.040297974, 0.012043657, 0.054831672, -0.023795115, 0.029956691, -0.005726454, -0.028101867,
531
+ 0.015918462, 0.0003549258, -0.049343422, 0.031277936, 0.020415777, -0.021914883, -0.035292488,
532
+ -0.019653521, 0.09822949, -0.013453832, -0.041746262, 0.0049324366, 0.0329549, 0.011408443,
533
+ -0.0066888034, 0.018599065, 0.016960213, -0.03524167, 0.0155246295, 0.0045290757, -0.013695213,
534
+ 0.0045735408, -0.028660854, -0.015003754, -0.00409713, -0.0038589248, 0.0059487787, -0.024455737,
535
+ 0.023236128, 0.020796906, 0.029499337, -0.106614314, -0.040323384, 0.051350698, -0.015499221,
536
+ 0.011732402, 0.00828319, 0.04248311, 0.009007334, 0.015245136, 0.0077559627, 0.03737599,
537
+ -0.030388637, -0.0069365366, -0.022791477, 0.033818793, -0.01297107, 0.0057455106, -0.021101808,
538
+ 0.0053294455, -0.01941214, -0.0066252816, 0.02329965, -0.027924007, 0.0090263905, 0.0012775741,
539
+ 0.0356228, 0.035470348, -0.02291852, 0.03582607, -0.013720622, 0.02838136, -0.0004776015,
540
+ -0.04337241, -0.00709534, 0.018205233, 0.023757003, 0.007133453, -0.02478605, 0.0329549,
541
+ -0.030744357, -0.019374026, -0.01861177, -0.0009401167, -0.005993244, 0.017646244, 0.012628054,
542
+ -0.020212509, 0.011560895, -0.010589017, -0.029143617, 0.0078575965, -0.0030140902, -0.023617256,
543
+ -0.047031242, -0.013631692, -0.00070786657, -0.0043226313, 0.060269102, 0.011148006, 0.007343074,
544
+ 0.004995958, 0.024011089, -0.030032918, -0.03209101, 0.049292605, -0.050918754, -0.024900388,
545
+ 0.022067335, -0.023960272, -0.008022753, 0.04121268, 0.00872784, 0.025916731, -0.0004232113,
546
+ 0.009960155, 0.041924123, 0.03402206, -0.024671711, 0.03844315, -0.00798464, 0.037299763,
547
+ 0.03470809, 0.0064378935, 0.02027603, 0.022931226, -0.054425135, -0.0053866147, 0.015918462,
548
+ 0.03333603, -0.0016626726, 0.028076459, -0.00825143, 0.01356817, 0.02241035, 0.0011965843,
549
+ 0.03371716, -0.06153953, 0.05224, 0.0076479763, -0.03102385, 0.013212451, 0.014673443,
550
+ -0.02098747, 0.03262459, -0.007000058, 0.015143502, -0.02249928, 0.01347924, -0.015156206,
551
+ 0.011510077, 0.0024900388, -0.012996478, -0.02982965, 0.010169776, -0.037274357, -0.030007508,
552
+ 0.05427268, 0.04299128, 0.026882255, 0.0055835308, 0.00052921264, 0.032675408, 0.02065716,
553
+ 0.01825605, -0.057372525, 0.013974708, -0.02318531, -0.016324999, 0.017620835, 0.019348618,
554
+ 0.04090778, 0.004681527, 0.012030953, -0.011205175, 0.019793268, 0.013098112, 0.041898713,
555
+ 0.024214357, -0.031633656, 0.01525784, -0.008740544, -0.007317665, 0.009089912, -0.000455369,
556
+ 0.001769071, -0.00011155946, 0.006510943, -0.009413871, 0.002088266, -0.07647976, 0.07434545,
557
+ 0.07109315, -0.04494774, -0.011592655, 0.046700932, 0.07830918, -0.027720738, -0.06245424,
558
+ -0.0054691923, 0.0075082295, 0.052341633, -0.031506613, -0.004084426, -0.029524745, 0.019717041,
559
+ -0.002780649, -0.031100076, 0.021482937, -0.026145408, -0.0080164, -0.038112838, 0.04548132,
560
+ -0.0015292777, -0.018408502, 0.06453774, 0.06321649, 0.04337241, 0.03668996, 0.025599124,
561
+ 0.0055390657, 0.0015705666, 0.030464863, -0.02089854, -0.0034269795, 0.05127447, 0.03371716,
562
+ 0.036893226, -0.016528267, 0.011859445, 0.0054088472, 0.0051230006, 0.016744241, 0.020174395,
563
+ -0.02838136, -0.035190854, -0.002131143, 0.045887858, -0.038722645, -0.0028695792, 0.015651673,
564
+ -0.035470348, -0.0020152163, -0.017379455, -0.056813538, 0.0033126408, 0.01894208, -0.049699143,
565
+ 0.055695564, 0.012596293, 0.05224, 0.0039287983, 0.03541953, -0.028355952, 0.014851303,
566
+ -0.016261477, 0.00097346544, -0.019577295, -0.030109143, -0.0058947857, -0.00118388, -0.015130797,
567
+ 0.009890282, -0.030617313, 0.02051741, -0.027847782, -0.04319455, -0.020492002,
568
+ ];