Developing Generative AI Solutions Flashcards

1
Q

What are the stages in the Generative AI Application Lifecycle?

A
  1. Define a use case
  2. Select a Foundation Model
  3. Improve Performance
  4. Evaluate Results
  5. Deploy the Application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the capabilities of Gen AI?

A

Adaptability
Responsiveness
Simplicity
Creativity and exploration
Data efficiency
Personalization
Scalability

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

What are the risks of Gen 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
4
Q

What is involved in the first stage of Gen AI App LC - i.e. Defining a use case?

A
  1. Define the problem
  2. Gathering relevant requirements
  3. Aligning stakeholder expectations
    In this state, business requirements are translated into technical specs that guide development.
    Normally, a business case is done.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the most common elements of a business case?

A
  1. Use Case Name
  2. Description
  3. Actors
  4. Preconditions
  5. Success Path
  6. Alternate Flows
  7. Post conditions
  8. Business Rules
  9. Non functional requirements - e.g. security, performance, usability, etc.
  10. Assumptions
  11. Additional Info.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What sort of metrics can be used to set Gen AI application goals?

A
  1. Cost Savings
  2. Time Savings
  3. Quality Improvement
  4. Customer Satisfaction
  5. Productivity Gains
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the various ways in which Gen AI can help businesses?

A
  1. Process Automation - automate repetitive or time-consuming tasks, such as content generation, data analysis, or customer service interactions
  2. Augmented decision making - enhance decision-making processes by providing insights, recommendations, and decision support
  3. Personalization - create personalized and customized content that is more relevant for a customer
  4. Creative content generation - can be valuable for marketing, advertising, entertainment, or educational purposes
  5. Exploratory analysis and innovation - explore new ideas, concepts, or solutions by generating novel combinations or variations.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are some of the factors to consider when choosing a pre-trained model for Gen AI?

A
  1. Cost - large models can be expensive, need for computational resources for inference. Cost vs Benefits analysis needed.
  2. Modality - what is needed text generation? image? audio? multi-modal?
  3. Latency
  4. Multi-lingual support
  5. Model size - relates to cost and computational requirements. Larger models are expensive and need more compute but can also solve more complex problems
  6. Model complexity - simple use cases may not require complex models (e.g. transformer based)
  7. Customization
  8. Input/Output Length
  9. Responsibility Considerations - e.g. potential biases, misinformation risks
  10. Deployment and integration - compatibility with existing infra
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the different ways to improve a model’s performance?

A
  1. Prompt Engineering
  2. RAG
  3. Fine-tuning
  4. Automation Agents
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is prompt engineering?

A
  1. Fastest way to harness the power of LLMs.
  2. You engineer the prompt in such a way so as to drive the required output
  3. The phrasing, structure, and content of the prompt can significantly influence the quality, relevance, and characteristics of the generated outputs.
  4. Prompt engineering aims to optimize the prompts to steer the model’s generation in the desired direction, using the model’s capabilities while mitigating potential biases or undesirable outputs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are some of the key aspects of prompt engineering?

A
  1. Design - prompt is clear, unambiguous, and context-rich
  2. Augmentation - incorporate additional info and constraints into the prompt
  3. Tuning - Iteratively refining and adjusting the prompts based on the model’s outputs and performance
  4. Ensembling: Combining multiple prompts or generation strategies to improve the overall quality and robustness of the outputs
  5. Mining: Exploring and identifying effective prompts through techniques like prompt searching, prompt generation, or prompt retrieval from large prompt libraries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is RAG or Retrieval Augmented Generation?

A

RAG is a natural language processing (NLP) technique that combines the capabilities of retrieval systems and generative language models to produce high-quality and informative text outputs.
a) Retrieval system - retrieves relevant information from a large corpus knowledge base; retrieval systems themselves can be quite complex with embeddings and vector databases that are built from customer specific content.
2. LLM - large pre-trained model to which the user prompt along with additional retrieved info is passed.

RAG does not alter a model’s parameter weights.
It is good for Q&A systems and generating high quality content.

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

What is Amazon Bedrock Knowledge Bases?

A

This is a complete workflow for RAG.
It helps organizations build a knowledge base, retrieve relevant information, and augment prompts to LLMs.
To build a knowledge base, you have to ingest data, turn it into embeddings, and store it in a Vector Database.

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

What is Fine Tuning?

A

Training a FM with domain specific data to make it more relevant to the task at hand - e.g. medical research
It does alter a model’s parameter weights and adds additional layers.
There are two ways to fine tune:
a) Instruction fine-tuning - uses examples of how the model should respond to a specific instruction
b) Reinforcement learning from human feedback (RLHF) provides human feedback data

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

What are Agents?

A

Agents are software components or entities designed to perform specific actions or tasks autonomously or semi-autonomously, based on predefined rules or algorithms.

In the case of Amazon Bedrock, agents are used to manage and carry out various multi-step tasks related to infrastructure provisioning, application deployment, and operational activities.

Their primary task is task coordination. They can also do additional reporting and logging.

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

What are the various ways in which FMs can be evaluated?

A
  1. Human evaluation : expensive and time consuming
  2. Benchmark Datasets - e.g. GLUE, SQuAD etc.are benchmark datasets for NLP
  3. Automated Metrics: e.g. Perplexity (measure of how well the model predicts the next token) and BLUE score (for machine translations)- ROUGE, BLEU, and BERTScore provide assessment of the foundation model’s capabilities