Building AI Applications with Microsoft Semantic Kernel

Building AI Applications with Microsoft Semantic Kernel

Author: Lucas A. Meyer

Publisher: Packt Publishing Ltd

Published: 2024-06-21

Total Pages: 252

ISBN-13: 1835469590

DOWNLOAD EBOOK

Unlock the power of GenAI by effortlessly linking your C# and Python apps with cutting-edge models, orchestrating diverse AI services with finesse, and crafting bespoke applications through immersive, real-world examples Key Features Link your C# and Python applications with the latest AI models from OpenAI Combine and orchestrate different AI services such as text and image generators Create your own AI apps with real-world use case examples that show you how to use basic generative AI, create images, process documents, use a vector database Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionIn the fast-paced world of AI, developers are constantly seeking efficient ways to integrate AI capabilities into their apps. Microsoft Semantic Kernel simplifies this process by using the GenAI features from Microsoft and OpenAI. Written by Lucas A. Meyer, a Principal Research Scientist in Microsoft’s AI for Good Lab, this book helps you get hands on with Semantic Kernel. It begins by introducing you to different generative AI services such as GPT-3.5 and GPT-4, demonstrating their integration with Semantic Kernel. You’ll then learn to craft prompt templates for reuse across various AI services and variables. Next, you’ll learn how to add functionality to Semantic Kernel by creating your own plugins. The second part of the book shows you how to combine multiple plugins to execute complex actions, and how to let Semantic Kernel use its own AI to solve complex problems by calling plugins, including the ones made by you. The book concludes by teaching you how to use vector databases to expand the memory of your AI services and how to help AI remember the context of earlier requests. You’ll also be guided through several real-world examples of applications, such as RAG and custom GPT agents. By the end of this book, you'll have gained the knowledge you need to start using Semantic Kernel to add AI capabilities to your applications.What you will learn Write reusable AI prompts and connect to different AI providers Create new plugins that extend the capabilities of AI services Understand how to combine multiple plugins to execute complex actions Orchestrate multiple AI services to accomplish a task Leverage the powerful planner to automatically create appropriate AI calls Use vector databases as additional memory for your AI tasks Deploy your application to ChatGPT, making it available to hundreds of millions of users Who this book is for This book is for beginner-level to experienced .NET or Python software developers who want to quickly incorporate the latest AI technologies into their applications, without having to learn the details of every new AI service. Product managers with some development experience will find this book helpful while creating proof-of-concept applications. This book requires working knowledge of programming basics.


Tools and Skills for .NET 8

Tools and Skills for .NET 8

Author: Mark J. Price

Publisher: Packt Publishing Ltd

Published: 2024-07-30

Total Pages: 779

ISBN-13: 1837633681

DOWNLOAD EBOOK

Elevate your career by mastering key .NET tools and skills, including debugging, source code management, testing, cloud-native development, intelligent apps and more. Purchase of the print or Kindle book includes a free PDF eBook. Key Features Coverage of key .NET tools and skills including refactoring, source code management, debugging, memory troubleshooting, and more Practical guidance on using code editors effectively, implementing best practices, and protecting data Explore cutting-edge techniques like building intelligent apps, cloud native development with .NET Aspire, and Docker containerization Book DescriptionUnlock the full potential of .NET development with Tools and Skills for .NET 8. Dive into source code management using Git and learn how to navigate projects while ensuring version control. Discover advanced debugging techniques and troubleshooting strategies to identify and resolve issues, and gain practical insights on documenting your code, APIs, and services, fostering project clarity and maintainability. Delve into the world of cryptography, ensuring confidentiality and integrity throughout your development lifecycle. Elevate your skills as you explore cutting-edge topics such as building intelligent apps using custom LLM-based chat services, mastering dependency injection, optimizing performance through testing, and Docker containerization. Harness the power of cloud-native development with .NET Aspire, unlocking the benefits of modern cloud platforms. With guidance on software architecture best practices, this book empowers you to build robust, scalable and maintainable applications. Advance your career with invaluable insights on job readiness and interview preparation, positioning yourself as a top-tier candidate in today's competitive job market. Whether you're a seasoned .NET professional or an aspiring developer looking to enhance your skills, this book is your ultimate companion on the journey to .NET mastery.What you will learn Make the most of code editor tools for efficient development Learn advanced debugging techniques and troubleshooting strategies Understand how to protect data and applications using cryptography Build a custom LLM-based chat service Discover how to master dependency injection Optimize performance through benchmarking and testing Delve into cloud-native development using .NET Aspire Advance your career with advice on job readiness and interviews Who this book is for .NET professionals seeking to enhance their expertise, as well as aspiring developers aiming to advance their careers in the field. This book caters to individuals eager to master essential .NET tools, refine their development practices, explore advanced techniques and cutting-edge tools, and prepare themselves for job opportunities and interviews in the competitive landscape of .NET development


