Open petergaoshan opened 4 months ago
@petergaoshan, do you run your flask app in a container? It might get terminated if you run out of memory.
@petergaoshan, possible cause for this might be chroma-hnswlib
raising a segmentation fault, which sometimes is masked. #2513
What happened?
I'm creating an API with Flask. The other side will send me a file and I will save it to chroma database on my side. Chroma.add will terminates my program without any exception. When I save a smaller file to it, it will be fine, when send a larger file it will crash. Firstly, I thought it might be memory problem, and I tested the same code in jupyter notebook outside flask. When I run the same code in jupyter notebook, it will run properly.
Versions
python 3.12.3 chromadb 0.5.0 langchain-chroma 0.1.1
Relevant log output