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 test cases (#3718)
Jin Haicdae8d28fe20
diff --git a/README.md b/README.mdindex 63160e255f..1314ad7e80 100644--- a/README.md+++ b/README.md@@ -333,8 +333,7 @@ docker build -f Dockerfile -t infiniflow/ragflow:dev .cd webnpm install --force```-7. Configure frontend to update `proxy.target` in **.umirc.ts** to `http://127.0.0.1:9380`:-8. Launch frontend service:+7. Launch frontend service:```bashnpm run dev```diff --git a/README_id.md b/README_id.mdindex 0b739d4254..a11f51a481 100644--- a/README_id.md+++ b/README_id.md@@ -307,9 +307,8 @@ docker build -f Dockerfile -t infiniflow/ragflow:dev .```bashcd webnpm install --force- ```-7. Konfigurasikan frontend untuk memperbarui `proxy.target` di **.umirc.ts** menjadi `http://127.0.0.1:9380`:-8. Jalankan aplikasi frontend:+ ```+7. Jalankan aplikasi frontend:```bashnpm run dev```diff --git a/README_ja.md b/README_ja.mdindex 28f8ccf2c5..1d2afc233a 100644--- a/README_ja.md+++ b/README_ja.md@@ -289,8 +289,7 @@ docker build -f Dockerfile -t infiniflow/ragflow:dev .cd webnpm install --force```-7. フロントエンドを設定し、**.umirc.ts** の `proxy.target` を `http://127.0.0.1:9380` に更新します:-8. フロントエンドサービスを起動する:+7. フロントエンドサービスを起動する:```bashnpm run dev```diff --git a/README_ko.md b/README_ko.mdindex f558f4c75d..923b10362a 100644--- a/README_ko.md+++ b/README_ko.md@@ -291,8 +291,7 @@ docker build -f Dockerfile -t infiniflow/ragflow:dev .cd webnpm install --force```-7. **.umirc.ts** 에서 `proxy.target` 을 `http://127.0.0.1:9380` 으로 업데이트합니다:-8. 프론트엔드 서비스를 시작합니다:+7. 프론트엔드 서비스를 시작합니다:```bashnpm run dev```diff --git a/README_zh.md b/README_zh.mdindex e06e7feae6..f2710d81e5 100644--- a/README_zh.md+++ b/README_zh.md@@ -296,8 +296,7 @@ docker build -f Dockerfile -t infiniflow/ragflow:dev .cd webnpm install --force```-7. 配置前端,将 **.umirc.ts** 的 `proxy.target` 更新为 `http://127.0.0.1:9380`:-8. 启动前端服务:+7. 启动前端服务:```bashnpm run dev```diff --git a/sdk/python/test/conftest.py b/sdk/python/test/conftest.pyindex 511252271a..cd4df05f38 100644--- a/sdk/python/test/conftest.py+++ b/sdk/python/test/conftest.py@@ -40,7 +40,10 @@ def login():@pytest.fixture(scope="session")def get_api_key_fixture():- register()+ try:+ register()+ except Exception as e:+ print(e)auth = login()url = HOST_ADDRESS + "/v1/system/new_token"auth = {"Authorization": auth}diff --git a/sdk/python/test/test_frontend_api/test_dataset.py b/sdk/python/test/test_frontend_api/test_dataset.pyindex c6e62fc2a7..f9421d2bea 100644--- a/sdk/python/test/test_frontend_api/test_dataset.py+++ b/sdk/python/test/test_frontend_api/test_dataset.py@@ -14,8 +14,8 @@ def test_dataset(get_auth):dataset_list = []while True:res = list_dataset(get_auth, page_number)- data = res.get("data")- for item in data.get("kbs"):+ data = res.get("data").get("kbs")+ for item in data:dataset_id = item.get("id")dataset_list.append(dataset_id)if len(dataset_list) < page_number * 150:@@ -43,8 +43,8 @@ def test_dataset_1k_dataset(get_auth):dataset_list = []while True:res = list_dataset(get_auth, page_number)- data = res.get("data")- for item in data.get("kbs"):+ data = res.get("data").get("kbs")+ for item in data:dataset_id = item.get("id")dataset_list.append(dataset_id)if len(dataset_list) < page_number * 150:@@ -66,7 +66,7 @@ def test_duplicated_name_dataset(get_auth):# list datasetres = list_dataset(get_auth, 1)- data = res.get("data")+ data = res.get("data").get("kbs")dataset_list = []pattern = r'^test_create_dataset.*'for item in data:@@ -109,7 +109,7 @@ def test_update_different_params_dataset(get_auth):dataset_list = []while True:res = list_dataset(get_auth, page_number)- data = res.get("data")+ data = res.get("data").get("kbs")for item in data:dataset_id = item.get("id")dataset_list.append(dataset_id)diff --git a/sdk/python/test/test_sdk_api/t_chunk.py b/sdk/python/test/test_sdk_api/t_chunk.pyindex 13b4c06d78..cfbfe65b07 100644--- a/sdk/python/test/test_sdk_api/t_chunk.py+++ b/sdk/python/test/test_sdk_api/t_chunk.py@@ -190,4 +190,7 @@ def test_retrieve_chunks(get_api_key_fixture):docs = ds.upload_documents(documents)doc = docs[0]doc.add_chunk(content="This is a chunk addition test")- rag.retrieve(dataset_ids=[ds.id],document_ids=[doc.id])\ No newline at end of file+ rag.retrieve(dataset_ids=[ds.id],document_ids=[doc.id])+ rag.delete_datasets(ids=[ds.id])++# test different parameters for the retrieval