<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Nara, Japan
* Corresponding author.
$ vitornl@amazon.co.uk (V. N. Lourenço); dubeymns@amazon.co.uk (M. Dubey); byunfei@amazon.com (Y. Bai);
audreycd@amazon.lu (A. Depeige); vivejai@amazon.lu (V. Jain)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>An Explainable Natural Language Framework for Identifying and Notifying Target Audiences In Enterprise Communication</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Vítor N. Lourenço</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mohnish Dubey</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yunfei Bai</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Audrey Depeige</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vivek Jain</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Amazon</institution>
          ,
          <addr-line>London</addr-line>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Amazon</institution>
          ,
          <addr-line>Luxembourg</addr-line>
          ,
          <country country="LU">Luxembourg</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Amazon</institution>
          ,
          <addr-line>Seattle</addr-line>
          ,
          <country country="US">United States</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Fluminense Federal University</institution>
          ,
          <addr-line>Rio de Janeiro</addr-line>
          ,
          <country country="BR">Brazil</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0003</lpage>
      <abstract>
        <p>In large-scale maintenance organizations, identifying subject matter experts and managing communications across complex entities relationships poses significant challenges - including information overload and longer response times - that traditional communication approaches fail to address efectively. We propose a novel framework that combines RDF graph databases with LLMs to process natural language queries for precise audience targeting, while providing transparent reasoning through a planning-orchestration architecture. Our solution enables communication owners to formulate intuitive queries combining concepts such as equipment, manufacturers, maintenance engineers, and facilities, delivering explainable results that maintain trust in the system while improving communication eficiency across the organization.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        In this paper, we propose a novel framework that addresses these challenges. Our solution empowers
communication owners to find any audience groups relevant to their maintenance issue through simple,
natural language queries, while providing transparent reasoning for the retrieved results. Our framework
eliminates the need for complex database operations or specialized query languages by integrating
RDF graph databases with full-text search capabilities, enabling eficient connections between user
terms and known entities, as well as facilitating complex queries across various entity relationships
(e.g., equipment, people, and sites). To bridge the gap between natural language and structured queries,
we implement dual LLM-driven workflows that transform user inputs into graph queries. Additionally,
we adopt a planning-orchestration architecture [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] that generates clear explanations of the system’s
reasoning process, ensuring transparency and enabling the user to validate the results.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Methodology</title>
      <p>The Figure 1 illustrates the system’s architecture of our solution for Amazon RME is composed of four
main components: Customer UI, AI Engines, Knowledge Base, and the proposed framework. We briefly
describe the first three components before detailing the proposed framework.</p>
      <p>
        The Customer UI provides three core functionalities: natural language query processing, construction
of formal queries, and visualization of results with reasoning explanations. The AI Engines infrastructure
layer leverages foundation models available at Amazon Bedrock (Nova Pro [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and Claude 3.5 Sonnet)
for natural language understanding and processing. The Knowledge Base consolidates RME information
from multiple internal data sources, including equipment documentation, employee profiles and roles,
and facilities data. This information is curated, transformed, and structured according to our
purposebuilt maintenance ontology. The graph database technology of choice was Amazon Neptune as it
supports both RDF graph storage with reasoning capabilities and scalable graph analytics. Further, we
integrate the knowledge graph with Amazon’s OpenSearch Service to enable eficient entity search
using the full-text search functionality, while maintaining the synchronization between the graph
database and search index through an event-driven architecture.
2.1. Proposed Framework
The proposed framework is the fourth and core component of the system’s architecture. The framework
starts processing the natural language statement formulated by the communication owner using the
planning-orchestration architecture, which acts as an intelligent workflow orchestrator. The goal is to
evaluate the users’ query – to establish an execution plan –, and orchestrating the plan along with the
execution workflows (also called agents).
      </p>
      <p>Two key aspects of translating Natural Language (NL) to any query language are interpreting and
understanding the key terms – NL representations of existing entities contained in the NL statement –
and the relationships among them. The proposed framework relies on two architectural components
responsible for these tasks. The Named Entity Recognition (NER) workflow component identifies the key
terms and aligns them with their corresponding existing entities. The Formal Query Formulation (FQF)
workflow formally establishes the relationships among these entities as expressed in the NL statement.</p>
      <p>For the NER workflow, we adopt a prompt-based approach for identifying key terms using Amazon
Nova Pro as the foundation model. The prompt uses few-shot examples and specialized tags to mark
the key terms to be processed at a later stage, and requests the model to output the original statement
augmented with the marked key terms. This approach incorporates several lessons learned in
recognizing named entities using LLMs. We highlight two key findings: 1) constraining the key terms
search space helps avoid hallucinations, and 2) using consistent markers ensures output reliability. After
obtaining the initial statement with marked key terms, we parse it using a regex expression to extract
the terms. For each term, we then proceed to find the best matching entity in the Knowledge Base ( i.e.,
the top-ranked entity label with the highest text matching score).</p>
      <p>
        The FQF workflow follows a similar architecture, using Nova Pro as its based model and few-shot
