Refactor graph search and add local Vite config.
- Simplify graph search parameters in API - Add inclusive search and min degree options - Update Vite config for local development - Enhance graph query endpoint in web UI - Add new Vite config file for local setup
This commit is contained in:
@@ -504,7 +504,7 @@ class LightRAG:
|
||||
return text
|
||||
|
||||
async def get_knowledge_graph(
|
||||
self, node_label: str, max_depth: int, search_mode: str = "exact", min_degree: int = 0
|
||||
self, node_label: str, max_depth: int, inclusive: bool = False, min_degree: int = 0
|
||||
) -> KnowledgeGraph:
|
||||
"""Get knowledge graph for a given label
|
||||
|
||||
@@ -520,8 +520,6 @@ class LightRAG:
|
||||
return await self.chunk_entity_relation_graph.get_knowledge_graph(
|
||||
node_label=node_label,
|
||||
max_depth=max_depth,
|
||||
search_mode=search_mode,
|
||||
min_degree=min_degree
|
||||
)
|
||||
|
||||
def _get_storage_class(self, storage_name: str) -> Callable[..., Any]:
|
||||
|
Reference in New Issue
Block a user