Building AI Intensive Python Applications

Building AI Intensive Python Applications

Author: Rachelle Palmer

Publisher: Packt Publishing Ltd

Published: 2024-09-06

Total Pages: 299

ISBN-13: 1836207247

DOWNLOAD EBOOK

Master retrieval-augmented generation architecture and fine-tune your AI stack, along with discovering real-world use cases and best practices to create powerful AI apps Key Features Get to grips with the fundamentals of LLMs, vector databases, and Python frameworks Implement effective retrieval-augmented generation strategies with MongoDB Atlas Optimize AI models for performance and accuracy with model compression and deployment optimization Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionThe era of generative AI is upon us, and this book serves as a roadmap to harness its full potential. With its help, you’ll learn the core components of the AI stack: large language models (LLMs), vector databases, and Python frameworks, and see how these technologies work together to create intelligent applications. The chapters will help you discover best practices for data preparation, model selection, and fine-tuning, and teach you advanced techniques such as retrieval-augmented generation (RAG) to overcome common challenges, such as hallucinations and data leakage. You’ll get a solid understanding of vector databases, implement effective vector search strategies, refine models for accuracy, and optimize performance to achieve impactful results. You’ll also identify and address AI failures to ensure your applications deliver reliable and valuable results. By evaluating and improving the output of LLMs, you’ll be able to enhance their performance and relevance. By the end of this book, you’ll be well-equipped to build sophisticated AI applications that deliver real-world value.What you will learn Understand the architecture and components of the generative AI stack Explore the role of vector databases in enhancing AI applications Master Python frameworks for AI development Implement Vector Search in AI applications Find out how to effectively evaluate LLM output Overcome common failures and challenges in AI development Who this book is for This book is for software engineers and developers looking to build intelligent applications using generative AI. While the book is suitable for beginners, a basic understanding of Python programming is required to make the most of it.


Building LLM Powered Applications

Building LLM Powered Applications

Author: Valentina Alto

Publisher: Packt Publishing Ltd

Published: 2024-05-22

Total Pages: 343

ISBN-13: 1835462634

DOWNLOAD EBOOK

Get hands-on with GPT 3.5, GPT 4, LangChain, Llama 2, Falcon LLM and more, to build LLM-powered sophisticated AI applications Key Features Embed LLMs into real-world applications Use LangChain to orchestrate LLMs and their components within applications Grasp basic and advanced techniques of prompt engineering Book DescriptionBuilding LLM Powered Applications delves into the fundamental concepts, cutting-edge technologies, and practical applications that LLMs offer, ultimately paving the way for the emergence of large foundation models (LFMs) that extend the boundaries of AI capabilities. The book begins with an in-depth introduction to LLMs. We then explore various mainstream architectural frameworks, including both proprietary models (GPT 3.5/4) and open-source models (Falcon LLM), and analyze their unique strengths and differences. Moving ahead, with a focus on the Python-based, lightweight framework called LangChain, we guide you through the process of creating intelligent agents capable of retrieving information from unstructured data and engaging with structured data using LLMs and powerful toolkits. Furthermore, the book ventures into the realm of LFMs, which transcend language modeling to encompass various AI tasks and modalities, such as vision and audio. Whether you are a seasoned AI expert or a newcomer to the field, this book is your roadmap to unlock the full potential of LLMs and forge a new era of intelligent machines.What you will learn Explore the core components of LLM architecture, including encoder-decoder blocks and embeddings Understand the unique features of LLMs like GPT-3.5/4, Llama 2, and Falcon LLM Use AI orchestrators like LangChain, with Streamlit for the frontend Get familiar with LLM components such as memory, prompts, and tools Learn how to use non-parametric knowledge and vector databases Understand the implications of LFMs for AI research and industry applications Customize your LLMs with fine tuning Learn about the ethical implications of LLM-powered applications Who this book is for Software engineers and data scientists who want hands-on guidance for applying LLMs to build applications. The book will also appeal to technical leaders, students, and researchers interested in applied LLM topics. We don’t assume previous experience with LLM specifically. But readers should have core ML/software engineering fundamentals to understand and apply the content.


