CarperAI / InstructGPT

For experiments involving instruct gpt. Currently used for documenting open research questions.
MIT License
71 stars 3 forks source link

[task] Documentation Aware Assistance #19

Open jon-tow opened 1 year ago

jon-tow commented 1 year ago

🚀 The Task

If a user is using an AI pair programmer to work with a custom library or framework, performance will be much better if the prompt includes some documentation of the library or some examples of usage. The model should be able to utilize this context effectively.

Example

Help me write a chatbot using the OpenAI Completions API. Here is their API documentation:

  [Create completion](https://beta.openai.com/docs/api-reference/completions/create)
  POST

  https://api.openai.com/v1/completions

  Creates a completion for the provided prompt and parameters

  ==== 

  Request body

    model: string (Required)
      ID of the model to use. You can use the [List models](https://beta.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://beta.openai.com/docs/models/overview) for descriptions of them.
  ...

Additional Notes

jon-tow commented 1 year ago

Relevant Paper: DocPrompting: Generating Code by Retrieving the Docs