Skip to content

fix: fix local mode backward compatibility#1124

Merged
joein merged 3 commits into
devfrom
fix-local-mode-backward-compat
Nov 24, 2025
Merged

fix: fix local mode backward compatibility#1124
joein merged 3 commits into
devfrom
fix-local-mode-backward-compat

Conversation

@joein

@joein joein commented Nov 20, 2025

Copy link
Copy Markdown
Member

Local mode could not start from an existing persisted db create with previous versions of qdrant-client because meta.json contained parameters removed from rest.CreateCollection, in particular: init_from

@netlify

netlify Bot commented Nov 20, 2025

Copy link
Copy Markdown

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit e961bfc
🔍 Latest deploy log https://app.netlify.com/projects/poetic-froyo-8baba7/deploys/691f370ac78dec0008773e03
😎 Deploy Preview https://deploy-preview-1124--poetic-froyo-8baba7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Nov 20, 2025

Copy link
Copy Markdown

Warning

Rate limit exceeded

@joein has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 1 minutes and 28 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between c18e951 and e961bfc.

📒 Files selected for processing (2)
  • qdrant_client/local/async_qdrant_local.py (2 hunks)
  • qdrant_client/local/qdrant_local.py (2 hunks)
📝 Walkthrough

Walkthrough

Both synchronous and asynchronous local Qdrant client loaders now strip the deprecated "init_from" key from each collection's config_json when loading metadata. The change removes that field (if present) before constructing the CreateCollection model, leaving the rest of the load/control flow unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Homogeneous change applied in two parallel files (qdrant_client/local/qdrant_local.py, qdrant_client/local/async_qdrant_local.py)
  • Simple dictionary key removal with no complex control flow or new logic
  • Potential review focus areas:
    • Confirm no other deprecated fields need similar handling
    • Verify that removing the key does not affect downstream code that might expect it
    • Ensure sync and async implementations remain consistent

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main change: fixing backward compatibility for local mode by handling deprecated fields when loading persisted databases.
Description check ✅ Passed The description clearly explains the problem being solved: local mode failing to start from existing persisted databases due to deprecated parameters in meta.json, specifically 'init_from'.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9ce7346 and 56eda8d.

📒 Files selected for processing (2)
  • qdrant_client/local/async_qdrant_local.py (2 hunks)
  • qdrant_client/local/qdrant_local.py (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Redirect rules - poetic-froyo-8baba7
  • GitHub Check: Header rules - poetic-froyo-8baba7
  • GitHub Check: Pages changed - poetic-froyo-8baba7
  • GitHub Check: Python 3.10.x on ubuntu-latest test
  • GitHub Check: Python 3.11.x on ubuntu-latest test
  • GitHub Check: Python 3.13.x on ubuntu-latest test
  • GitHub Check: Python 3.9.x on ubuntu-latest test
  • GitHub Check: Python 3.12.x on ubuntu-latest test

Comment thread qdrant_client/local/async_qdrant_local.py Outdated
Comment thread qdrant_client/local/qdrant_local.py Outdated
@joein joein requested a review from tbung November 20, 2025 15:44

@tbung tbung left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these in some form notify the user if a deprecated key was found, may print a warning?

@joein

joein commented Nov 24, 2025

Copy link
Copy Markdown
Member Author

Should these in some form notify the user if a deprecated key was found, may print a warning?

I don't think so, users do not pass these keys explicitly, they're inherited from models.CreateCollection implicitly

@joein joein merged commit 5284c02 into dev Nov 24, 2025
14 checks passed
joein added a commit that referenced this pull request Nov 24, 2025
* fix: fix local mode backward compatibility

* chore: fix comment

* fix: fix fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants