Assemble Each RAG Generation Prompt from a Base Prompt Plus the Rules Each Question Needs
part of the generation brick of Enterprise Document Intelligence, a series that builds an enterprise RAG system from four bricks: document parsing, question parsing, retrieval, and generation. Article 8A (the answer contract) declared the typed schema family and the ANSWER_REGISTRY that maps each answer shape to its schema. This part builds the call that fills…