Feat: Add knowledge compilation workflows (#16515)

## Summary
- Add knowledge compilation template APIs, services, and builtin
template seed data
- Add advanced knowledge compile structure/artifact/RAPTOR workflow
support
- Update parsing, dataset/document APIs, and supporting services for
compilation workflows
This commit is contained in:
Kevin Hu
2026-07-02 23:22:07 +08:00
committed by GitHub
parent 7d64a78f83
commit 62f94cd59b
57 changed files with 14587 additions and 3094 deletions

View File

@@ -120,7 +120,16 @@ class FileTestModel(BaseTestModel):
db_table = "file"
_TABLES = [FileCommitTestModel, FileCommitItemTestModel, FileTestModel]
class UserTestModel(BaseTestModel):
id = CharField(max_length=32, primary_key=True)
nickname = CharField(max_length=100, null=False, index=True)
email = CharField(max_length=255, null=False)
class Meta:
db_table = "user"
_TABLES = [FileCommitTestModel, FileCommitItemTestModel, FileTestModel, UserTestModel]
sqlite_db.create_tables(_TABLES)
@@ -241,6 +250,7 @@ def _load_module(monkeypatch):
db_models_mod.FileCommit = FileCommitTestModel
db_models_mod.FileCommitItem = FileCommitItemTestModel
db_models_mod.File = FileTestModel
db_models_mod.User = UserTestModel
db_models_mod.DataBaseModel = BaseTestModel
monkeypatch.setitem(sys.modules, "api.db.db_models", db_models_mod)