DEV Community

bhagvan kommadi
bhagvan kommadi

Posted on

Open AI : Getting started

I have attached below my notes related to OpenAI:

prompt: The input text
engine: four text completion engines available, named davinci, ada, babbage and curie.

davinci :the most capable of the four, yet the slowest and most expensive if your needs extend beyond the available free tier for the API.

stop: The GPT-3 engine does not really "understand" text, so when it generates text, it needs to know when to stop. stop marker can be :.
temperature: A number between 0 and 1 that determines how many creative risks the engine takes when generating text.
top_p: An alternative way to control the originality and creativity of the generated text.
frequency_penalty: A number between 0 and 1. The higher this value, the bigger the effort the model will make in not repeating itself.
presence_penalty: A number between 0 and 1. The higher this value the model the bigger the effort the model makes in talking about new topics.
max_tokens: Maximum completion length.

OpenAI’s API provides access to several different engines - Ada, Babbage, Curie and Davinci.
Davinci is generally the most capable engine,
Curie can perform many of the same tasks as Davinci, but faster and for 1/10th the cost.

Top comments (0)