Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Building AI Intensive Python Applications

You're reading from   Building AI Intensive Python Applications Create intelligent apps with LLMs and vector databases

Arrow left icon
Product type Paperback
Published in Sep 2024
Publisher Packt
ISBN-13 9781836207252
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (18) Chapters Close

Preface 1. Chapter 1: Getting Started with Generative AI 2. Chapter 2: Building Blocks of Intelligent Applications FREE CHAPTER 3. Part 1: Foundations of AI: LLMs, Embedding Models, Vector Databases, and Application Design
4. Chapter 3: Large Language Models 5. Chapter 4: Embedding Models 6. Chapter 5: Vector Databases 7. Chapter 6: AI/ML Application Design 8. Part 2: Building Your Python Application: Frameworks, Libraries, APIs, and Vector Search
9. Chapter 7: Useful Frameworks, Libraries, and APIs 10. Chapter 8: Implementing Vector Search in AI Applications 11. Part 3: Optimizing AI Applications: Scaling, Fine-Tuning, Troubleshooting, Monitoring, and Analytics
12. Chapter 9: LLM Output Evaluation 13. Chapter 10: Refining the Semantic Data Model to Improve Accuracy 14. Chapter 11: Common Failures of Generative AI 15. Chapter 12: Correcting and Optimizing Your Generative AI Application 16. Other Books You May Enjoy Appendix: Further Reading: Index

Python for AI/ML

Python has established itself as the go-to programming language in various fields, but most notably in AI, ML, and building applications powered by large language models (LLMs). Python offers simplicity, readability, and a robust ecosystem of libraries, making it an ideal choice for all kinds of users, whether they are developers, researchers, or even students just getting started with programming. Python has also emerged as the language of choice for building new LLM-powered applications, underscoring Python’s usefulness, popularity, and versatility.

In this section, you will learn some of the reasons that make Python a great choice for building modern AI-powered applications:

  • Simplicity and readability: Python’s syntax is designed to be intuitive and clear, which is one of its core strengths. Python can represent complex algorithms and tasks in a few lines of code that are easily readable and understandable.
  • Rich ecosystem of libraries and frameworks: Python offers an extensive range of libraries and frameworks specifically designed for AI/ML use cases. Libraries such as TensorFlow, PyTorch, and scikit-learn have traditionally been popular for ML tasks. Hugging Face’s Transformers library has also become an indispensable part of the developer workflow for building modern LLM-powered applications. It provides pre-trained models and straightforward APIs to fine-tune models for specific tasks. These libraries not only accelerate development time but also provide cutting-edge solutions to developers across the world.
  • Strong community and support: Python is one of the most popular programming languages in the world, and hence has a huge community. According to the Stack Overflow survey 2023 (https://survey.stackoverflow.co/2023/), it’s the second most popular programming language after JavaScript (excluding HTML/CSS). This strong and large community provides a wealth of resources, including tutorials, discussion forum engagements, and open source projects, which offer a helpful support system for someone working on building modern applications.
  • Integration with other technologies: Python’s ability to integrate seamlessly with other technologies and programming languages makes it a great choice for AI/ML tasks and building LLM-powered applications. For example, Python can easily interface with programming languages such as C/C++ for performance-critical tasks. It also interfaces well with languages such as Java and C#. This flexibility of Python is helpful for deploying LLM-powered applications in diverse environments, ensuring that Python can be part of large heterogeneous systems.
  • Rapid prototyping and experimentation: Building a sophisticated AI/ML-powered application requires many iterations of tests, experiments, and fine-tuning. Python allows developers to quickly build prototypes in a few lines of code. Easy testing and debugging also help to prototype a quick solution. Python’s interactive environments, such as Jupyter Notebook, provide an excellent platform for this purpose. With Python, developers building LLM-powered applications can quickly test hypotheses, visualize data, and debug code in an interactive manner.

Python combines speed, simplicity, specialized libraries and frameworks, and strong community support with easy integration with other languages and technologies, all of which make it an excellent choice for building modern LLM-powered applications.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime