-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor Qdrant client factory to resolve circular dependencies #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Extracted Qdrant client factory to `src/domains/memory/vector/client_factory.py`. - Updated all consumers (11 modules + setup_cli + content_filter) to import from new factory. - Added deprecation warnings to `src/domains/memory/qdrant_provider.py` and `src/domains/memory/vector/qdrant/domains/qdrant_provider.py`. - Verified changes with `pytest tests/fast/test_fast.py`. - Resolves P0-2 blocker from ASC-1 synthesis.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
|
🤖 Hi @google-labs-jules[bot], I've received your request, and I'm working on it now! You can track my progress in the logs for more details. |
|
🤖 I'm sorry @google-labs-jules[bot], but I was unable to process your request. Please see the logs for more details. |
PR Review: Refactor Qdrant Client FactoryOverviewThis refactoring successfully extracts the Qdrant client factory logic into a dedicated module to resolve circular dependencies. The approach is sound and aligns with the project's architectural principles. ✅ Strengths1. Architecture & Design
2. Code Quality
3. Migration CoverageAll 18 import sites have been updated consistently:
|
This change extracts the Qdrant client factory logic into a dedicated module
src/domains/memory/vector/client_factory.py. This breaks a circular dependency cycle whereqdrant.pyimported tools, which in turn imported the client factory from the same module (or a related one causing the cycle).The original locations
src/domains/memory/qdrant_provider.pyandsrc/domains/memory/vector/qdrant/domains/qdrant_provider.pyhave been retained as deprecated shims to maintain backward compatibility for any untracked consumers, but all internal usages have been updated to use the new factory directly.This architectural change aligns with the "Sovereign Architect" directive for robust and decoupled code.
PR created automatically by Jules for task 6831929615835677485 started by @Giftedx