ArnoChen
commited on
Commit
·
93e01b6
1
Parent(s):
da9b47e
format
Browse files- lightrag/api/graph_viewer_webui/eslint.config.js +0 -1
- lightrag/api/graph_viewer_webui/public/vite.svg +1 -1
- lightrag/api/graph_viewer_webui/src/App.tsx +1 -1
- lightrag/api/graph_viewer_webui/src/components/FocusOnNode.tsx +1 -1
- lightrag/api/graph_viewer_webui/src/components/GraphControl.tsx +0 -1
- lightrag/api/graph_viewer_webui/src/hooks/useTheme.tsx +1 -1
- lightrag/api/graph_viewer_webui/src/index.css +1 -1
- lightrag/api/graph_viewer_webui/src/lib/constants.ts +1 -1
- lightrag/api/graph_viewer_webui/vite.config.ts +1 -1
- lightrag/api/lightrag_server.py +0 -1
- lightrag/kg/neo4j_impl.py +1 -1
lightrag/api/graph_viewer_webui/eslint.config.js
CHANGED
@@ -31,4 +31,3 @@ export default tseslint.config({ ignores: ['dist'] }, prettier, {
|
|
31 |
'@typescript-eslint/no-explicit-any': ['off']
|
32 |
}
|
33 |
})
|
34 |
-
|
|
|
31 |
'@typescript-eslint/no-explicit-any': ['off']
|
32 |
}
|
33 |
})
|
|
lightrag/api/graph_viewer_webui/public/vite.svg
CHANGED
|
|
lightrag/api/graph_viewer_webui/src/App.tsx
CHANGED
@@ -11,4 +11,4 @@ function App() {
|
|
11 |
)
|
12 |
}
|
13 |
|
14 |
-
export default App
|
|
|
11 |
)
|
12 |
}
|
13 |
|
14 |
+
export default App
|
lightrag/api/graph_viewer_webui/src/components/FocusOnNode.tsx
CHANGED
@@ -24,4 +24,4 @@ const FocusOnNode = ({ node, move }: { node: string | null; move?: boolean }) =>
|
|
24 |
return null
|
25 |
}
|
26 |
|
27 |
-
export default FocusOnNode
|
|
|
24 |
return null
|
25 |
}
|
26 |
|
27 |
+
export default FocusOnNode
|
lightrag/api/graph_viewer_webui/src/components/GraphControl.tsx
CHANGED
@@ -191,4 +191,3 @@ const GraphControl = ({
|
|
191 |
}
|
192 |
|
193 |
export default GraphControl
|
194 |
-
|
|
|
191 |
}
|
192 |
|
193 |
export default GraphControl
|
|
lightrag/api/graph_viewer_webui/src/hooks/useTheme.tsx
CHANGED
@@ -9,4 +9,4 @@ const useTheme = () => {
|
|
9 |
return context
|
10 |
}
|
11 |
|
12 |
-
export default useTheme
|
|
|
9 |
return context
|
10 |
}
|
11 |
|
12 |
+
export default useTheme
|
lightrag/api/graph_viewer_webui/src/index.css
CHANGED
@@ -176,4 +176,4 @@
|
|
176 |
body {
|
177 |
@apply bg-background text-foreground;
|
178 |
}
|
179 |
-
}
|
|
|
176 |
body {
|
177 |
@apply bg-background text-foreground;
|
178 |
}
|
179 |
+
}
|
lightrag/api/graph_viewer_webui/src/lib/constants.ts
CHANGED
@@ -16,4 +16,4 @@ export const edgeColorHighlighted = '#B2EBF2'
|
|
16 |
export const searchResultLimit = 20
|
17 |
|
18 |
export const minNodeSize = 4
|
19 |
-
export const maxNodeSize = 20
|
|
|
16 |
export const searchResultLimit = 20
|
17 |
|
18 |
export const minNodeSize = 4
|
19 |
+
export const maxNodeSize = 20
|
lightrag/api/graph_viewer_webui/vite.config.ts
CHANGED
@@ -13,4 +13,4 @@ export default defineConfig({
|
|
13 |
}
|
14 |
},
|
15 |
base: './'
|
16 |
-
})
|
|
|
13 |
}
|
14 |
},
|
15 |
base: './'
|
16 |
+
})
|
lightrag/api/lightrag_server.py
CHANGED
@@ -123,7 +123,6 @@ if mongo_uri:
|
|
123 |
rag_storage_config.DOC_STATUS_STORAGE = "MongoKVStorage"
|
124 |
|
125 |
|
126 |
-
|
127 |
def get_default_host(binding_type: str) -> str:
|
128 |
default_hosts = {
|
129 |
"ollama": os.getenv("LLM_BINDING_HOST", "http://localhost:11434"),
|
|
|
123 |
rag_storage_config.DOC_STATUS_STORAGE = "MongoKVStorage"
|
124 |
|
125 |
|
|
|
126 |
def get_default_host(binding_type: str) -> str:
|
127 |
default_hosts = {
|
128 |
"ollama": os.getenv("LLM_BINDING_HOST", "http://localhost:11434"),
|
lightrag/kg/neo4j_impl.py
CHANGED
@@ -383,7 +383,7 @@ class Neo4JStorage(BaseGraphStorage):
|
|
383 |
async with self._driver.session(database=self._DATABASE) as session:
|
384 |
try:
|
385 |
main_query = ""
|
386 |
-
if label ==
|
387 |
main_query = """
|
388 |
MATCH (n)
|
389 |
WITH collect(DISTINCT n) AS nodes
|
|
|
383 |
async with self._driver.session(database=self._DATABASE) as session:
|
384 |
try:
|
385 |
main_query = ""
|
386 |
+
if label == "*":
|
387 |
main_query = """
|
388 |
MATCH (n)
|
389 |
WITH collect(DISTINCT n) AS nodes
|