Skip to content

Instantly share code, notes, and snippets.

View BlitzJB's full-sized avatar
😤
Arguing with my bugs

BlitzJB

😤
Arguing with my bugs
View GitHub Profile
@BlitzJB
BlitzJB / prooompt.py
Created April 9, 2023 12:37
LLMs as universal API
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***