This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_breakdown(concept): | |
res = openai.ChatCompletion.create( | |
model="gpt-3.5-turbo", | |
messages=[ | |
{"role": "system", "content": "you are an education assistant who breaks down large concepts into smaller ones. the smaller concepts that you generate need to be the ones i need to learn to understand the large concept. Your responses should only be in the format specified in the example."}, | |
{"role": "user", "content": "Front-end development"}, | |
{"role": "assistant", "content": "HTML***HTML (HyperText Markup Language) is the code that is used to structure a web page and its content. For example, content could be structured within a set of paragraphs, a list of bulleted points, or using images and data tables|CSS***CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts. It allows one to adapt the presentation to different types of devices, such as large screens, small screens, or printers|Javascript*** |