Useful Frameworks, Libraries, and APIs
As you might expect, Python is the most popular programming language for building intelligent AI applications. This is due to its flexibility and ease of use, as well as for its vast number of AI and machine learning (ML) libraries. Python has a specialized library for nearly all the necessary tasks required to build a generative AI (GenAI) application.
In Chapter 1, Getting Started with Generative AI, you read about the GenAI stack and the evolution of AI. Like the AI landscape, the Python library and framework space also went through an evolution phase. Earlier, libraries such as pandas, NumPy, and polars were used for data cleanup and transformation work, while PyTorch, TensorFlow, and scikit-learn were used for training ML models. Now, with the rise of the GenAI stack, LLMs, and vector databases, a new type of AI framework has emerged.
These new libraries and frameworks are designed to simplify the creation of new applications powered...