Answers.Body: <blockquote>
  <p>GPT-3 obviously knows this</p>
  </blockquote>
  <p>GPT-3 doesn't &quot;know&quot; things in the sense that it has learned specific translations, maths or science etc.</p>
  <p>GPT-3 is not a knowledge database or question answering system, but it can behave like one if prompted carefully. Sometimes it is hard to get specific responses. This appears to be one of those cases.</p>
  <blockquote>
  <p>Did I ask it in a wrong way or is GPT-3 unable to answer questions like this one?</p>
  </blockquote>
  <p>GPT-3 doesn't really &quot;answer questions&quot;, it completes text, and probablisitically fits that text to match the prompts. The fact that it gets a lot of Q&amp;A, maths or translation-based prompting correct is an interesting side effect of the strong language model. It is not clear what the gaps are in it capabilities to perform secondary tasks like this, but very reasonable to expect some.</p>
  <p>In general, you should not expect GPT-3 to automatically pick up on questions with answers, and assume it is answering the question as written. Some reasonable questions might look like the start of a novel or newspaper article to it, or in your case it might be acting as if sentences are only loosely related, like a list of different translations. To reduce the flexibility in possible completions, it is normal to set some context in the first paragraph - a kind of meta-explanation of what the rest of the text is doing.</p>
  <p>I managed to get it to work like this:</p>
  <blockquote>
  <p><strong>The following is a translation, with individual words explained.</strong></p>
  <p><strong>English: The man removes the can.</strong></p>
  <p><strong>German for &quot;can&quot; is</strong> &quot;Dose&quot;</p>
  </blockquote>
  <p>My prompts are in bold. I am sure plenty of variations of what I wrote will work for this specific case. I don't think you will find a 100% reliable prompt for arbitrary words from any sentences.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-21T22:14:23.443Z
Answers.LastActivityDate: 2022-01-21T23:44:22.610Z
Answers.LastEditDate: 2022-01-21T23:44:22.610Z
Answers.UserDisplayName: Neil Slater
Body: <p>I just gave GPT-3 the following prompt (in the playground, using text-davinci-001 with default settings):</p>
  <pre><code>What's the German word for &quot;can&quot; in the sentence &quot;The man removes the can.&quot;?
  </code></pre>
  <p>The word &quot;can&quot; in this sentence is obviously a noun and not a verb. &quot;the can&quot; is the metal container used to sell coke or beer, not the common verb &quot;can&quot; which means &quot;be able to&quot;.</p>
  <p>GPT-3 obviously knows this, otherwise it could not translate the sentence correctly in many languages (which it indeed can).</p>
  <p>However, to my prompt, it answered:</p>
  <pre><code>The word for &quot;can&quot; in the sentence &quot;The man removes the can.&quot; is &quot;kann.&quot;
  </code></pre>
  <p>(&quot;kann&quot; is German for the verb &quot;can&quot; in the sense &quot;be able to&quot;)</p>
  <p>Did I ask it in a wrong way or is GPT-3 unable to answer questions like this one?</p>
  
Tags: <open-ai><gpt-3>
Title: How to get GPT-3 to translate a specific word in a sentence?
UserDisplayName: Jonas Sourlier
ThreadText: # How to get GPT-3 to translate a specific word in a sentence?
  
  (Asked by: username_0 on 2022-01-21)
  
  I just gave GPT-3 the following prompt (in the playground, using text-davinci-001 with default settings):
  What's the German word for "can" in the sentence "The man removes the can."?
  
  The word "can" in this sentence is obviously a noun and not a verb. "the can" is the metal container used to sell coke or beer, not the common verb "can" which means "be able to".
  GPT-3 obviously knows this, otherwise it could not translate the sentence correctly in many languages (which it indeed can).
  However, to my prompt, it answered:
  The word for "can" in the sentence "The man removes the can." is "kann."
  
  ("kann" is German for the verb "can" in the sense "be able to")
  Did I ask it in a wrong way or is GPT-3 unable to answer questions like this one?
  
  **Tags:** open-ai, gpt-3
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-01-21. Score: 3 | Accepted answer
  
  > GPT-3 obviously knows this
  
  GPT-3 doesn't "know" things in the sense that it has learned specific translations, maths or science etc.
  
  GPT-3 is not a knowledge database or question answering system, but it can behave like one if prompted carefully. Sometimes it is hard to get specific responses. This appears to be one of those cases.
  
  > Did I ask it in a wrong way or is GPT-3 unable to answer questions like this one?
  
  GPT-3 doesn't really "answer questions", it completes text, and probablisitically fits that text to match the prompts. The fact that it gets a lot of Q&A, maths or translation-based prompting correct is an interesting side effect of the strong language model. It is not clear what the gaps are in it capabilities to perform secondary tasks like this, but very reasonable to expect some.
  
  In general, you should not expect GPT-3 to automatically pick up on questions with answers, and assume it is answering the question as written. Some reasonable questions might look like the start of a novel or newspaper article to it, or in your case it might be acting as if sentences are only loosely related, like a list of different translations. To reduce the flexibility in possible completions, it is normal to set some context in the first paragraph - a kind of meta-explanation of what the rest of the text is doing.
  
  I managed to get it to work like this:
  
  > **The following is a translation, with individual words explained.**
  >
  > **English: The man removes the can.**
  >
  > **German for "can" is** "Dose"
  
  My prompts are in bold. I am sure plenty of variations of what I wrote will work for this specific case. I don't think you will find a 100% reliable prompt for arbitrary words from any sentences.
  
  
  ---
  
  