RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Feat(nlp): add "怎么办" pattern to question word removal (#10284)
Liu An9e323a93510d
diff --git a/rag/nlp/query.py b/rag/nlp/query.pyindex b708ff490a..68d2d29799 100644--- a/rag/nlp/query.py+++ b/rag/nlp/query.py@@ -56,7 +56,7 @@ class FulltextQueryer:def rmWWW(txt):patts = [(- r"是*(什么样的|哪家|一下|那家|请问|啥样|咋样了|什么时候|何时|何地|何人|是否|是不是|多少|哪里|怎么|哪儿|怎么样|如何|哪些|是啥|啥是|啊|吗|呢|吧|咋|什么|有没有|呀|谁|哪位|哪个)是*",+ r"是*(怎么办|什么样的|哪家|一下|那家|请问|啥样|咋样了|什么时候|何时|何地|何人|是否|是不是|多少|哪里|怎么|哪儿|怎么样|如何|哪些|是啥|啥是|啊|吗|呢|吧|咋|什么|有没有|呀|谁|哪位|哪个)是*","",),(r"(^| )(what|who|how|which|where|why)('re|'s)? ", " "),