From 300a092132254f0f80c91d22e034411eadab38cc Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 18 Apr 2025 17:46:05 +0800 Subject: [PATCH] Increase the threshold value of enabling middle content search. --- lightrag_webui/src/components/graph/GraphLabels.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag_webui/src/components/graph/GraphLabels.tsx b/lightrag_webui/src/components/graph/GraphLabels.tsx index 2b1e3cd7..9321a14e 100644 --- a/lightrag_webui/src/components/graph/GraphLabels.tsx +++ b/lightrag_webui/src/components/graph/GraphLabels.tsx @@ -51,7 +51,7 @@ const GraphLabels = () => { // Add middle-content matching if results are few // This enables matching content in the middle of text, not just from the beginning - if (result.length < 5) { + if (result.length < 15) { // Get already matched labels to avoid duplicates const matchedLabels = new Set(result)