Files
Hopping-Mad-Games-ComfyUI_L…/comfyui_lightrag/lightrag_base.py
TashaSkyUp 7cf82171e5 Make environment management non-polluting and safe
This commit implements a clean architecture where environment variables
are only read, never set, ensuring compatibility with other ComfyUI
packages.

The changes: - Remove all code that sets global environment variables -
Clean up config.yaml to remove API key placeholders - Add documentation
for safe environment handling - Add comprehensive tests to verify
non-polluting behavior - Ensure backward compatibility for other
packages

The commit includes detailed docs explaining the clean architecture and
safety guarantees for package compatibility.
2025-06-25 17:22:53 -06:00

19 lines
355 B
Python
Executable File

# lightrag_base.py
import torch
import numpy as np
from typing import Dict, List, Union
class LightRAGBaseNode:
def __init__(self):
self.CATEGORY = "LightRAG"
@staticmethod
def INPUT_TYPES():
return {}
RETURN_TYPES = ()
FUNCTION = "execute"
def execute(self, *args, **kwargs):
raise NotImplementedError