- Remove conditional import block, replace with lazy loading factory functions - Add create_llm_model_func() and create_llm_model_kwargs() for clean configuration - Update wrapper functions with lazy imports for better performance - Unify LightRAG initialization, eliminating duplicate conditional branches - Reduce code complexity by 33% while maintaining full backward compatibility |
||
|---|---|---|
| .. | ||
| api | ||
| kg | ||
| llm | ||
| tools | ||
| __init__.py | ||
| base.py | ||
| constants.py | ||
| exceptions.py | ||
| lightrag.py | ||
| namespace.py | ||
| operate.py | ||
| prompt.py | ||
| rerank.py | ||
| types.py | ||
| utils.py | ||
| utils_graph.py | ||