# PromptRegistry

- File ID: file:ha7eft:promptregistry-cs
- Path: NexusReader.Infrastructure/Services/PromptRegistry.cs
- Role: service
- Layer: infrastructure

## Purpose

Holds centralized, reusable LLM prompt templates and schemas used by the infrastructure layer for knowledge extraction, graph extraction, summary/quiz generation, and KM segmentation.

## Key Details

Contains strict LLM prompt templates that require minified JSON outputs and enforce constraints (label length, max counts, code-block handling) used by higher-level services that call LLMs.

## Symbols

- PromptRegistry: Holds centralized, reusable LLM prompt templates and schemas used by the infrastructure layer for knowledge extraction, graph extraction, summary/quiz generation, and KM segmentation.
- PromptRegistry: Static registry class containing constant prompt strings for LLM-driven extraction and summarization tasks.

## Dependencies

- No resolved dependencies.

## Calls

- No resolved calls.

## Coverage

- Symbols: 2
- Executable symbols: 0
- Executable symbols with control flow: 0
- Grounded edges: 2
- Unresolved references: 0
- Control-flow fragments: 0
- Unresolved jumps: 0
- Unsupported constructs: 0
- Control-flow coverage: 100%
- Required diagrams: 1
- Generated diagrams: 1

## Diagrams

### PromptRegistry Neighborhood

```mermaid
flowchart LR
    class_1x9y5vk_promptregistry("PromptRegistry")
    file_ha7eft_promptregistry_cs("PromptRegistry")
    type_16wdv5z_promptregistry[/"PromptRegistry"/]
```

## Diagram Validation

- Status: pass
