> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Gen AI and LLMs Introduction Part 1

> Overview of generative AI and large language models, their differences from traditional ML, enterprise use cases, and adaptation methods like prompt engineering, RAG, and fine tuning

Welcome to Lesson 1 of the Bedrock Core introduction series. This article explains the fundamentals of generative AI and large language models (LLMs): what they are, how they differ from traditional supervised machine learning, typical business use cases, and the high-level choices you make when consuming pre-trained models. By the end you'll understand how GenAI systems turn prompts and enterprise data into useful outputs, and when to adapt a vendor model vs. build one.

Let’s begin.

## Why generate new content with ML?

Generative AI systems produce new content—text, code, images, or video—that resembles human-created outputs. To highlight how GenAI differs from classical ML, first consider common supervised tasks such as linear regression, classification, and forecasting.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/ai-ml-linear-regression-classification-forecasting.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=b71c3cc4b92189c407a8257e9810f386" alt="A presentation slide titled &#x22;Problem: How Can Machines Generate New Content?&#x22; with the subtitle &#x22;AI and ML are widely applied to problems like:&#x22;. Below are three blue circular icons labeled &#x22;Linear regression,&#x22; &#x22;Classification,&#x22; and &#x22;Forecasting.&#x22;" width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/ai-ml-linear-regression-classification-forecasting.jpg" />
</Frame>

Example: predicting house prices in London using traditional supervised learning.

* Collect a labeled dataset (features: square footage, postcode, number of bedrooms; label: sale price).
* Train a model to map features to the target price.
* Host the trained model (for example on `Amazon SageMaker` or a container/VM) and call it at inference with new feature values to receive predicted prices.

This standard supervised workflow—dataset preparation, model selection, training, validation, and deployment—requires labeled data and focused engineering effort.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/supervised-learning-model-training-prediction.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=6075b24c90a39f847ddf0ac1c1c2c333" alt="A presentation slide titled &#x22;Problem: How Can Machines Generate New Content?&#x22; illustrating supervised learning. It shows a flowchart: existing company data → model training → model, and new unseen data → model → prediction output." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/supervised-learning-model-training-prediction.jpg" />
</Frame>

## What is generative AI, and where is it useful?

Generative AI focuses on creating new content rather than only predicting a numeric label. In enterprise settings the emphasis is pragmatic: summarization, code generation/review, question answering, or extracting knowledge from documents and communications.

Organizations accumulate massive amounts of textual information—reports, emails, knowledge bases, and internal docs—that become high-value inputs for GenAI systems. Common business use cases include:

* Summarize large documents for faster decision-making.
* Assist developers by writing, refactoring, or reviewing code.
* Power chatbots that handle repetitive customer-support queries.
* Extract structured information from unstructured text.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/problem-real-world-information-icons.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=bbc589022a573f5a1494956be1c51d20" alt="A dark blue slide titled &#x22;Problem: Real World&#x22; with the line &#x22;Organizations handle large volumes of information every day.&#x22; Below are four turquoise icons labeled Document, Reports, Emails, and Knowledge Bases representing common information types." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/problem-real-world-information-icons.jpg" />
</Frame>

These problems often cross team boundaries—developers, support staff, and knowledge managers—but they can be addressed with GenAI models that generate context-aware outputs.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/real-world-devs-support-repetitive-queries.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=979a9b26f1b780b53f152af3240c0bbd" alt="A slide titled &#x22;Problem: Real World&#x22; showing two roles: Developers (with a code icon) who spend time writing and reviewing code, and Support Teams (with a hands icon) who handle repetitive queries. A small caption notes that creating content or documentation can be slow and resource-intensive." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/real-world-devs-support-repetitive-queries.jpg" />
</Frame>

<Callout icon="warning" color="#FF6B6B">
  Generative AI can automate or augment content tasks, but for critical decisions, regulated workflows, or sensitive data you must include human review, validation, and governance controls.
</Callout>

## Why not just use traditional software or search?

Traditional systems excel at storing and retrieving data and applying deterministic rules. But they do not inherently capture semantic meaning between text passages, and rule-based approaches can be brittle for language tasks that require understanding, synthesis, or creative generation.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/traditional-systems-store-retrieve-lack-language.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=d176cf3dccc7fd6a3678352cc3e234e8" alt="A slide titled &#x22;Problem: Real World&#x22; showing a block labeled &#x22;Traditional Software Systems&#x22; with dashed lines to three items: green checkmarks for &#x22;Store data&#x22; and &#x22;Retrieve data&#x22; and a red X for &#x22;Lack language understanding.&#x22; It illustrates that traditional systems handle data storage/retrieval but fail at language understanding." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/traditional-systems-store-retrieve-lack-language.jpg" />
</Frame>

## Large Language Models (LLMs): the engine behind GenAI

