DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
Merge PR #1488 empty KB bootstrap
Bingxi Zhao (Frank)6ad2dab58271
diff --cc tests/knowledge/test_document_adder_provider.pyindex f0fae7a33,c125d4969..0c4ec148e--- a/tests/knowledge/test_document_adder_provider.py+++ b/tests/knowledge/test_document_adder_provider.py@@@ -119,11 -92,31 +119,34 @@@ def test_document_adder_allows_empty_kbassert adder.rag_provider == providerassert adder.raw_dir.is_dir()+ if provider == "lightrag":+ assert adder.accepted_indexing_snapshot.extract.config.model == "fixture"+ assert adder.accepted_indexing_snapshot.vlm is None+ def test_document_adder_rejects_unready_existing_version(tmp_path: Path) -> None:+ kb_dir = tmp_path / "kb"+ kb_dir.mkdir()+ version_dir = kb_dir / "version-1"+ version_dir.mkdir()+ (version_dir / "docstore.json").write_text("{}", encoding="utf-8")+ (version_dir / "meta.json").write_text(+ json.dumps({"provider": "llamaindex", "signature": "sig", "version": "version-1"}),+ encoding="utf-8",+ )++ with pytest.raises(ValueError, match="not initialized"):+ DocumentAdder(kb_name="kb", base_dir=str(tmp_path), rag_provider="llamaindex")+++ def test_document_adder_rejects_legacy_rag_storage(tmp_path: Path) -> None:+ kb_dir = tmp_path / "kb"+ (kb_dir / "rag_storage").mkdir(parents=True)++ with pytest.raises(ValueError, match="legacy index format"):+ DocumentAdder(kb_name="kb", base_dir=str(tmp_path), rag_provider="llamaindex")++def test_process_new_documents_returns_failures_without_marking_processed(monkeypatch, tmp_path: Path) -> None: