From the course: Hands-On AI: Build Your Own GPTs

Custom knowledge base - ChatGPT Tutorial

From the course: Hands-On AI: Build Your Own GPTs

Custom knowledge base

- [Instructor] ChatGPT is likely to surpass any single human in all subjects in the future. But that doesn't mean it knows everything. The data ChatGPT hasn't been trained on, but is specific to your task, can be uploaded to extend its knowledge. At the time of this recording, you can upload up to 20 files per GPT for the lifetime of that GPT. Each end user is kept at 10 gigabytes, and each organization is kept at 100 gigabytes. To my understanding, it's likely that in the future, OpenAI will provide a fine tuning feature that lets users fine tune GPTs with their files. Let's explore how to build a custom knowledge base for a new GPT, Sun Tzu career coaching. Sun Tzu, a Chinese military general, strategist, philosopher, and a writer who lived about 2,500 years ago, he's the author of "The Art of War," which continues to have a vital impact on today's business leaders and athletes. For example, Masayoshi Son, the President of SoftBank, he invested in Uber, WeWork, DoorDash and so on. Today, we will build a GPT to transform Sun Tzu into a career coach into the 21st century. Sun Tzu would integrate historical strategies into modern business practices to help people achieve their career goals. But how exactly do we build a knowledge base for Sun Tzu GPT? Let's start with the low hanging fruit, his book, "The Art of War." We are going to use the in English translation by Lionel Giles from 1910. Why this particular version? Well, it has been over 95 years since its first release. That is considered public domain. This means we are free to use it for commercial purpose. Next up, we can leverage ChatGPT to craft an article about how Sun Tzu's strategies apply to modern business. Open ChatGPT in a new page. You are a professor at an Ivy League University teaching MBA students. Write a professional and a concise blog discussing how "The Art of War" applies to business tactics today. Illustrate this with examples from modern companies. Cool, right? "Know the enemy and then know yourself." This quote from Sun Tzu not only applies to warfare, but also to the battlefield of the corporate world. Let's output the blog in the .docx format. Cool. We can click and download it. Nice. What's next step? Well, our 2,500 year old strategist, Sun Tzu, needs a crash course in modern career coaching. We'll turn to ChatGPT again for assistance. This time, our prompt will be, as a professor teaching at an Ivy League University MBA program, write a concise essay on how to become an effective career coach. Focus on key elements like setting smart goals, effective communication through guiding questions, fostering confidence and positivity, and so on. Awesome. By doing this, we are essentially giving Sun Tzu a modern playbook. Okay, output the essay in .docx format. Cool. Click and download the file. Now, we have all the ingredients to cook. I'm adding three documents to GPT Builder, the English translation of book, "The Art of War," a blog about Sun Tzu's theory in modern business, and an essay about how to become an effective career coach. From the GPT page, click the button, Create. Today, we'll use the Configure tab to create a new GPT. Scrolling down to the knowledge section, click Upload files. Select the three files we prepared. By providing additional data for GPT, there's something called REG, retrieval augmented generation happening. ChatGPT will browse the files we uploaded and use them as a reference for creating its answers. Cait Flanders said, "No two paths are the same, just as no two people are the same." Each person's career path is unique. How can Sun Tzu engage users to offer personalized suggestions?

Contents