This is the code repository for Building AI Applications with Microsoft Semantic Kernel, published by Packt.
Easily integrate generative AI capabilities and copilot experiences into your applications
In 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.
This book covers the following exciting features:
- 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
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, ch2.
The code will look like the following:
response = await kernel.invoke(pe_plugin["chain_of_thought"],
KernelArguments(problem = problem, input = solve_steps))
print(f"\n\nFinal answer: {str(response)}\n\n")
Following is what you need for this book:
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.
With the following software and hardware list you can run all code files present in the book (Chapter 1-8).
Chapter | Software required | OS required |
---|---|---|
1-8 | Python 3.11 | Windows, macOS, or Linux |
1-8 | .NET 8 | Windows, macOS, or Linux |
1-8 | OpenAI GPT-3.5 and GPT-4 | Windows, macOS, or Linux |
- Page 33, Last code snippet
should be
dotnet add package Microsoft.SemanticKernel. s.Handlebars --version 1.0.1-preview
dotnet add package Microsoft.SemanticKernel.planners.Handlebars --version 1.0.1-preview
Lucas A. Meyer is a Computer Scientist and Financial Economist with over two decades of experience in technology. Lucas joined Microsoft in 2002 to work with databases in Finance, joined Amazon in 2020 to work with detection and prevention, and returned to Microsoft in 2022 as a Principal Research Scientist in the Microsoft’s AI for Good Lab, where he works with Large Language Models (LLMs) and the Microsoft Semantic Kernel daily. Lucas’ first NLP project, released in 2016, was a chatbot that streamlined several corporate finance operations and won the Adam Smith Award from London’s Treasury Today. Lucas has an MBA and an M.Sc. in Finance from the University of Washington in Seattle.