Member Junction
    Preparing search index...

    Artifact-storage seam (plan §11). The serialized model artifact is persisted out-of-row and referenced by file id on the MJ: ML Models row (ArtifactFileID). The production implementation writes a MJ: Files record; tests use an in-memory map.

    interface IArtifactStore {
        save(
            bytes: Uint8Array,
            name: string,
            contextUser?: UserInfo,
        ): Promise<string>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Persist the serialized artifact bytes under a name and return the storage file id to record on the model.

      Parameters

      • bytes: Uint8Array

        the serialized model artifact

      • name: string

        a human-readable artifact name (e.g. model-<pipeline>-v<version>.bin)

      • OptionalcontextUser: UserInfo

        request user — required on the server for isolation/audit

      Returns Promise<string>

      the file id to store in MLModel.ArtifactFileID