Train ChatGPT to Answer your Frequently Asked Questions
Enrich ChatGPT with your knowledge base.
6 min readFeb 7, 2023
Background
Suppose we have questions that ChatGPT can’t answer. An example is the question about which country won the 2022 Soccer World Cup.
import openai
COMPLETIONS_MODEL = "text-davinci-003"
openai.api_key = "Your_API_KEY"
prompt = """Answer the…