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
Fix typo (#3319)
Zhichang Yu7c486ee3f99a
diff --git a/api/apps/document_app.py b/api/apps/document_app.pyindex c6446f3d60..9699f12621 100644--- a/api/apps/document_app.py+++ b/api/apps/document_app.py@@ -39,7 +39,7 @@ from api.utils.api_utils import get_json_resultfrom rag.utils.storage_factory import STORAGE_IMPLfrom api.utils.file_utils import filename_type, thumbnailfrom api.utils.web_utils import html2pdf, is_valid_url-from api.contants import IMG_BASE64_PREFIX+from api.constants import IMG_BASE64_PREFIX@manager.route('/upload', methods=['POST'])diff --git a/api/contants.py b/api/constants.pysimilarity index 100%rename from api/contants.pyrename to api/constants.pydiff --git a/api/utils/file_utils.py b/api/utils/file_utils.pyindex 06fa36e996..2dedcdc7bc 100644--- a/api/utils/file_utils.py+++ b/api/utils/file_utils.py@@ -25,7 +25,7 @@ from cachetools import LRUCache, cachedfrom ruamel.yaml import YAMLfrom api.db import FileType-from api.contants import IMG_BASE64_PREFIX+from api.constants import IMG_BASE64_PREFIXPROJECT_BASE = os.getenv("RAG_PROJECT_BASE") or os.getenv("RAG_DEPLOY_BASE")RAG_BASE = os.getenv("RAG_BASE")@@ -71,7 +71,7 @@ def get_home_cache_dir():dir = os.path.join(os.path.expanduser('~'), ".ragflow")try:os.mkdir(dir)- except OSError as error:+ except OSError:passreturn dir@@ -193,7 +193,7 @@ def thumbnail_img(filename, blob):presentation.slides[0].get_thumbnail(0.03, 0.03).save(buffered, drawing.imaging.ImageFormat.png)return buffered.getvalue()- except Exception as e:+ except Exception:passreturn None