feat: add Qdrant as alternative storage backend#700
Open
RobertoGEMartin wants to merge 1 commit intoMemPalace:developfrom
Open
feat: add Qdrant as alternative storage backend#700RobertoGEMartin wants to merge 1 commit intoMemPalace:developfrom
RobertoGEMartin wants to merge 1 commit intoMemPalace:developfrom
Conversation
Adds QdrantBackend as an opt-in alternative to ChromaDB, selectable via config.json. Scales beyond 100K drawers with ~4x less storage. Resolves MemPalace#688. Install with: pip install mempalace[qdrant] Enable with: {"backend": "qdrant"} in config.json Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Qdrant as an opt-in alternative to ChromaDB for the palace vector store. This resolves scalability issues when palaces exceed ~100K drawers (related to #688).
QdrantBackend+QdrantCollectioninmempalace/backends/qdrant.py, implementingBaseCollectionconfig.json:{"backend": "qdrant"}(ChromaDB remains the default)$eq,$ne,$in,$nin,$and,$or,$containsqdrant-clientandsentence-transformersonly loaded when Qdrant backend is activeWhy Qdrant?
Installation
Then in
~/.mempalace/config.json:{"backend": "qdrant"}Changes
mempalace/backends/qdrant.pymempalace/backends/__init__.pymempalace/palace.pymempalace/config.pybackendpropertypyproject.tomlqdrantoptional dependencytests/test_backends_qdrant.pyREADME.mdTest plan
🤖 Generated with Claude Code