searches the current version of every section · esc to close

26.07 Storage Modulev0.1.48 → v0.1.49

Changed in v0.1.49 (2026-04-18): artifact can be string for other Artifact filed now

+3 1
v0.1.48v0.1.49
3232
33`Storage` MUST contain the full information of artifacts.33`Storage` MUST contain the full information of artifacts.
3434
35When a `storage` value is provided, the `artifact` member of the `Embedding` object MAY be a `string` to reference the artifact in the storage.35When a `storage` value is provided, any member whose value is of type `Artifact` MAY be a `string`. When it is a `string`, it MUST be the `id` of an `Artifact` in `Storage` and MUST be resolved accordingly.
36
37In particular, when a `storage` value is provided, the `artifact` member of the `Embedding` object MAY be a `string` to reference the artifact in `Storage`.
36```ts38```ts
37 interface Embedding {39 interface Embedding {
38 artifact: Artifact | string // REQUIRED40 artifact: Artifact | string // REQUIRED
39 // ...41 // ...
40 }42 }
41```43```
42where44where
43- The value of `artifact` MUST be either of type `Artifact` or a `string`. When it is a `string`, it MUST be the `id` of an `Artifact` in `Storage`. If `Storage` is not provided or the relevant `Artifact` is missing from `Storage`, an `Embedding` whose `artifact` is of type `string` MUST be discarded.45- The value of `artifact` MUST be either of type `Artifact` or a `string`. When it is a `string`, it MUST be the `id` of an `Artifact` in `Storage`. If `Storage` is not provided or the relevant `Artifact` is missing from `Storage`, an `Embedding` whose `artifact` is of type `string` MUST be discarded.
4446
45An `Embedding` whose `artifact` is of type `string` MUST always be resolved in favor of the `Artifact` in `Storage`, regardless of the `storageOverwrite` value.47An `Embedding` whose `artifact` is of type `string` MUST always be resolved in favor of the `Artifact` in `Storage`, regardless of the `storageOverwrite` value.