DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
chore(lightrag): upgrade native SDK to 1.5.7
NoxsMediade483d6554f6
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 2f5b2edfd..bf2f9f481 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -263,7 +263,7 @@ jobs:- name: Install optional LightRAG SDKif: matrix.python-version == '3.12'- run: pip install "lightrag-hku==1.5.7rc2"+ run: pip install "lightrag-hku==1.5.7"- name: Install optional GraphRAG SDKif: matrix.python-version == '3.12'diff --git a/deeptutor/services/rag/pipelines/lightrag/engine.py b/deeptutor/services/rag/pipelines/lightrag/engine.pyindex 3b5f2cb85..6850bd0b8 100644--- a/deeptutor/services/rag/pipelines/lightrag/engine.py+++ b/deeptutor/services/rag/pipelines/lightrag/engine.py@@ -25,7 +25,7 @@ from .ingress import IngressError, StagedDocument, pending_rootfrom .worker import OwnerLoopBridgeLIGHTRAG_DISTRIBUTION = "lightrag-hku"-LIGHTRAG_VERSION = "1.5.7rc2"+LIGHTRAG_VERSION = "1.5.7"PARSER_ENGINE = "deeptutor"diff --git a/pyproject.toml b/pyproject.tomlindex 3b2241f60..966ce5a80 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -252,10 +252,10 @@ math-animator = ["manim>=0.19.0"]graphrag = ["graphrag>=3.0.1,<4.0.0; python_version < '3.14'"]# Built-in LightRAG provider. The exact release is intentional: the adapter-# isolates a private rc2 source-resolver seam and locks it with smoke tests.+# isolates a private source-resolver seam and locks it with smoke tests.# MinerU remains an independently selected DeepTutor parser and is not a# transitive dependency of this extra.-rag-lightrag = ["lightrag-hku==1.5.7rc2"]+rag-lightrag = ["lightrag-hku==1.5.7"]# Optional cross-encoder reranker for the default LlamaIndex engine. The# sentence-transformers/torch stack is heavy and model-dependent, so it staysdiff --git a/tests/services/rag/test_lightrag_native_smoke.py b/tests/services/rag/test_lightrag_native_smoke.pyindex 18dc0139a..12c315216 100644--- a/tests/services/rag/test_lightrag_native_smoke.py+++ b/tests/services/rag/test_lightrag_native_smoke.py@@ -17,9 +17,9 @@ from deeptutor.services.rag.pipelines.lightrag import engine, ingress, storageasync def _fake_llm(_prompt, **_kwargs) -> str:- # This superset satisfies rc2's table/equation analysis schemas. Entity- # extraction may validly produce zero records; the document still reaches- # PROCESSED with real parser, chunk, storage and embedding code.+ # This superset satisfies the stable SDK's table/equation analysis schemas.+ # Entity extraction may validly produce zero records; the document still+ # reaches PROCESSED with real parser, chunk, storage and embedding code.return '{"name":"fixture","description":"fixture analysis","equation":"x^2","type":"Other"}'@@ -60,7 +60,7 @@ async def _process(working_dir: Path, staged: ingress.StagedDocument) -> dict:await engine.finalize(rag, cancel_pending=failed)-def test_real_rc2_raw_bridge_reaches_processed(monkeypatch, tmp_path: Path) -> None:+def test_real_stable_raw_bridge_reaches_processed(monkeypatch, tmp_path: Path) -> None:_configure_real_sdk(monkeypatch)working = tmp_path / "version-1"working.mkdir()@@ -95,7 +95,7 @@ def test_real_rc2_raw_bridge_reaches_processed(monkeypatch, tmp_path: Path) -> Nassert meta["parser_inputs"] == [{"engine": "text_only", "parser_signature": "fixture-parser"}]-def test_real_rc2_sidecar_bridge_reaches_processed(monkeypatch, tmp_path: Path) -> None:+def test_real_stable_sidecar_bridge_reaches_processed(monkeypatch, tmp_path: Path) -> None:_configure_real_sdk(monkeypatch)working = tmp_path / "version-1"working.mkdir()@@ -140,7 +140,7 @@ def test_real_rc2_sidecar_bridge_reaches_processed(monkeypatch, tmp_path: Path)assert list((ingress.pending_root(working) / "__parsed__").glob("paper.pdf"))-def test_real_rc2_append_uses_only_new_doc_and_links_existing_entity(+def test_real_stable_append_uses_only_new_doc_and_links_existing_entity(monkeypatch, tmp_path: Path) -> None:async def entity_llm(prompt, **_kwargs) -> str:diff --git a/tests/services/rag/test_lightrag_pipeline.py b/tests/services/rag/test_lightrag_pipeline.pyindex a1dc03be0..d7bec66de 100644--- a/tests/services/rag/test_lightrag_pipeline.py+++ b/tests/services/rag/test_lightrag_pipeline.py@@ -278,8 +278,8 @@ def test_build_rag_keeps_indexing_snapshot_out_of_embedding_kwargs(@REQUIRES_LIGHTRAG-def test_distribution_identity_is_exact_rc2() -> None:- assert engine.installed_version() == "1.5.7rc2"+def test_distribution_identity_is_exact_stable() -> None:+ assert engine.installed_version() == "1.5.7"assert engine.LIGHTRAG_DISTRIBUTION == "lightrag-hku"@@ -293,7 +293,7 @@ def test_preflight_rejects_a_different_installed_lightrag_version(monkeypatch) -report = preflight._lightrag_preflight()package = next(check for check in report["checks"] if check["key"] == "package")assert package["ok"] is False- assert package["detail"] == "Found 1.5.8; required 1.5.7rc2."+ assert package["detail"] == "Found 1.5.8; required 1.5.7."def test_workspace_is_stable_and_version_specific(tmp_path: Path) -> None:@@ -603,7 +603,7 @@ def test_storage_publishes_schema_two_metadata(tmp_path: Path, monkeypatch) -> Nmeta = json.loads((tmp_path / "meta.json").read_text(encoding="utf-8"))assert meta["state"] == "published"assert meta["lightrag_adapter_schema"] == 2- assert meta["lightrag_package_version"] == "1.5.7rc2"+ assert meta["lightrag_package_version"] == "1.5.7"assert meta["parser_inputs"] == []assert storage.meta_is_native_published(tmp_path) is Truediff --git a/tests/test_packaging_metadata.py b/tests/test_packaging_metadata.pyindex d4a600e25..67854015a 100644--- a/tests/test_packaging_metadata.py+++ b/tests/test_packaging_metadata.py@@ -170,7 +170,7 @@ def test_lightrag_extra_is_the_exact_native_sdk_without_parser_transitives() ->extras = tomllib.load(file)["project"]["optional-dependencies"]requirements = extras["rag-lightrag"]- assert requirements == ["lightrag-hku==1.5.7rc2"]+ assert requirements == ["lightrag-hku==1.5.7"]names = [requirement.lower().split("=", 1)[0].split("<", 1)[0] for requirement in requirements]assert "raganything" not in namesassert "mineru" not in names