GPT 最佳实践 - OpenAI API logo

GPT 最佳实践 - OpenAI API

Free

Official prompt engineering guide for OpenAI GPT models

FreeFree tier
Type
Open Source
Founded
2015
Company
OpenAI

About GPT 最佳实践 - OpenAI API

A comprehensive guide from OpenAI on best practices for prompt engineering with their GPT models. Covers six key strategies: writing clear instructions, providing reference text, splitting complex tasks into simpler subtasks, giving the model time to think, using external tools, and testing changes systematically. Includes tactics for each strategy with practical examples. Aimed at developers and users of the OpenAI API to improve output quality, accuracy, and efficiency.

Key Features

Six core strategies for effective prompt engineering
Tactics like detailed instructions, role assignment, and delimiters
Guidance on providing reference text to reduce hallucinations
Techniques for splitting complex tasks into subtasks
Methods to allow the model to reason step-by-step
Use of external tools and systematic testing (evals)

Pros & Cons

Pros
  • Official documentation directly from OpenAI
  • Practical, actionable tactics with examples
  • Covers both basic and advanced prompt techniques
  • Helps reduce token waste and improve response accuracy
  • Includes guidance on testing and evaluation
Cons
  • Not a tool itself – it is a documentation guide
  • Assumes familiarity with OpenAI API and GPT models
  • Strategies require manual implementation by the developer

Best For

Improving quality of GPT responses in applicationsReducing errors and hallucinations in API outputsStructuring prompts for complex multi‑step tasksTesting and iterating prompt changes systematicallyIntegrating GPT with external tools or knowledge sources