Skip to content

gaurgv/Generative-AI-Integration-Patterns-1E

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generative AI Application Integration Patterns: Integrate large language models into your applications

by Juan Pablo Bustos and Luis Lopez Soria

drawing

Generative AI Application Integration Patterns

Integrate large language models into your applications

This is the code repository for Generative AI Application Integration Patterns, published by Packt.

About the book 📔

Explore the transformative potential of Generative AI (GenAI) in the application development lifecycle. Through concrete examples, you will go through the process of ideation and integration, understanding the tradeoffs and the decision points when integrating GenAI.

With recent advances in models like Google Gemini, Anthropic Claude, DALL-E and GPT-4o, this timely resource will help you harness these technologies through proven design patterns.

We then delve into the practical applications of GenAI, identifying common use cases and applying design patterns to address real-world challenges. From summarization and metadata extraction to intent classification and question answering, each chapter offers practical examples and blueprints for leveraging GenAI across diverse domains and tasks. You will learn how to fine-tune models for specific applications, progressing from basic prompting to sophisticated strategies such as retrieval augmented generation (RAG) and chain of thought.

Additionally, we provide end-to-end guidance on operationalizing models, including data prep, training, deployment, and monitoring. We also focus on responsible and ethical development techniques for transparency, auditing, and governance as crucial design patterns.

What you will learn 📖

  • Concepts of GenAI: pre-training, fine-tuning, prompt engineering, and RAG
  • Framework for integrating AI: entry points, prompt pre-processing, inference, post-processing, and presentation
  • Patterns for batch and real-time integration Code samples for metadata extraction, summarization, intent classification, question-answering with RAG, and more
  • Ethical use: bias mitigation, data privacy, and monitoring
  • Deployment and hosting options for GenAI models

Table of Contents📑

  1. Introduction to Generative AI Patterns
  2. Identifying Generative AI Use Cases
  3. Designing Patterns for Interacting with Generative AI
  4. Generative AI Batch and Real-time Integration Patterns
  5. Integration Pattern: Batch Metadata Extraction
  6. Integration Pattern: Batch Summarization
  7. Integration Pattern: Real-Time Intent Classification
  8. Integration Pattern: Real-Time Retrieval Augmented Generation
  9. Operationalizing Generative AI Integration Patterns
  10. Embedding Responsible AI into your GenAI Applications

Getting started 🚀

  1. Clone the repository:

    git clone https://github.com/PacktPublishing/Generative-AI-Integration-Patterns-1E
  2. Navigate to the directory:

    cd Generative-AI-Integration-Patterns-1E
  3. Set up a virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  4. Install dependencies:

    pip install -r requirements.txt

You can also run the notebooks directly from the table below:

Chapter Kaggle Colab
Chapter 5: Integration Pattern: Batch Metadata Extraction
  • Batch_metadata_extraction.ipynb
Kaggle Colab
Chapter 6: Integration Pattern: Batch Summarization
  • Integration_pattern_batch_summarization.ipynb
Kaggle Colab
Chapter 7: Integration Pattern: Real-Time Intent Classification
  • Integration_pattern_Real_time_intent_classification.ipynb
Kaggle Colab
Chapter 8: Integration Pattern: Real-Time Retrieval Augmented Generation
  • Integration_pattern_Real_Time_retrieval_augmented_generation.ipynb
Kaggle Colab

Raise an issue 🚩

If you see anything that doesn't run as expected, raise an issue, and we'll work on it!

You can create an issue Support, if you encounter any in the notebooks, we will be glad to provide you support.

Get my copy 📦

If you feel this book is for you, get your copy today! Coding

Know more on the Discord server Coding

Join our community's Discord space to ask questions, provide solutions to other readers, discussions with the authors and much more.

Download a free PDF Coding

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost. Simply click here to claim your Free PDF. free pdf

We also provide a PDF file that has color images of the screenshots/diagrams used in this book at ColorImages. color images

Get to Know the Authors

Juan Pablo Bustos is a seasoned technology professional specializing in artificial intelligence and machine learning. With a background in computer science, Juan has held leadership positions at major tech companies including Google, Stripe, and Amazon Web Services. His expertise spans AI services, solution architecture, and cloud computing. Juan is passionate about helping organizations leverage cutting-edge technologies to drive innovation and deliver value. LinkedIn

Luis Lopez Soria is an experienced software architect specializing in AI/ML. He has gained practical experience from top firms across heavily regulated industries like healthcare and finance, as well as big tech firms like AWS and Google. He brings a blended approach from his experience managing global partnerships, AI product development, and customer-facing roles. Luis is passionate about learning new technologies and using these to create a business value. LinkedIn

About

Generative AI Integration Patterns,1E_Published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%