#new here

1 messages · Page 1 of 1 (latest)

shadow tiger
#

Where do I upload my prompt?

vapid relicBOT
#

Hi @shadow tiger. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

To use a prompt with OpenAI's models, you don't need to upload it anywhere. Instead, you include it as part of your API request when you interact with the model.

For example, if you're using the Whisper API for speech-to-text, you can include a prompt to improve the quality of the transcripts generated. The model will try to match the style of the prompt. Here's an example from the OpenAI documentation (https://platform.openai.com/docs/guides/speech-to-text):

{
  "audio_url": "<https://path.to/your/audio/file.mp3",>
  "prompt": "The transcript is about OpenAI which makes technology like DALL·E, GPT-3, and ChatGPT with the hope of one day building an AGI system that benefits all of humanity"
}

If you're using the language models like GPT-3, you can also include a prompt in your API request. Here's an example:

import openai

openai.api_key = 'your-api-key'

response = openai.Completion.create(
  engine="text-davinci-002",
  prompt="Translate the following English text to French: '{}'",
  max_tokens=60
)

In this case, the prompt is "Translate the following English text to French: '{}'". You would replace the '{}' with the text you want to translate.

If you're fine-tuning a model, you would include prompts in your training data. The training data should contain a prompt and a completion column/key. You can use the openai tools fine_tunes.prepare_data command to prepare your data for fine-tuning. Here's an example from the OpenAI documentation (https://platform.openai.com/docs/guides/legacy-fine-tuning):

openai tools fine_tunes.prepare_data -f <LOCAL_FILE>
#

In this case, <LOCAL_FILE> is the path to your training data file. The file should be in CSV, TSV, XLSX, JSON, or JSONL format.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: