yangdx
commited on
Commit
·
311e37f
1
Parent(s):
ff62e6e
Increase the threshold value of enabling middle content search.
Browse files
lightrag_webui/src/components/graph/GraphLabels.tsx
CHANGED
@@ -51,7 +51,7 @@ const GraphLabels = () => {
|
|
51 |
|
52 |
// Add middle-content matching if results are few
|
53 |
// This enables matching content in the middle of text, not just from the beginning
|
54 |
-
if (result.length <
|
55 |
// Get already matched labels to avoid duplicates
|
56 |
const matchedLabels = new Set(result)
|
57 |
|
|
|
51 |
|
52 |
// Add middle-content matching if results are few
|
53 |
// This enables matching content in the middle of text, not just from the beginning
|
54 |
+
if (result.length < 15) {
|
55 |
// Get already matched labels to avoid duplicates
|
56 |
const matchedLabels = new Set(result)
|
57 |
|