# parseEnrichment

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/docs-pr/page-regen.service.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/docs-pr/page-regen.service.ts#L131)

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

| Name | Type |
|---|---|
| `raw` | `string` |

**Returns:** `EntityEnrichment | undefined`
