Skip to content

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

Removed beartype (#3528)

Zhichang Yu5b44b99cfdb8
diff --git a/api/ragflow_server.py b/api/ragflow_server.py
index 056f056101..69218d6f0a 100644
--- a/api/ragflow_server.py
+++ b/api/ragflow_server.py
@@ -14,9 +14,9 @@
# limitations under the License.
#
-from beartype import BeartypeConf
-from beartype.claw import beartype_all # <-- you didn't sign up for this
-beartype_all(conf=BeartypeConf(violation_type=UserWarning)) # <-- emit warnings from all code
+# from beartype import BeartypeConf
+# from beartype.claw import beartype_all # <-- you didn't sign up for this
+# beartype_all(conf=BeartypeConf(violation_type=UserWarning)) # <-- emit warnings from all code
import logging
from api.utils.log_utils import initRootLogger
diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py
index 3a0a9302be..3a8972a1d8 100644
--- a/rag/svr/task_executor.py
+++ b/rag/svr/task_executor.py
@@ -12,10 +12,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-#
-from beartype import BeartypeConf
-from beartype.claw import beartype_all # <-- you didn't sign up for this
-beartype_all(conf=BeartypeConf(violation_type=UserWarning)) # <-- emit warnings from all code
+
+# from beartype import BeartypeConf
+# from beartype.claw import beartype_all # <-- you didn't sign up for this
+# beartype_all(conf=BeartypeConf(violation_type=UserWarning)) # <-- emit warnings from all code
import logging
import sys