fix: webui fix
Browse files
lightrag/api/webui/static/__init__.py
ADDED
File without changes
|
lightrag/api/webui/static/css/__init__.py
ADDED
File without changes
|
lightrag/api/webui/static/js/__init__.py
ADDED
File without changes
|
lightrag/base.py
CHANGED
@@ -1,5 +1,15 @@
|
|
1 |
from dataclasses import dataclass, field
|
2 |
-
from typing import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
from enum import Enum
|
4 |
|
5 |
import numpy as np
|
@@ -140,6 +150,14 @@ class BaseGraphStorage(StorageNameSpace):
|
|
140 |
async def embed_nodes(self, algorithm: str) -> tuple[np.ndarray, list[str]]:
|
141 |
raise NotImplementedError("Node embedding is not used in lightrag.")
|
142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
|
144 |
class DocStatus(str, Enum):
|
145 |
"""Document processing status enum"""
|
|
|
1 |
from dataclasses import dataclass, field
|
2 |
+
from typing import (
|
3 |
+
TypedDict,
|
4 |
+
Union,
|
5 |
+
Literal,
|
6 |
+
Generic,
|
7 |
+
TypeVar,
|
8 |
+
Optional,
|
9 |
+
Dict,
|
10 |
+
Any,
|
11 |
+
List,
|
12 |
+
)
|
13 |
from enum import Enum
|
14 |
|
15 |
import numpy as np
|
|
|
150 |
async def embed_nodes(self, algorithm: str) -> tuple[np.ndarray, list[str]]:
|
151 |
raise NotImplementedError("Node embedding is not used in lightrag.")
|
152 |
|
153 |
+
async def get_all_labels(self) -> List[str]:
|
154 |
+
raise NotImplementedError
|
155 |
+
|
156 |
+
async def get_knowledge_graph(
|
157 |
+
self, node_label: str, max_depth: int = 5
|
158 |
+
) -> Dict[str, List[Dict]]:
|
159 |
+
raise NotImplementedError
|
160 |
+
|
161 |
|
162 |
class DocStatus(str, Enum):
|
163 |
"""Document processing status enum"""
|