examples prompt to express the natural language statement in a formal logical formulation. Diferently
from the NER workflow, in this workflow, we use a structured output to retrieve the answer. The
output comprises of the formulation of the statement as Boolean algebra expression and a reasoning
breakdown of the formulation process. The latter output was a key finding during our research work,
where we discovered that a Chain-of-Thought [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] inspired reasoning breakdown helps to achieve more
accurate Boolean algebra formulations, while helping the reasoning explainer process. With the natural
language statement expressed in a Boolean formulation, we augment it by replacing the key terms with
their matched entities and associated classes. At this stage, the example user statement “I want to reach
out to all maintenance technicians working with Vendor X’s conveyor belts or fire alarms of model
FA123 at European sites”, would have being translated to a formal expression, as:
class: &lt;http://info.rme.amazon.dev/ontology/&gt; ; entity: &lt;http://info.rme.amazon.dev/entity/&gt;
class:JobTitle ( entity:MaintenanceTechnician ) AND class:Region ( entity:EU ) AND
( class:Equipment ( entity:ConveyorBelt ) OR class:EquipmentModel ( entity:FA123 ) ) .
      </p>
      <p>This expression is then converted to JSON Visual Query Language (jVQL) – to visually express the
query in the UI – and into SPARQL – to query Amazon Neptune and retrieve the corresponding data.</p>
      <p>While LLMs can efectively process natural language, their interpretations might not always align
with the users’ intent. For instance, in a query to “find all technicians working with vendor X in LATAM ”,
users need to verify that the system correctly identified each entity ( technicians as job title, X
as vendor, LATAM as region). In RME’s complex structure, even simple queries like “managers at
European sites” require clarity on whether the system includes only managers or also senior leadership
positions. Such validation becomes crucial in high-stakes environments where communications must
reach the right audience in a timely manner, particularly for operational updates, network actions and
safety-related messages.</p>
      <p>
        To address this need for validation, our framework implements an explainability feature based on
multi-step reasoning [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The system combines the execution plan steps with their descriptions and
intermediate outputs to generate structured, concise explanations. These explanations reveal how the
system interprets key terms, maps them to knowledge base entities, and constructs logical relationships
for formal queries, enabling users to validate decisions and refine their queries for better accuracy.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Conclusion</title>
      <p>This paper presented a novel framework that addresses audience targeting and communication
challenges in large-scale maintenance organizations. By combining RDF graph databases with LLM-driven
workflows, our solution enables natural language querying while maintaining transparency through
explainable AI techniques. The framework bridges the gap between user intent and formal queries,
demonstrating how enterprises can leverage AI capabilities without compromising explainability in
critical operational communications. Future work could extend this approach to other domains and
explore additional explainability techniques.</p>
    </sec>
    <sec id="sec-4">
      <title>Declaration on Use of Generative AI</title>
      <p>During the preparation of this work, the author(s) used Claude family models and Amazon Nova family
models to grammar and spelling check. After using these tool(s)/service(s), the author(s) reviewed and
edited the content as needed and take(s) full responsibility for the publication’s content.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>N.</given-names>
            <surname>Balasubramaniam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kauppinen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rannisto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Hiekkanen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kujala</surname>
          </string-name>
          ,
          <article-title>Transparency and explainability of ai systems: From ethical guidelines to requirements</article-title>
          ,
          <source>Information and Software Technology</source>
          <volume>159</volume>
          (
          <year>2023</year>
          )
          <article-title>107197</article-title>
          . doi:https://doi.org/10.1016/j.infsof.
          <year>2023</year>
          .
          <volume>107197</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>R.</given-names>
            <surname>Sapkota</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. I.</given-names>
            <surname>Roumeliotis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Karkee</surname>
          </string-name>
          ,
          <article-title>Ai agents vs. agentic ai: A conceptual taxonomy, applications and challenges</article-title>
          , arXiv (
          <year>2025</year>
          ). URL: https://arxiv.org/abs/2505.10468.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>A. A. G. Intelligence,</surname>
          </string-name>
          <article-title>The amazon nova family of models: Technical report</article-title>
          and model card,
          <source>arXiv</source>
          (
          <year>2025</year>
          ). URL: https://arxiv.org/abs/2506.12103.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.</given-names>
            <surname>Wei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Schuurmans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Bosma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Ichter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Xia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. H.</given-names>
            <surname>Chi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <article-title>Chainof-thought prompting elicits reasoning in large language models</article-title>
          ,
          <source>in: Proceedings of the 36th International Conference on Neural Information Processing Systems</source>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>B.</given-names>
            <surname>Paranjape</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lundberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Hajishirzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zettlemoyer</surname>
          </string-name>
          , M. T. Ribeiro, Art:
          <article-title>Automatic multistep reasoning and tool-use for large language models</article-title>
          ,
          <year>2023</year>
          . URL: https://arxiv.org/abs/2303.09014. arXiv:
          <volume>2303</volume>
          .
          <fpage>09014</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>