A guide to building an AI with a custom knowledge base using OpenAI API.