Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

enable 3 char words to finegrind tokenize (#2210)

Kevin Hu6d232f1bdbea
diff --git a/rag/nlp/query.py b/rag/nlp/query.py
index ccd1a5af2c..a8d2d0b596 100644
--- a/rag/nlp/query.py
+++ b/rag/nlp/query.py
@@ -83,7 +83,7 @@ class EsQueryer:
), tks
def need_fine_grained_tokenize(tk):
- if len(tk) < 4:
+ if len(tk) < 3:
return False
if re.match(r"[0-9a-z\.\+#_\*-]+$", tk):
return False