LightRAG icon indicating copy to clipboard operation
LightRAG copied to clipboard

LightRAG Initialization Fails if VectorDB is used as QDRANT

Open sudhirvadlamani opened this issue 1 year ago • 2 comments

Do you need to file an issue?

  • [ ] I have searched the existing issues and this bug is not already filed.
  • [ ] I believe this is a legitimate bug, not just a question or feature request.

Describe the bug

INFO: Connected to lightragchunk-entity-relation at xxxxxxxxxxxxxxxxxx Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/app/lightrag/api/lightrag_server.py", line 604, in main() File "/app/lightrag/api/lightrag_server.py", line 581, in main app = create_app(args) ^^^^^^^^^^^^^^^^ File "/app/lightrag/api/lightrag_server.py", line 269, in create_app rag = LightRAG( ^^^^^^^^^ File "", line 37, in init File "/app/lightrag/lightrag.py", line 387, in post_init self.entities_vdb: BaseVectorStorage = self.vector_db_storage_cls( # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lightrag/utils.py", line 891, in import_class return cls(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ TypeError: Can't instantiate abstract class QdrantVectorDBStorage with abstract methods get_by_id, get_by_ids

Steps to reproduce

Configure in .env file LIGHTRAG_VECTOR_STORAGE=QdrantVectorDBStorage

Expected Behavior

Service is not coming up as methods get_by_id/get_by_ids is missing in qdrant_imply.py

LightRAG Config Used

Paste your config here

Logs and screenshots

No response

Additional Information

  • LightRAG Version: 1.2.6
  • Operating System: Debian GNU/Linux 12 (bookworm)
  • Python Version: 3.12.3
  • Related Issues:

sudhirvadlamani avatar Mar 20 '25 15:03 sudhirvadlamani

The current QDRANT storage implementation is out of maintain, seeking developer(s) with QDRANT database expertise for urgent maintenance.

danielaskdd avatar Mar 22 '25 02:03 danielaskdd

just added the fix hope it'll approved soon

towpi13 avatar Apr 02 '25 06:04 towpi13