1 of 11

Using LLMs to build your own Copilots

Vinayak Hegde

CTO-in-Residence

Microsoft for Startups

2 of 11

Agenda

  • How LLMs work (short intro)
  • The challenges of working with LLMs (Hallucinations)
  • How to reduce Hallucination using Retrieval Augmented Generation (RAG)
  • How can you can finetune LLMs to give give more coherent answers
  • What is the Copilot pattern for building creative/enterprise apps?
  • How does the Copilot pattern work from a UX point of view to augment human in the loop.
  • What are the different elements of the Copilot stack and how do they interplay with each other?
  • Some learnings from building copilots so far? (eg related to Responsible AI)

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

3 of 11

Artificial Intelligence

Machine Learning

Deep Learning

1956

Artificial Intelligence

the field of computer science that seeks to create intelligent machines that can replicate or exceed human intelligence

1997

Machine Learning

subset of AI that enables machines to learn from existing data and improve upon that data to make decisions or predictions

2017

Deep Learning

a machine learning technique in which layers of neural networks are used to process data and make decisions

2021

Generative AI

Create new written, visual, and auditory content given prompts or existing data.

Generative AI

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

4 of 11

Traditional model development�High cost and slow deployment—each service is trained disjointly

FLOWER

PLAYING SOCCER

EAGLE

EAGLE

DEPLOYMENTS

Tagging �Services

Spatial Analysis �Services

Accessibility �Services

Spatial �Presenter

Azure Search, �Video Indexer

TASKS

Classification

Object Detection

Object Tracking

Action Recognition

Entities

Topics

Sentiments

INDIVIDUAL MODEL �(DISJOINTLY)

Classification Model

Detection �Model

Tracking �Model

Action �Model

Entity Recognition

Topic Classification

Sentiment Analysis

TRAINING DATA

(w/ ANNOTATION)

Tagging data

Detection data

Tracking data

Action �data

Entity �data

Topic �data

Sentiment data

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

5 of 11

Foundation Models

Data

Text

Images

Speech

Structured Data

3d Signals

Tasks

Question and Answering

Sentiment Analysis

Information Extraction

Image Captioning

Object Recognition

Training

Adaptation

Foundation Model

Instruction Follow

Transformer Model

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

6 of 11

Copilot

An application using modern AI �to assist you with complex cognitive tasks 

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

7 of 11

  • Augment users
  • Make people more efficient
  • Automate some mundane tasks
  • Makes it easy to find signal inside the noise
  • Use human language to query

Copilot

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

8 of 11

Copilot accelerated experiences

Creative assistant

Content generation

Provides recommendations, �with human in the loop

Uses natural language

Across multiple sources

From

To

Tools

Product specific

Data input

Following commands

Uses specialized languages

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

9 of 11

Copilot in Power BI

Create beautiful and insightful reports just by chatting with Copilot

Define metrics and calculations for your data model just by describing them in natural language

Use Copilot to find �and summarize insights�in your data

Stay focused on your business outcomes and unlock insights in your data with Copilot

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

10 of 11

Copilot stack

(detail)

AI infrastructure

Foundation models

AI �safety

BYO models

Hosted fine-tuned foundation models

Hosted foundation models

Plugin extensibility

Plugin execution

Grounding

Metaprompt

Prompt & response filtering

Orchestration

Copilot frontend

UX

MICROSOFT CONFIDENTIAL – NON-DISCLOSURE AGREEMENT REQUIRED

11 of 11

MS Build 2023 Videos

Further Information and resources