YanSte commited on
Commit
38386d1
·
1 Parent(s): 578aacb

added fields

Browse files
Files changed (1) hide show
  1. lightrag/lightrag.py +4 -4
lightrag/lightrag.py CHANGED
@@ -339,20 +339,20 @@ class LightRAG:
339
  namespace_prefix: str = field(default="")
340
  """Prefix for namespacing stored data across different environments."""
341
 
342
- enable_llm_cache: bool = True
343
  """Enables caching for LLM responses to avoid redundant computations."""
344
 
345
- enable_llm_cache_for_entity_extract: bool = True
346
  """If True, enables caching for entity extraction steps to reduce LLM costs."""
347
 
348
  # Extensions
349
- max_parallel_insert: int = field(default_factory=lambda: int(os.getenv("MAX_PARALLEL_INSERT", 20)))
350
  """Maximum number of parallel insert operations."""
351
 
352
  addon_params: dict[str, Any] = field(default_factory=dict)
353
 
354
  # Storages Management
355
- auto_manage_storages_states: bool = True
356
  """If True, lightrag will automatically calls initialize_storages and finalize_storages at the appropriate times."""
357
 
358
  """Dictionary for additional parameters and extensions."""
 
339
  namespace_prefix: str = field(default="")
340
  """Prefix for namespacing stored data across different environments."""
341
 
342
+ enable_llm_cache: bool = field(default=True)
343
  """Enables caching for LLM responses to avoid redundant computations."""
344
 
345
+ enable_llm_cache_for_entity_extract: bool = field(default=True)
346
  """If True, enables caching for entity extraction steps to reduce LLM costs."""
347
 
348
  # Extensions
349
+ max_parallel_insert: int = field(default=int(os.getenv("MAX_PARALLEL_INSERT", 20)))
350
  """Maximum number of parallel insert operations."""
351
 
352
  addon_params: dict[str, Any] = field(default_factory=dict)
353
 
354
  # Storages Management
355
+ auto_manage_storages_states: bool = field(default=True)
356
  """If True, lightrag will automatically calls initialize_storages and finalize_storages at the appropriate times."""
357
 
358
  """Dictionary for additional parameters and extensions."""