Data Science with .NET and Polyglot Notebooks

Data Science with .NET and Polyglot Notebooks

Author: Matt Eland

Publisher: Packt Publishing Ltd

Published: 2024-08-30

Total Pages: 404

ISBN-13: 1835882978

DOWNLOAD EBOOK

ProgExpand your skillset by learning how to perform data science, machine learning, and generative AI experiments in .NET Interactive notebooks using a variety of languages, including C#, F#, SQL, and PowerShell Key Features Learn Conduct a full range of data science experiments with clear explanations from start to finish Learn key concepts in data analytics, machine learning, and AI and apply them to solve real-world problems Access all of the code online as a notebook and interactive GitHub Codespace Purchase of the print or Kindle book includes a free PDF eBook Book Description As the fields of data science, machine learning, and artificial intelligence rapidly evolve, .NET developers are eager to leverage their expertise to dive into these exciting domains but are often unsure of how to do so. Data Science in .NET with Polyglot Notebooks is the practical guide you need to seamlessly bring your .NET skills into the world of analytics and AI. With Microsoft’s .NET platform now robustly supporting machine learning and AI tasks, the introduction of tools such as .NET Interactive kernels and Polyglot Notebooks has opened up a world of possibilities for .NET developers. This book empowers you to harness the full potential of these cutting-edge technologies, guiding you through hands-on experiments that illustrate key concepts and principles. Through a series of interactive notebooks, you’ll not only master technical processes but also discover how to integrate these new skills into your current role or pivot to exciting opportunities in the data science field. By the end of the book, you’ll have acquired the necessary knowledge and confidence to apply cutting-edge data science techniques and deliver impactful solutions within the .NET ecosystem. What you will learn Load, analyze, and transform data using DataFrames, data visualization, and descriptive statistics Train machine learning models with ML.NET for classification and regression tasks Customize ML.NET model training pipelines with AutoML, transforms, and model trainers Apply best practices for deploying models and monitoring their performance Connect to generative AI models using Polyglot Notebooks Chain together complex AI tasks with AI orchestration, RAG, and Semantic Kernel Create interactive online documentation with Mermaid charts and GitHub Codespaces Who this book is for This book is for experienced C# or F# developers who want to transition into data science and machine learning while leveraging their .NET expertise. It’s ideal for those looking to learn ML.NET and Semantic kernel and extend their .NET skills to data science, machine learning, and Generative AI Workflows.rammer’s guide to data science using ML.NET, OpenAI, and Semantic Kernel


Programming Large Language Models with Azure Open AI

Programming Large Language Models with Azure Open AI

Author: Francesco Esposito

Publisher: Microsoft Press

Published: 2024-04-03

Total Pages: 605

ISBN-13: 0138280452

DOWNLOAD EBOOK

Use LLMs to build better business software applications Autonomously communicate with users and optimize business tasks with applications built to make the interaction between humans and computers smooth and natural. Artificial Intelligence expert Francesco Esposito illustrates several scenarios for which a LLM is effective: crafting sophisticated business solutions, shortening the gap between humans and software-equipped machines, and building powerful reasoning engines. Insight into prompting and conversational programming—with specific techniques for patterns and frameworks—unlock how natural language can also lead to a new, advanced approach to coding. Concrete end-to-end demonstrations (featuring Python and ASP.NET Core) showcase versatile patterns of interaction between existing processes, APIs, data, and human input. Artificial Intelligence expert Francesco Esposito helps you: Understand the history of large language models and conversational programming Apply prompting as a new way of coding Learn core prompting techniques and fundamental use-cases Engineer advanced prompts, including connecting LLMs to data and function calling to build reasoning engines Use natural language in code to define workflows and orchestrate existing APIs Master external LLM frameworks Evaluate responsible AI security, privacy, and accuracy concerns Explore the AI regulatory landscape Build and implement a personal assistant Apply a retrieval augmented generation (RAG) pattern to formulate responses based on a knowledge base Construct a conversational user interface For IT Professionals and Consultants For software professionals, architects, lead developers, programmers, and Machine Learning enthusiasts For anyone else interested in natural language processing or real-world applications of human-like language in software


