withSourceId

Start building an artifact with its source identity. Entry point for the strongly-typed builder used from Java:

IngestedArtifact artifact = IngestedArtifact
.withSourceId("doc-1")
.withLocator(new UriLocator("https://example.com/doc"))
.withText("extracted text")
.withTrust(AuthorityTier.SECONDARY); // optional

Return

Builder step requiring a locator

Parameters

sourceId

The stable source key for this artifact