Skip to content

parseEnrichment

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/docs-pr/page-regen.service.ts

Parse a stored AI_ENRICHMENT document body into an EntityEnrichment.

Mirrors the canonical parseEnrichmentContent in technical-docs/technical-docs-materializer.service.ts (kept local so this module stays decoupled from the heavy materializer graph). The enrichment format is a set of ### <section> blocks; unstructured text falls back to a description.

Signature

ts
function parseEnrichment(raw: string): EntityEnrichment | undefined

Parameters

NameType
rawstring

Returns: EntityEnrichment | undefined

Was this page helpful?

Download as PDF