Generative AI for Cloud Solutions

Generative AI for Cloud Solutions

Author: Paul Singh

Publisher: Packt Publishing Ltd

Published: 2024-04-22

Total Pages: 301

ISBN-13: 1835080162

DOWNLOAD EBOOK

Explore Generative AI, the engine behind ChatGPT, and delve into topics like LLM-infused frameworks, autonomous agents, and responsible innovation, to gain valuable insights into the future of AI Key Features Gain foundational GenAI knowledge and understand how to scale GenAI/ChatGPT in the cloud Understand advanced techniques for customizing LLMs for organizations via fine-tuning, prompt engineering, and responsible AI Peek into the future to explore emerging trends like multimodal AI and autonomous agents Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionGenerative artificial intelligence technologies and services, including ChatGPT, are transforming our work, life, and communication landscapes. To thrive in this new era, harnessing the full potential of these technologies is crucial. Generative AI for Cloud Solutions is a comprehensive guide to understanding and using Generative AI within cloud platforms. This book covers the basics of cloud computing and Generative AI/ChatGPT, addressing scaling strategies and security concerns. With its help, you’ll be able to apply responsible AI practices and other methods such as fine-tuning, RAG, autonomous agents, LLMOps, and Assistants APIs. As you progress, you’ll learn how to design and implement secure and scalable ChatGPT solutions on the cloud, while also gaining insights into the foundations of building conversational AI, such as chatbots. This process will help you customize your AI applications to suit your specific requirements. By the end of this book, you’ll have gained a solid understanding of the capabilities of Generative AI and cloud computing, empowering you to develop efficient and ethical AI solutions for a variety of applications and services.What you will learn Get started with the essentials of generative AI, LLMs, and ChatGPT, and understand how they function together Understand how we started applying NLP to concepts like transformers Grasp the process of fine-tuning and developing apps based on RAG Explore effective prompt engineering strategies Acquire insights into the app development frameworks and lifecycles of LLMs, including important aspects of LLMOps, autonomous agents, and Assistants APIs Discover how to scale and secure GenAI systems, while understanding the principles of responsible AI Who this book is for This artificial intelligence book is for aspiring cloud architects, data analysts, cloud developers, data scientists, AI researchers, technical business leaders, and technology evangelists looking to understanding the interplay between GenAI and cloud computing. Some chapters provide a broad overview of GenAI, which are suitable for readers with basic to no prior AI experience, aspiring to harness AI's potential. Other chapters delve into technical concepts that require intermediate data and AI skills. A basic understanding of a cloud ecosystem is required to get the most out of this book.


Azure OpenAI Service for Cloud Native Applications

Azure OpenAI Service for Cloud Native Applications

Author: Adrián González Sánchez

Publisher: "O'Reilly Media, Inc."

Published: 2024-06-27

Total Pages: 249

ISBN-13: 1098154967

DOWNLOAD EBOOK

Get the details, examples, and best practices you need to build generative AI applications, services, and solutions using the power of Azure OpenAI Service. With this comprehensive guide, Microsoft AI specialist Adrián González Sánchez examines the integration and utilization of Azure OpenAI Service—using powerful generative AI models such as GPT-4 and GPT-4o—within the Microsoft Azure cloud computing platform. To guide you through the technical details of using Azure OpenAI Service, this book shows you how to set up the necessary Azure resources, prepare end-to-end architectures, work with APIs, manage costs and usage, handle data privacy and security, and optimize performance. You'll learn various use cases where Azure OpenAI Service models can be applied, and get valuable insights from some of the most relevant AI and cloud experts. Ideal for software and cloud developers, product managers, architects, and engineers, as well as cloud-enabled data scientists, this book will help you: Learn how to implement cloud native applications with Azure OpenAI Service Deploy, customize, and integrate Azure OpenAI Service with your applications Customize large language models and orchestrate knowledge with company-owned data Use advanced roadmaps to plan your generative AI project Estimate cost and plan generative AI implementations for adopter companies


