Train ChatGPT to Answer your Frequently Asked Questions

Enrich ChatGPT with your knowledge base.

Jesko Rehberg

--

Build your knowledge base on ChatGPT (image by Sergio)

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…

--

--

Jesko Rehberg

Data scientist at https://en.digitalsalt.de/. Views and opinions expressed are entirely my own and may not necessarily reflect those of my company