feat(knowledge): add document creation and import

This commit is contained in:
yangziyu-hhh
2026-06-22 17:58:33 +08:00
parent 84d6848e67
commit f1cdc2d2cc
4 changed files with 5 additions and 3 deletions

View File

@@ -280,6 +280,7 @@ def test_import_documents_skip_overwrite_and_failures(tmp_path):
def test_import_documents_rejects_large_files_and_batches(tmp_path):
svc, manager = service(tmp_path)
(tmp_path / "knowledge/notes").mkdir()
assert svc.MAX_IMPORT_TOTAL_SIZE == 200 * 1024 * 1024
too_large = svc.dispatch("import_documents", {
"target_category": "notes",