Manuscript Offprint

arXiv:2610.31519

From Prompt Rules to Golden Data Model: Production-Scale Generation of Personalized, Compliant Pharmaceutical Claims

Suyash Mishra, Qiang Li, Subhabrata Adak, Upender Phogat, Srikanth Patil, Satyanarayan Pati

Abstract

Large language models (LLMs) are increasingly used to generate domain-specific commercial & medical content (e.g., claims, statements, and promotional phrases) in regulated industries such as pharmaceuticals. However, ensuring its regulatory compliance, factual accuracy, and audience-specific personalization remains a major challenge. We report a production case study asking whether moving compliance and personalization signal from prompt-level rules into retrieval-time structured context improves pharmaceutical claims generation, using Composer, a deployed internal tool built on a Golden Data Model (GDM) of 1,867 pharmaceutical claims spanning four products. The GDM integrates claim metadata, references, audience labels, material type, usage history, Match Text Variant (MTV) links, and a six-dimension quality score (6C). Across six product-audience segments, the context pipeline improves intended indication (+29%), intended content type (+62%) and intended target audience (+67%), 6C quality score (+86%), and claim reuse (+34%). Production log analysis over the deployment period shows a 29.5% reduction in weekly API cost. We report this as descriptive deployment evidence. This work is a systems and data-architecture contribution: it shows that in a regulated, high-stakes domain, restructuring claim data for retrieval-time filtering is a more scalable lever than expanding prompt-level rules, and documents the engineering path data cleaning, graph linking, and quality scoring Check our Composer Video.

1 Introduction

AI-generated text has been detected increasingly in medical literature (Wolfrath et al., 2026). A 2025 market forecast projected the AI in medical writing market to reach USD 1,760.02 million by 2030, with a CAGR of 12.52% from 2025 to 2030 (Grand View Research, 2025). However, their deployment in regulated domains such as healthcare and pharmaceuticals remains constrained by persistent concerns around hallucination, regulatory compliance, and limited controllability (Hager et al., 2024).

Pharmacy content generation is particularly challenging. Claims must be: (i) factually grounded in approved sources, (ii) compliant with regulatory constraints, (iii) tailored to specific audiences such as healthcare professionals (HCPs) or patients (Barrias et al., 2024).

Our baseline relies on rule-based prompting and strict templates. In our deployment, this baseline often failed to produce personalized and contextually appropriate outputs. As observed in real-world systems, rule-based approaches can lead to mismatches in target audience, low relevance, and overuse of inactive or general claims.

In contrast, context-rich approaches leverage structured data, usage history, and semantic relationships to guide generation. However, the effectiveness of such approaches has not been experimentally studied. In this paper, we address following core research question:

Does shifting compliance and personalization signals from prompt-level rules to structured retrieval-time data improve the quality and production efficiency of pharmaceutical claim generation in a deployed system?

To answer this, we propose a golden data model schema that transforms fragmented claim data into a structured, graph-based representation with quality-aware filtering. We further evaluate rule-based and context-based generation pipelines across multiple dimensions, including compliance (e.g., prohibited words / phrases, target indication / type, MTV-Variant claims reuse), personalization (e.g. target audience), and quality (6C scores). We note that the context pipeline does not eliminate rules outright, claim-level guardrails and prohibited-word constraints still persist, but relocates them from static, product-level prompt text.

Figure

MT = matched original claim · MTV = matched text variant · 6C = six-dimension claim quality score

Composer (LLM): Generates diverse, context-aware search queries and composes final outputs.

Golden Claims DB: DB of approved claims with usage metadata (MT, MTV).

Hybrid Search: Combines semantic search and filters for precise retrieval.

Re-ranking:

Orders results by

usage count & 6C to

prioritize high-impact

claims.

MT / MTV:

Matched original claims

/ its variant

claim types.

Figure 1: Business Solution Map for Composer Tool Compliant Claims Generation.

to claim-level, retrieval-gated metadata.

References (10)