Second-Me/docs
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
..
Custom Model Config(Ollama).md fix: use 127.0.0.1 instead of localhost for Ollama connections (#156) 2025-04-07 10:10:00 +08:00
Embedding Model Switching.md feat: Add Dimension Mismatch Handling for ChromaDB (#157) (#207) 2025-04-22 10:27:34 +08:00
Local Chat API.md Optimization of files Local Chat API.md and Public Chat API.md (#225) 2025-04-15 10:03:17 +08:00
Public Chat API.md Optimization of files Local Chat API.md and Public Chat API.md (#225) 2025-04-15 10:03:17 +08:00