Commit graph

5 commits

Author SHA1 Message Date
Xinghan Pan
5868f94622
feat: Add Dimension Mismatch Handling for ChromaDB (#157) (#207)
* Fix Issue #157

Add chroma_utils.py to manage chromaDB and added docs for explanation

* Add logging and debugging process

- Enhanced the`reinitialize_chroma_collections` function in`chroma_utils.py` to properly check if collections exist before attempting to delete them, preventing potential errors when collections don't exist.
- Improved error handling in the`_handle_dimension_mismatch` method in`embedding_service.py` by adding more robust exception handling and verification steps after reinitialization.
- Enhanced the collection initialization process in`embedding_service.py` to provide more detailed error messages and better handle cases where collections still have incorrect dimensions after reinitialization.
- Added additional verification steps to ensure that collection dimensions match the expected dimension after creation or retrieval.
- Improved logging throughout the code to provide more context in error messages, making debugging easier.
2025-04-22 10:27:34 +08:00
doubleBlack2
0d67365e91
Optimization of files Local Chat API.md and Public Chat API.md (#225) 2025-04-15 10:03:17 +08:00
陈晓龙(Xiaolong Chen)
0dd613d631
fix: use 127.0.0.1 instead of localhost for Ollama connections (#156) 2025-04-07 10:10:00 +08:00
KKKKKKKevin
4dee472bf4
feat: add custom model config guidance (#146) 2025-04-03 11:58:06 +08:00
KKKKKKKevin
e0d82cc923
feat: add api doc of Second-Me Chat Endpoint (#147) 2025-04-03 11:50:57 +08:00