-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
๐ fix: improve delete orphan chunks when delete files #4179
Conversation
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
|
๐ @arvinxx Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests โ
Additional details and impacted files@@ Coverage Diff @@
## main #4179 +/- ##
=======================================
Coverage 92.50% 92.51%
=======================================
Files 484 484
Lines 34748 34757 +9
Branches 2143 2145 +2
=======================================
+ Hits 32145 32154 +9
Misses 2603 2603
Flags with carried forward coverage won't be shown. Click here to find out more. โ View full report in Codecov by Sentry. |
โค๏ธ Great PR @arvinxx โค๏ธ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.20.3](v1.20.2...v1.20.3) <sup>Released on **2024-09-28**</sup> #### ๐ Bug Fixes - **misc**: Improve delete orphan chunks when delete files. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Improve delete orphan chunks when delete files, closes [#4179](#4179) ([f3e0ffe](f3e0ffe)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
๐ This PR is included in version 1.20.3 ๐ The release is available on: Your semantic-release bot ๐ฆ๐ |
### [Version 1.63.2](v1.63.1...v1.63.2) <sup>Released on **2024-09-28**</sup> #### ๐ Bug Fixes - **misc**: Improve delete orphan chunks when delete files. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Improve delete orphan chunks when delete files, closes [lobehub#4179](https://github.com/bentwnghk/lobe-chat/issues/4179) ([f3e0ffe](f3e0ffe)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* 'main' of github.com:cookieY/lobe-chat: ๐ chore(release): v1.20.5 [skip ci] ๐ docs: Update docker-compose to use new LOGTO env (lobehub#4199) ๐ท build: optimize image size under glibc env (lobehub#4176) ๐ chore(release): v1.20.4 [skip ci] โก perf: remove some blur style to improve performance (lobehub#4085) Update dependency unstructured-client to ^0.18.0 (lobehub#4065) ๐ docs: Add deployment using ZITADEL authentication services (lobehub#4081) ๐ chore(release): v1.20.3 [skip ci] ๐ fix: improve delete orphan chunks when delete files (lobehub#4179) ๐ docs: add new configuration item of clerk singup (lobehub#4188) ๐ docs: update model-provider document (lobehub#4181) ๐ chore(release): v1.20.2 [skip ci] ๐ style: add zhipu glm-4-flashx model (lobehub#4173) ๐ท build: revert lobehub#4025 (lobehub#4175) ๐ chore(release): v1.20.1 [skip ci] ๐ท build: optimize image size under `glibc` env (lobehub#4025) ๐ chore(release): v1.20.0 [skip ci] โจ feat: add Hunyuan(Tencent) model provider (lobehub#4147) ๐ chore(release): v1.19.36 [skip ci] ๐ style: add llama3.2 model for openrouter provider (lobehub#4151)
๐ป ๅๆด็ฑปๅ | Change Type
๐ ๅๆด่ฏดๆ | Description of Change
๐ ่กฅๅ ไฟกๆฏ | Additional Information
ๅจ LobeChat Cloud ๅฎ้ ็ไบงไธญ้ๅฐไธไธชๅฅๆช็ bug๏ผ็ถๅๆไธคไธช็จๆทๆๆฅๅ้ฆ๏ผ
ๅ ทไฝๆ้ๅฆไธ๏ผ
้ฆๅ ๅจ src ไธๆไบไธไธๅญๅจ
buildQueryFromSourceParams
่ฟไธช่ฐ็จ๏ผๅ ๆญคๆ้ๅคไธๆฏๆบ็ ้จๅใ็ถๅๆฟ่ฟไธชๆไบไธๅ็ฐๆฏ Drizzle ็่ฐ็จๅฎ็ฐ๏ผไนๆไธไธชไธๆจกไธๆ ท็ issue:ๆพๆ้็ไฝ็ฝฎๆพๅฐไบ่ฟไธ้จๅ๏ผ
ๅฎ็้ฎ้ขๅฐฑๅบๅจๅฆๆ chunkIds ็ๆปๆฐ่ฟๅค๏ผ้ฃไน
inArray(chunks.id, chunkIds)
่ฟๆ ท็ๅๆณๅฐฑไผๅบ็ฐๅ ๆ ๆบขๅบ็ๆ ๅตใ่ๅจ Neon ๆงๅถๅฐๅไบๆฎต SQL ๆฅ่ฏข๏ผๅ็ฐ orphanedChunks ๅฑ ็ถๆ 161k ไนๅคโฆ ่ฟๆๅฏผ่ด็บฟไธๅ ๆไปถๆถๆ ๆณๆญฃๅธธๅ ้คใ
ๅ ๆญคๅฐ่ฏๅฐ inArrary ็ๅฎ็ฐไผๅไธบๅนณ่กๅๆนๅ ้ค๏ผๆๆไผๅ่ฏฅๆๆ่ฝ่งฃๅณ่ฟๅค็้ฎ้ข