![]() You will need to install SerpApi for examples integrating web search. The example programs using Google’s Knowledge Graph APIs assume that you have the file ~/.google_api_key in your home directory that contains your key from. You will need to get an API key for examples using Google’s Knowledge Graph APIs. To use OpenAI’s GPT-3 and ChatGPT models you will need to sign up for an API key (free tier is OK) at and set the environment variable OPENAI_API_KEY to your key value. I show full source code and a fair amount of example output for each book example so if you don’t want to get access to some of the following APIs then you can still read along in the book. Requirements for Running and Modifying Book Examples I would also like to thank the following readers who reported errors or typos in this book: Armando Flores, Peter Solimine, and David Rupp. This picture shows me and my wife Carol who helps me with book production and editing. I took the book cover photo in January 2023 from the street that I live on. You can also interact with me on social media on Mastodon and Twitter. If you would like to support my work please consider purchasing my books on Leanpub and star my git repositories that you find useful on GitHub. I hope that what you learn here will be both enjoyable and help you in your work. If I had to summarize my career the short take would be that I have had a lot of fun and enjoyed my work. You can find links for reading most of my recent books free on my web site. I have written over 20 books, I have over 50 US patents, and I have worked at interesting companies like Google, Capital One, SAIC, Mind AI, and others. I hope that you, dear reader, will be delighted with these examples and that at least some of them will inspire your future projects. While the documentation and examples online for LangChain and LlamaIndex are excellent, I am still motivated to write this book to solve interesting problems that I like to work on involving information retrieval, natural language processing (NLP), dialog agents, and the semantic web/linked data fields. Please note that I usually update the code in the examples repository fairly frequently for library version updates, etc. The GitHub repository for examples in this book is. Jerry Liu started the GPT Index project (recently renamed to LlamaIndex) at the end of 2022 and the GitHub Repository for LlamaIndex currently has 54 contributors. Harrison Chase started the LangChain project in October 2022 and as I write this book in February 2023 the GitHub repository for LangChain has 171 contributors. This book will use the LangChain and GPT Index (LlamaIndex) projects along with the OpenAI GPT-3 and ChatGPT APIs to solve a series of interesting problems. I have been working in the field of artificial intelligence since 1982 and without a doubt Large Language Models (LLMs) like GPT-3 and infrastructure projects like LangChain are the largest technology breakthroughs that I have lived through. EmbedChain Wrapper for LangChain Simplifies Application Development.More Useful Libraries for Working with Unstructured Text Data.A Prediction Model Using the OpenAI text-davinci-002 Model.Using Large Language Models to Write Recipes.Creating a Custom LlamaIndex Hugging Face LLM Wrapper Class That Runs on Your Laptop.Using LangChain as a Wrapper for Hugging Face Prediction Model APIs.Examples Using Hugging Face Open Source Models.Natural Language Database Query Wrap Up.Natural Language SQLite Database Queries With LangChain.Using Zapier Integrations With GMail and Google Calendar. ![]() Generate Vector Indices for Files in Specific Google Drive Directories.Write Utility To Fetch All Text Files From Top Level Google Drive Folder.Using LLMs To Organize Information in Our Google Drives.Using DBPedia and WikiData as Knowledge Sources.Setting Up To Access Google Knowledge Graph APIs.Using Google’s Knowledge Graph APIs With LangChain.LlamaIndex/GPT-Index Case Study Wrap Up.Using LlamaIndex for Question Answering from a List of Web Sites. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |