Msazure - Create Your Own GenAI Apps
Msazure - Create Your Own GenAI Apps
Msazure - Create Your Own GenAI Apps
00 / 04 /
Introduction Building a generative AI
03 Intended audience development team
04 Executive Summary
16 AI engineer
17 Data professional
17 Domain SME
01 / 18 Data scientist/machine learning
(ML) professional
Comparing approaches: Generative
AI-enabled software development
vs. standard software development
05/
Azure AI Studio:
A comprehensive platform
02 /
Five common applications 22 Deploy generative AI responsibly
with Azure AI Studio
of building with generative AI
28 Integrated data security and privacy
03 / 06/
Select the right model Key insights and
for your use case next steps
3
Intended audience
This e-book is specifically geared
towards IT decision makers (ITDMs),
such as Chief Technology Officers (CTOs)
or Chief Information Officers (CIOs)
at companies of all sizes, including
Independent Software Vendors (ISVs),
who are interested in building an AI
application using a foundation model.
Executive Summary
Generative AI is transforming Microsoft provides a variety of courses
organizations and the people who drive designed to help data and development
them. It allows software to be more professionals enhance their AI skills.
These can be found in our
intuitive and helpful, raising employee
AI learning hub.
productivity and user satisfaction. At the
same time, generative AI poses a new set
of challenges and risks.
3. Developing with responsible AI practices: Learn about the tools and best
practices that mitigate risk and support AI safety, quality, and compliance.
02 | Five common
applications
of building with
generative AI
Generative AI-enabled applications
can be developed from scratch,
but often a faster way to gain
generative AI benefits is integrating
it into existing applications. This
can allow users to interact with
applications in new, more intuitive
ways, contextualize assistance,
and provide more relevant
information. Generative AI is, as
a result, improving applications
across the value chain from
customer contact to financial
and operational analysis.
Below are five types of applications organizations are building with generative 9
Model power
Evaluate the model’s computational Small Language
power and sophistication. This determines Models (SLMs)
its capability to handle complex datasets
and produce nuanced outputs. Higher With SLMs, which are trained on smaller
power might be required for intricate amounts of data with fewer parameters, you
tasks, impacting operational demands get the benefit of a model that can work with
and associated costs. limited computing resources, while allowing
for increased specificity. SLMs can be run
locally—an advantage for regulated industries
Time efficiency/latency
and in cases where lag time is extremely
The model’s speed is vital, especially important—and can be fine-tuned to specific
for tasks that need fast data processing tasks and work with narrow context. This can
or instant decision-making. Efficiency be an excellent choice for specific industries
not only affects performance but looking to complete a specific task. For
instance, a financial services organization can
also influences user satisfaction and
benefit from SLMs when processing claims but
operational efficiency.
wants to determine the precise training to use.
Fine-tuneability/extensibility
Take into consideration the ability to tweak the model to your specific data, as this
can be important for the extensibility and modifications necessary for your model
and the intended purposes. However, if your use case requires playing with the
weights, then choosing an open model is more appropriate. Keep in mind that
not all open models will have permissive license to build commercial applications.
Groundedness
Azure AI Content Safety-based Prompt-only-based
groundedness groundedness
The model’s generated answers are Measures how well the model's generated
evaluated based on their alignment with answers align with information from the
information from the source data, such as source data (user-defined context).
retrieved documents in RAG, question
and answering, or documents used for
summarization. The evaluation process
flags output that lacks grounding.
Relevance Coherence
The extent to which the model's How well the language model can
generated responses are pertinent produce output that flows smoothly,
and directly related to the given reads naturally, and resembles
questions. human-like language.
Fluency GPT-similarity
How well written and easy to How close the answer is to a
understand the answer is. user-provided ground truth and only
applies when you’ve supplied ground
truth and are using a generative AI
model to compare them.
13
04 | Building a generative AI
development team
Developing with generative AI
requires a hybrid approach— Preparing your data
standard software development
blended with AI expertise. Roles
for generative AI
like the AI engineer have emerged
development
to provide this connection between
Organizations can effectively prepare for
software development and AI. generative AI projects by making sure their
data is ready. Generative AI runs on data, so
At the same time, there is a partnership
it’s essential to ensure its quality so the output
between technical and business teams,
is more accurate.
with business needs driving development.
Non-technical business leaders and Prepare your relevant data
other stakeholders play focal roles in Your organization needs robust data
determining the utility and trustworthiness infrastructure to handle large volumes of
of AI applications. Their decisions are vital data and high-performance computing
in deciding whether to continue using and tasks. Data must be accessible, well-
Overall project Picks the tech Develops Iterates the Hardens for
lead stack the app prompt(s) deployment
AI Engineer
a gene
ng
Iterates processing,
Builds data i r
pipelines d chunking, and
at
indexing
l
Data
Bui
ive
tt
and outputs the domain SME)
elo
p men
Domain SME
AI engineer
AI engineers are typically central,
orchestrating the development initiative. AI engineer learning
Often, they are software developers
resources
who have been informally upskilled to
fill this role on the team. Consequently, Looking for specific AI engineer educational
resources? Get started with:
the AI engineer assumes the dual role of
a leader and an integrator, bridging the
• AI engineer certification path
gap between AI capabilities and business
• Azure AI Fundamentals
needs without the necessity to delve
deeply into data science, which is typically • Introduction to Azure AI Studio
Data professional
A critical component of building with generative AI is pulling data from business
systems and getting it to the model. The data professional is the one who builds
the pipelines that make this happen safely and efficiently. Therefore, expertise in the
nuances of data sources can be critical to create quality generative AI applications.
The data professional must also navigate the complexities of data privacy regulations
to ensure all data collection and usage comply with legal standards.
Domain SME
The domain subject matter expert (SME) collaborates closely with the AI engineer to
ensure precise data collection. They also continually monitor key performance metrics
set by the AI engineer. In generative AI development, domain SMEs tend to play a
bigger role in than in standard software or machine learning because the system
outputs are not easily validated.
Domain SMEs take on the role of evaluating the correctness of responses, which
can be time-consuming. Their role is pivotal in bridging the technical and business
aspects of AI implementations. To streamline their input, domain SMEs can work with
the rest of the team to create test prompts and ground truth answers. AI engineers
can then use Microsoft’s automated evaluation metrics to assess the application’s
response quality over time and compare performance across different models.
18
Data scientist/
machine learning (ML)
professional
Not every generative AI team has a data
scientist, but they are often present on
Looking for specific
complex and business-critical projects.
The data scientist plays an advisory role,
AI data science
responsible for developing formalized
educational resources?
test plans and setting evaluation criteria, Get started with:
which alleviates some of the domain • Microsoft Certified:
SME’s workload. Azure Data Scientist Associate
05 | Azure AI Studio:
A comprehensive
platform
McDonald’s
China transforms
Organizations need tools that simplify AI
development, allowing them more time
its operations,
to focus on big-picture business needs.
elevates service
Azure AI Studio, Microsoft’s generative AI levels with Azure AI
platform, is designed to democratize the
What was their goal?
AI development process for developers,
bringing together the models, tools, McDonald’s China needed to uplevel
services, and integrations necessary to their customer service, quality, and
begin quickly and efficiently developing operations to accommodate the growing
number of locations and the rapid pace
your own AI applications.
of innovation. They needed a way to
• 87% of organizations believe adhere to their brand mission through
AI will give them a competitive edge1 increased digital transformation.
algorithms. This accessibility accelerates workers, and other teams across key business
functions. They were looking to utilize
the development process and helps
generative AI to rapidly generate, optimize,
users quickly translate their creative
and debug complex automation code.
and business ideas into fully operational
AI solutions.
How did they achieve it?
Key features of Azure AI Studio that provide substantial value to users include:
Complete AI toolchain:
Azure AI Studio offers tools to ground models on specific data, orchestrate complex AI workflows,
and evaluate model outputs for quality and safety, ensuring robust end-to-end management.
Developers find it easier to integrate and manage AI projects, enhancing productivity and
operational efficiency, while users experience more reliable and effective AI applications.
Enterprise-grade production:
The platform facilitates scalable deployment of models, flows, and apps, incorporating continuous
monitoring and fine-tuning capabilities within a secure and governed environment. Organizations
can scale their AI solutions as needed without compromising on security or performance,
providing developers with a flexible and robust infrastructure and ensuring that users enjoy
consistent, reliable AI services.
The centralized nature of the Azure AI Studio platform provides a collaborative development
environment so generative AI teams can efficiently work together and stay in sync. Azure
AI Studio helps users build AI solutions faster with prebuilt capabilities and templates to
ultimately accelerate solution development.
22
Deploy responsible AI
with Azure AI Studio
Responsible generative AI refers to
the development and deployment of
generative AI systems in a manner that
is safe, transparent, and accountable. ASOS uses Azure
Microsoft offers numerous tools and AI Studio to surprise
controls that help with the responsible and delight young
deployment of generative AI. fashion lovers
Azure AI services: Developers can
What was their goal?
utilize pre-built and customizable APIs
and models to rapidly build cutting-edge, With the prevalence of generative AI
platforms, ASOS, a United Kingdom-based
responsible applications. These services
fashion and cosmetic retailer, saw an
provide detailed Transparency Notes
opportunity to expand its business model,
and fairness assessments, such as Face
enrich its technology infrastructure, and
and Speech, to support customer choice meet customers’ modern tech expectations.
and transparency.
Responsible use of AI with How did they achieve it?
Azure AI services
ASOS used Azure OpenAI Service and prompt
Azure AI Content Safety: Developers can flow, part of Azure AI Studio, to quickly
get support in detecting and mitigating streamline their development and testing
risky content, including prompt attacks, cycles, helping the customer and the solution
Security: Microsoft provides the multilayered security backbone of your applications, using built-
in security controls and unique threat intelligence to help identify and secure against evolving
threats.
Prompt shields:
Detect and block prompt injection attacks, including
direct and indirect prompt attacks.
Groundedness detection:
Detect “hallucinations” in model outputs, for better
accuracy and reliability of the content generated by AI.
Safety evaluations:
Assess an application’s vulnerability to jailbreak attacks and content risks using your
own test dataset or a test dataset generated with AI assistance.
• Vulnerability management
06 | Key insights
As the demand for generative AI within
organizations grows, the need for a
centralized platform to develop and
and next steps deploy these technologies responsibly
and effectively becomes critical.
©2024 Microsoft Corporation. All rights reserved. This document is provided “as-
is.” Information and views expressed in this document, including URL and other
Internet website references, may change without notice. You bear the risk of using
it. This document does not provide you with any legal rights to any intellectual
property in any Microsoft product. You may copy and use this document for your
internal, reference purposes.