Developing Generative Artificial Intelligence Solutions Flashcards

1
Q

What are the 5 parts of the generative AI application lifecycle

A

1) Defining a business use case
2) Selecting a foundational model (FM)
3) Improving the performance of an FM
4) Evaluating the performance of an FM
5) Deployment and its impact on business objectives

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Challenges of generative AI

A

Regulatory violations
Social risks
Data security and privacy concerns
Toxicity
Hallucinations
Interpretability
Nondeterminism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A few criteria to consider when deciding between pre-trained model and building a new one

A

Cost, modality, latency, multi-lingual support, model size and complexity, customization, input/output length, responsibility consideration, deployment and integration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is prompt engineering?

A

A technique used to improve the performance of a model by crafting the input prompts or instructions given to the model to generate desired outputs or behaviors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are key aspects of prompt engineering?

A
  1. Design
  2. augmentation (incorporating additional information)
  3. tuning (iteratively refining and adjusting the prompts)
  4. ensembling (combining multiple prompts)
  5. mining (exploring and identifying effective prompts)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is RAG?

A

Retrieval Augmented Generation - a form of natural language process prompt engineering. It combines the capabilities of retrieval systems and generative language models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Fine tuning

A

A method of improving the performance of a foundational model - it is taking a pre-trained language model and further training it on specific tasks or domain-specific dataset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 2 ways of fine-tuning a model

A

1) Instruction fine-tuning (uses examples of how the model should respond to specific instructions)
2) Reinforcement learning from human feedback (RLHF) provides human feedback data (better aligned with human preferences)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

3 evaluation types

A

1) Human evaluation 2) Benchmark datasets 3) Automated metrics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are agents?

A

Software components or entities designed to perform specific actions or tasks autonomously or semi-autonomously, based on predefined rules or algorithms. Examples of actions include: task coordination, reporting and logging, integration and communication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Bilingual Evaluation Understudy (BLEU)

A

measures the similarity between a generated text and one or more reference translations, considering both precision and brevity. Used for evaluating machine translations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Bidirectional Encoder Representations from Transformers (BERT)

A

Metric that evaluates the semantic similarity between a generated text and one or more reference texts. Used for assessing the semantic similarities between 2 sentences

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Recall-Oriented Understudy for Gisting Evaluation (ROUGE)

A

measures the quality of a generated summary or translation by comparing it to one or more reference summaries or translations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Amazon Titan

A

High performing foundation model from AWS. Can do images, text and multimodal choices. Can customize with your own data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Context window

A

The number of tokens an LLM. An consider when generating new text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Model invocation logging

A

Logs is all invocations to Amazon CloudWatch. Can build alerts and see Cloud watch insights