yangdx commited on
Commit
79d1146
·
1 Parent(s): d0221a9

Remove storage class method check

Browse files
Files changed (1) hide show
  1. lightrag/lightrag.py +0 -15
lightrag/lightrag.py CHANGED
@@ -317,21 +317,6 @@ class LightRAG:
317
  f"Compatible implementations are: {', '.join(storage_info['implementations'])}"
318
  )
319
 
320
- # Get storage class
321
- storage_class = self._get_storage_class(storage_name)
322
-
323
- # Check required methods
324
- missing_methods = []
325
- for method in storage_info["required_methods"]:
326
- if not hasattr(storage_class, method):
327
- missing_methods.append(method)
328
-
329
- if missing_methods:
330
- raise ValueError(
331
- f"Storage implementation '{storage_name}' is missing required methods: "
332
- f"{', '.join(missing_methods)}"
333
- )
334
-
335
  def check_storage_env_vars(self, storage_name: str) -> None:
336
  """Check if all required environment variables for storage implementation exist
337
 
 
317
  f"Compatible implementations are: {', '.join(storage_info['implementations'])}"
318
  )
319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  def check_storage_env_vars(self, storage_name: str) -> None:
321
  """Check if all required environment variables for storage implementation exist
322