Document Generator Service

The Document Generator Service (MILTON.DocumentGenerator) is responsible for the orchestration and processing of MILTON’s document generation pipeline. It utilizes Wolverine Sagas for robust workflow management and asynchronous background processing.

Architecture & Responsibilities

This microservice acts as the intelligent worker engine that takes templates, repository context, and requirement specs to generate rich documentation (SRS, SVD, STD, STR).

Key Components

  • DocumentProcessingSaga: Handles the sequential or parallel processing of document blocks (e.g., Scanner, Requirement, TestCase). It tracks progress and state across complex operations, persisting state tracking in PostgreSQL and notifying the frontend real-time via SignalR hubs.
  • SagaBlockBridgeHandler: Bridges the main document processing sequence by running on dedicated queues, decrypting required API keys, applying correct LLM configurations, and delegating specific text generation or clustering requests.
  • DirectBlockProcessingHandler: Worker responsible for applying specific algorithms (like chunking, calling AI models, rendering markdown or mermaid syntax) directly onto the parsed document sections.

Technology Stack

  • Messaging & Sagas: Wolverine
  • Configuration: Managed globally via MILTON.ServiceDefaults and Aspire configurations.

0 items under this folder.