← 返回 openai 的题目列表GPT-3 Playground - Full-Stack Architecture
类型:qbank
Design the high-level architecture for a GPT-3 Playground website that lets users experiment with GPT-3. The prompt spans both backend data organization and frontend state management, covering how to accept user prompts, stream model responses, manage parameters, and persist saved presets.
Designing the GPT-3 Playground System
Design the high-level architecture for a new website starting from scratch (a greenfield project) with nothing built yet. You have full control over all technical choices. The main goal is to map out the high-level architecture, including the technologies and components needed to build this system.
First, define the problem this website solves. Then discuss several key areas:
How to organize data on the Backend.
How to send that data to the Frontend.
How to manage state and display data in the UI.
How to handle user actions.
We may also discuss the layout and visual theme.
Project Overview
The website is called "The Playground." Its purpose is to let users experiment with GPT-3.
Here is the essential context regarding GPT-3: It uses an API. You send it a text input (the prompt), and it returns a smart completion of that text. The plain text is the prompt, and the highlighted completion text is the response.
We need to build a Frontend interface for this API to give users a better experience.
Based on the requirements, the system must allow users to:
Enter a prompt and receive a streamed response from the GPT-3 API.
Change parameters to adjust how the model responds.
Save prompts they like (these are called "Presets").
Load saved presets and run them again.
Notes
Framing and format
You are framed as the sole developer with full control over every technical choice — there is no team to defer architectural decisions to, so own each tradeoff end to end.
A reference UI mockup of the finished Playground is provided and treated as the target design to build toward; the prompt renders as plain text and the model's completion is shown as highlighted (green) inline text appended after it.
This is a whiteboard / diagram-driven discussion — a shared drawing space is available for sketching the architecture, so be ready to diagram the data flow (frontend ↔ backend ↔ GPT-3 API) rather than only describing it.