最近正在做 LLA RAG 本地大語言模型課製化

然後嘗試建立向量資料庫時候發現一個很奇妙的錯誤

就是當我資料建立到超過100筆進去

chroma 的 vectorstore 就會立刻崩潰? 完全沒有錯誤訊息

 

read docs  96 / 1264
read docs ====== 97
read docs  97 / 1264
read docs ====== 98
read docs  98 / 1264
read docs ====== 99
read docs  99 / 1264

最怕這種錯誤了
因為發生這種錯誤,就只能一個一個因素去嘗試

 

我嘗試看看硬碟有沒有問題
重新開機,重開 ollama 
調整文案

結果都沒有用...

上網找發現一個問題居然跟我一樣!!!

https://github.com/chroma-core/chroma/issues/2513

問題就是

 

[Bug]: chromadb 0.5.4 crashes on windows #2513
Open
petacube opened this issue on Jul 13 · 44 comments
Comments
@petacube
petacube commented on Jul 13
What happened?
running collection.add function crashes after 100 documents are inserted

Versions
chromadb 0.5.4, python 3.9;

Relevant log output
No response

裡面有一個回答提到版本問題

 

 

I had the same issue: Silent crash after updating to chromadb 0.5.4 on Windows EVEN WITH chroma-hnswlib vers. 0.7.5

I moved back to chromadb 0.5.0 and chroma-hnswlib 0.7.3 and everything is working like before.

 

我目前版本是這樣

 

chroma-hnswlib                           0.7.6
chromadb                                 0.5.17

 

所以我嘗試將版本還原

 

Found existing installation: chromadb 0.5.17
Uninstalling chromadb-0.5.17:
Successfully uninstalled chromadb-0.5.17
Successfully installed chroma-hnswlib-0.7.3 chromadb-0.5.0

 

然後居然問題就解決了?!?!?

好吧

也只能註記一下
我想這種問題問 GPT到爆炸他都沒辦法解答的