LLMs learn statistical and semantic patterns from massive text corpora, enabling them to generate coherent text and perform NLP tasks such as:

* Summarization
* Translation
* Question answering
* Code generation and refactoring

GenAI systems are driven primarily by prompts—carefully structured inputs that guide the model to produce the desired output. Example prompts:

* “Summarize this 200-page report in one paragraph.”
* “Generate an image of a red sports car driving down a rainy street.”
* “Refactor this Python function to improve performance.”

The model will produce text, images, or other media depending on its capabilities and the prompt.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/genai-prompt-text-image-video-diagram.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=bf17ba24f9d2818428bb3a080921e816" alt="A diagram titled &#x22;Solution: GenAI&#x22; showing a user prompt feeding into a generative-AI brain icon that outputs content. The outputs illustrated are text, image, and video, explaining how AI creates new content from user input." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/genai-prompt-text-image-video-diagram.jpg" />
</Frame>

## Typical GenAI solution workflow

1. Identify the task (summarization, QA, code generation).
2. Gather and prepare relevant data (documents, codebase, knowledge base).
3. Choose a pre-trained model or provider.
4. Adapt the model to your needs via:
   * Prompt engineering
   * Retrieval-augmented generation (RAG) to ground outputs in company documents
   * Fine-tuning for domain-specific behavior
5. Deploy with monitoring, validation, and human-in-the-loop checks for safety and compliance.

## How organizations consume pre-trained LLMs

Most teams consume vendor‑pretrained models rather than training large models from scratch. You can adapt vendor models to your data and use case via:

* Prompt engineering: craft prompts and few-shot examples to steer model behavior.
* RAG: index your documents (embeddings + vector store) and include retrieved context at inference to ground answers in enterprise data. See fundamentals of RAG for implementation patterns.
* Fine-tuning or parameter-efficient tuning: update model weights on domain-specific data to specialize behavior.

<Callout icon="lightbulb" color="#1CB2FE">
  Combining a strong pre-trained model with RAG or domain-specific fine-tuning often yields better and faster results than attempting to train an LLM from scratch.
</Callout>

## Common pre-trained model vendors

A range of providers offer pre-trained LLMs and multimodal models:

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/solution-genai-model-logos.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=c7c479241c6aba54cfd816c68a8a8023" alt="A presentation slide titled &#x22;Solution: GenAI&#x22; showing a rounded white panel with logos of companies offering pre-trained models, including Meta, Claude, Amazon, Google, OpenAI, and Deepseek." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Gen-AI-and-LLMs-Introduction-Part-1/solution-genai-model-logos.jpg" />
</Frame>

When choosing a vendor/model consider:

* Capability (task suitability, multimodality)
* Cost (per-inference and storage)
* Latency and throughput
* Data privacy, compliance, and governance
* Customization options (RAG, fine-tuning, prompt controls)
* Ecosystem and tooling (SDKs, integrations, managed services like Bedrock)

## Quick comparison: Traditional ML vs Generative AI

| Dimension | Traditional ML | Generative AI / LLMs |
| - | - | - |
| Typical goal | Predict labels or values (classification/regression) | Generate or transform content (text, code, images) |
| Data needs | Labeled datasets | Large unlabeled corpora + domain data for RAG/fine-tuning |
| Training effort | Train models per task | Consume pre-trained models; adapt via prompts, RAG, or fine-tuning |
| Common outputs | Numeric predictions, classes | Summaries, answers, generated code/images |
| Best for | Forecasting, structured predictions | Language understanding, creative generation, unstructured data tasks |

## Next steps and deeper topics

Future lessons will cover integration patterns for pre-trained models, how Bedrock Core helps manage access to multiple providers, implementation of RAG with vector stores, prompt engineering best practices, and deployment/monitoring strategies.

## Key takeaways

* Generative AI produces new content (text, code, images) and is distinct from traditional supervised ML tasks.
* LLMs are typically consumed as pre-trained models; adaptation is achieved with prompt engineering, RAG, or fine-tuning.
* Real-world GenAI solutions require governance, human oversight, and careful selection of vendor/model based on capability, cost, and compliance.
* Combining pre-trained models with your enterprise data (via RAG or fine-tuning) is often the most practical path to production-ready results.

## Links and References

* [Amazon SageMaker](https://learn.kodekloud.com/user/courses/aws-sagemaker)
* [Prompt engineering fundamentals](https://learn.kodekloud.com/user/courses/learn-by-doing-prompt-engineering-101)
* [Fundamentals of RAG](https://learn.kodekloud.com/user/courses/fundamentals-of-rag)
* [Kubernetes Documentation](https://kubernetes.io/docs/)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/introduction-to-amazon-bedrock/module/21e251db-dd75-4627-9910-aa15938adb6b/lesson/5005f347-43ea-4487-afff-36b4d71c60ca" />
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.