Generative AI Application Development Using OpenAI
摘要
Generative Artificial Intelligence is a sub-area of Artificial Intelligence (AI) and is widely used to create new content such as text, imaging, videos, music, and the like. Given its vast array of resources, Generative AI has become a common reference for research. Given these facts, this chapter aims to first narrate the history and evolution of OpenAI—with a focus on Generative Pre-Trained Transformer (GPT) and Transformer Architecture. Second, this chapter will also provide a step-by-step guide on OpenAI’s registration procedures, along with creating their first submission. Third, this chapter also examines prompt engineering principles and their parameters including the characteristics of an effective prompt, output formatting control, and its sub-constituents such as summarization, data extraction, sentiment analysis, and textual transformation. Fourth, this chapter provides its readers with a brief application of the Vector DB in the Large Language Models (LLMs) and its general improvements in the performances of semantic search and text embedding. Last, it provides a step-by-step procedure on how to build a chatbot using OpenAI’s features. To further integrate all the narrated information and procedures, this chapter includes a movie recommendation system project using the embeddings generated by OpenAI’s APIs.