Building Data-Driven Applications with LlamaIndex

Building Data-Driven Applications with LlamaIndex

Author: Andrei Gheorghiu

Publisher: Packt Publishing Ltd

Published: 2024-05-10

Total Pages: 368

ISBN-13: 1805124404

DOWNLOAD EBOOK

Solve real-world problems easily with artificial intelligence (AI) using the LlamaIndex data framework to enhance your LLM-based Python applications Key Features Examine text chunking effects on RAG workflows and understand security in RAG app development Discover chatbots and agents and learn how to build complex conversation engines Build as you learn by applying the knowledge you gain to a hands-on project Book DescriptionDiscover the immense potential of Generative AI and Large Language Models (LLMs) with this comprehensive guide. Learn to overcome LLM limitations, such as contextual memory constraints, prompt size issues, real-time data gaps, and occasional ‘hallucinations’. Follow practical examples to personalize and launch your LlamaIndex projects, mastering skills in ingesting, indexing, querying, and connecting dynamic knowledge bases. From fundamental LLM concepts to LlamaIndex deployment and customization, this book provides a holistic grasp of LlamaIndex's capabilities and applications. By the end, you'll be able to resolve LLM challenges and build interactive AI-driven applications using best practices in prompt engineering and troubleshooting Generative AI projects.What you will learn Understand the LlamaIndex ecosystem and common use cases Master techniques to ingest and parse data from various sources into LlamaIndex Discover how to create optimized indexes tailored to your use cases Understand how to query LlamaIndex effectively and interpret responses Build an end-to-end interactive web application with LlamaIndex, Python, and Streamlit Customize a LlamaIndex configuration based on your project needs Predict costs and deal with potential privacy issues Deploy LlamaIndex applications that others can use Who this book is for This book is for Python developers with basic knowledge of natural language processing (NLP) and LLMs looking to build interactive LLM applications. Experienced developers and conversational AI developers will also benefit from the advanced techniques covered in the book to fully unleash the capabilities of the framework.


Generative AI with LangChain

Generative AI with LangChain

Author: Ben Auffarth

Publisher: Packt Publishing Ltd

Published: 2023-12-22

Total Pages: 369

ISBN-13: 1835088368

DOWNLOAD EBOOK

2024 Edition – Get to grips with the LangChain framework to develop production-ready applications, including agents and personal assistants. The 2024 edition features updated code examples and an improved GitHub repository. Purchase of the print or Kindle book includes a free PDF eBook. Key Features Learn how to leverage LangChain to work around LLMs’ inherent weaknesses Delve into LLMs with LangChain and explore their fundamentals, ethical dimensions, and application challenges Get better at using ChatGPT and GPT models, from heuristics and training to scalable deployment, empowering you to transform ideas into reality Book DescriptionChatGPT and the GPT models by OpenAI have brought about a revolution not only in how we write and research but also in how we can process information. This book discusses the functioning, capabilities, and limitations of LLMs underlying chat systems, including ChatGPT and Gemini. It demonstrates, in a series of practical examples, how to use the LangChain framework to build production-ready and responsive LLM applications for tasks ranging from customer support to software development assistance and data analysis – illustrating the expansive utility of LLMs in real-world applications. Unlock the full potential of LLMs within your projects as you navigate through guidance on fine-tuning, prompt engineering, and best practices for deployment and monitoring in production environments. Whether you're building creative writing tools, developing sophisticated chatbots, or crafting cutting-edge software development aids, this book will be your roadmap to mastering the transformative power of generative AI with confidence and creativity.What you will learn Create LLM apps with LangChain, like question-answering systems and chatbots Understand transformer models and attention mechanisms Automate data analysis and visualization using pandas and Python Grasp prompt engineering to improve performance Fine-tune LLMs and get to know the tools to unleash their power Deploy LLMs as a service with LangChain and apply evaluation strategies Privately interact with documents using open-source LLMs to prevent data leaks Who this book is for The book is for developers, researchers, and anyone interested in learning more about LangChain. Whether you are a beginner or an experienced developer, this book will serve as a valuable resource if you want to get the most out of LLMs using LangChain. Basic knowledge of Python is a prerequisite, while prior exposure to machine learning will help you follow along more easily.