Fix NumPy 2.x compatibility issue (#2431)#2432
Fix NumPy 2.x compatibility issue (#2431)#2432devin-ai-integration[bot] wants to merge 4 commits intomainfrom
Conversation
Co-Authored-By: Joe Moura <joao@crewai.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Joe Moura <joao@crewai.com>
|
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment: NumPy 2.x Compatibility FixesSummaryThe recent changes to the crewAI codebase implement critical compatibility fixes for NumPy 2.x across various core components. The focus on graceful degradation when Key Improvements1. Knowledge Storage Module
Example Improvements: def _initialize_imports(self) -> None:
"""Centralized import handling with proper error tracking"""2. RAG Storage Module
Example Improvements: if not self._features_available['storage']:
logging.warning("Storage features unavailable")3. Embedding Configurator
Example Improvements: @contextmanager
def error_boundary(self, provider: str):
"""Context manager for provider operations"""Testing StrategyThe implemented tests demonstrate a proactive step towards ensuring the application works as intended under varying conditions, especially concerning missing dependencies. The new Recommended Tests:
General Recommendations
These enhancements collectively improve both the robustness and maintainability of the codebase while simplifying future development tasks. Great work addressing these compatibility issues! Let’s continue to validate that all features perform as expected under the specified conditions and iterate where necessary. |
…orage.py Co-Authored-By: Joe Moura <joao@crewai.com>
Co-Authored-By: Joe Moura <joao@crewai.com>
|
Closing due to inactivity for more than 7 days. |
Fix NumPy 2.x compatibility issue (#2431)
This PR addresses issue #2431 by implementing robust error handling for chromadb imports when NumPy 2.x is installed.
Changes
Testing
Link to Devin run: https://app.devin.ai/sessions/8a66948028824d14963cd06affcb5763
Requested by: Joe Moura (joao@crewai.com)