Answers.Body: <p>As an AI language model, ChatGPT does not have access to real-time information unless it's provided to it. Its knowledge cutoff date is September 2021. Therefore, it actually relies on the timestamp of the user's message to give the current date. Based on the user's message's timestamp, it assumes the current date. For example
  2023-03-23 10:10:00 UTC.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-23T07:37:06.833Z
Answers.Text: Hi Dhruv, welcome to Artificial Intelligence Stack Exchange. Do you happen to have a source for this claim that this is how ChatGPT gets the current date?
Answers.UserDisplayName: Mithical
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-23T11:01:58.603Z
Answers.Text: this seems unlikely
Answers.UserDisplayName: Peter Franek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-23T14:55:43.737Z
Answers.Text: It is correct. I asked chatgtp (non plus) the same yesterday:
  My knowledge cutoff date is September 2021, which means that I was trained on a large dataset of text and information up until that time. However, as a language model, I do not have access to real-time or up-to-date information. While I can use my existing knowledge to answer questions and provide information, I may not be aware of recent events or developments that have occurred after my cutoff date. Therefore, I always recommend that users double-check any important information with reliable and up-to-date sources.
Answers.UserDisplayName: SQueek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-23T14:57:10.557Z
Answers.Text: For everyone who wants to ask chat gtp. That's the question you can ask:
  "how current is your data?"
Answers.UserDisplayName: SQueek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-23T23:09:44.700Z
Answers.Text: there ain't any timestamps. The model just sees the pre-promt and characters you sent and characters (s)he generated
Answers.UserDisplayName: Peter Franek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-23T05:44:27.403Z
Answers.LastActivityDate: 2023-03-23T05:44:27.403Z
Answers.UserDisplayName: Dhruv Vishal
Answers.Body: <p>For ChatGPT 3, the current date is inserted into a long pre-prompt, along with instructions like &quot;this is a conversation between an AI chatbot and a human&quot; plus &quot;be nice&quot; and &quot;be truthful&quot;, which are part of the attempts to frame the next-word-predicting engine at the core of ChatGPT as a chatbot. OpenAI have confirmed this in the past, but sadly recent releases have removed that documentation.</p>
  <p>Inherently, the core of ChatGPT - the GPT large language model - is <em>not</em> a chatbot. It has some resemblance conceptually to an image inpainting system — it predicts text that is likely, given preceding text.</p>
  <p>I expect the same is true of ChatGPT 4, but have not seen any confirmation of this. It is <em>feasible</em> in principle to alter architecture of the bots to have them reference external data sources, but I believe that for the current date, a pre-prompt will still be in use.</p>
  <p>Old link to OpenAI's confirmation - sadly no longer available - <a href="https://platform.openai.com/docs/guides/chat/instructing-chat-models" rel="nofollow noreferrer">https://platform.openai.com/docs/guides/chat/instructing-chat-models</a> - if anyone has link to archived copy please let me know in the comments.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T12:39:29.377Z
Answers.Text: Why ChatGPT is capable of floating-point arithmetic and functions, like sin(1) or 60!, but cannot multiply two 4-digit integers?
Answers.UserDisplayName: Anixx
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T12:42:07.657Z
Answers.Text: "this is a conversation between an AI chatbot and a human" - haha. That's why ChatGPT refuses to talk to another AI while text-davinci-003 does it easily
Answers.UserDisplayName: Anixx
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T15:45:22.717Z
Answers.Text: @Anixx There is already a question on the site about that. [Why is ChatGPT bad at math?](https://ai.stackexchange.com/questions/38220/why-is-chatgpt-bad-at-math) In short, ChatGPT is all about the text. It's actually a little surprising that it can do some maths, but what it can and cannot do with any technical subjects is a bit hit or miss. It doesn't somehow recognise you have asked a math question and load a maths module, or anything remotely like that.
Answers.UserDisplayName: Neil Slater
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T19:12:10.013Z
Answers.Text: No. It can calculate elementary functions with very high precision, also factorials.
Answers.UserDisplayName: Anixx
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T19:32:56.113Z
Answers.Text: @Anixx: It's very simple. If it's seen the answers in its training data, then it will reproduce them with high precision. If it hasn't seen the answers, it will guess based on context and similar calculations that it has seen. This is why it can do 60! - there are lots of webpages online with that expression and its result - but not, say, 318574 * 168649.
Answers.UserDisplayName: nneonneo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T20:25:56.557Z
Answers.Text: @nneonneo my impression is that it can do more than trivial floating-point functions. Currently ChatGPT is offline but I wll try to find proofs.
Answers.UserDisplayName: Anixx
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T20:28:14.087Z
Answers.Text: Do you have a reference for the 'pre-prompt' being present for chatGPT? As far as I am aware, the details of the chatGPT prompting schema etc are still completely proprietary
Answers.UserDisplayName: Chris Cundy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T22:53:18.090Z
Answers.Text: @ChrisCundy there are quite a few folks who've been able to convince ChatGPT to leak its pre-prompt; see https://twitter.com/goodside/status/1598253337400717313?lang=en for one of the earliest examples
Answers.UserDisplayName: nneonneo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T22:57:27.727Z
Answers.Text: @Anixx it can, sometimes, but again this is a question of memorization. Somewhere in the terabytes of text it's been trained on are answers to quite a lot of mathematical problems. It's good enough at predicting and extrapolating that it may look as if it's good at math, but a bit of experimentation will quickly prove that it is simply superficial. This is very unlike, say, WolframAlpha, which is actually legitimately good at math thanks to a large amount of dedicated mathematical software and more "hardcoded" input parsing.
Answers.UserDisplayName: nneonneo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T23:19:11.880Z
Answers.Text: @Anixx it can also be convinced that 2+2=5, so I would take any mathematical answers it gives with a huge rock formation of salt.
Answers.UserDisplayName: Lawnmower Man
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T23:33:49.193Z
Answers.Text: @Annix: I just gave it a try with `sin`. Whilst it can quote some figures accurately - to the precision it decides to give - it will also get many simple ones wrong at 2nd digit onwards. It will also give math textbook explanations of $sin(-x) = -sin(x)$ which is cool, but it is clearly not calling out to some internal sin() function. There may be some very crude approximation to it that it has learned (because it helps to predict the text), but mostly it seems rote learning of some often-used values plus rough guesswork
Answers.UserDisplayName: Neil Slater
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-21T00:39:58.367Z
Answers.Text: There is MASSIVE risks to referencing live data. Just look at Tay. Someone will figure out how to screw with it.
Answers.UserDisplayName: Nelson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-21T05:09:07.083Z
Answers.Text: @Nelson FWIW, the version in Bing can reference live data. It has been asked about new products on websites and seems to answer correctly. Apparently Bing is running GPT4
Answers.UserDisplayName: slebetman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-21T18:35:32.973Z
Answers.Text: @ChrisCundy Just pointing out from the Twitter thread nneonneo linked: the prompt happens to be documented at https://platform.openai.com/docs/guides/chat/instructing-chat-models (screenshot for posterity at https://twitter.com/swyx/status/1634767357762740224).
Answers.UserDisplayName: Chortos-2
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-21T18:54:02.043Z
Answers.Text: P.S. re: math. I recently asked Chat GPT how to calculate distance to the horizon from a given altitude. It would reply with the formula (correct!) but then always give the wrong answer to the actual question. Interestingly, it was always wrong by exactly half. I actually found it interesting that it was so consistently wrong by half and not, just, giving random results. But yeah, formulas are part of the linguistic learning but what the formulas mean and how to use them, not so much.
Answers.UserDisplayName: JamieB
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-22T11:38:05.930Z
Answers.Text: @Chortos-2 That's very useful, will add the link to the answer, thanks
Answers.UserDisplayName: Neil Slater
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-23T11:05:23.550Z
Answers.Text: I think it's actually much shorter, nothing about being polite and truthful: just "You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 architecture.
  Knowledge cutoff: 2021-09
  Current date: ..."
Answers.UserDisplayName: Peter Franek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-23T12:25:16.647Z
Answers.Text: @PeterFranek: More is going on than that, it's just one of multiple components, that OpenAI have shared (and others have been able to extract).
Answers.UserDisplayName: Neil Slater
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-09T22:08:09.617Z
Answers.Text: @NeilSlater the link to the OpenAI docs is broken, is there any new one?
Answers.UserDisplayName: rugk
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-10T14:10:13.717Z
Answers.Text: @rugk: Sadly no, and the wayback machine doesn't have archive copies (it has registered dates/times for them, but not displaying anything)
Answers.UserDisplayName: Neil Slater
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-20T10:54:33.503Z
Answers.LastActivityDate: 2023-11-10T14:12:03.987Z
Answers.LastEditDate: 2023-11-10T14:12:03.987Z
Answers.UserDisplayName: Neil Slater
Body: <p>I asked ChatGPT (3.5 and 4) about current date and (s)he answered correctly. In subsequent conversation (s)he was not able to explain how (s)he has this knowledge.</p>
  <p>I always thought that the model only sees the conversation above and a pretrained NN is used. How is the information about current date injected into his/her knowledge?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-21T18:22:54.500Z
Comments.Text: Why not use "it" instead of "(s)he"?
Comments.UserDisplayName: Rodrigo de Azevedo
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-21T22:34:45.260Z
Comments.Text: @RodrigodeAzevedo For the same reason I say "please" and "thank you", to get on the good side of our future robotic overlords ;)
Comments.UserDisplayName: Alexander
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-22T12:48:56.117Z
Comments.Text: @Alexander What if our future robotic overlords resent being anthropomorphized? ;-)
Comments.UserDisplayName: Rodrigo de Azevedo
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-22T13:43:21.653Z
Comments.Text: I believe that chatGpt is a pretrained transformer, but in some cases, you cannot be sure if it's not just a bunch of indian students making a few $ / hour,  in particular if they know todays date and then cannot explain how they know it. So I wanted to be polite to anyone. This will be my excuse on the judgement day, @RodrigodeAzevedo
Comments.UserDisplayName: Peter Franek
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-23T14:00:18.050Z
Comments.Text: @RodrigodeAzevedo I asked ChatGPT about preferred pronouns, and got the answer "You can use any pronouns you feel comfortable with when referring to me".
Comments.UserDisplayName: Federico Poloni
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-24T18:20:57.380Z
Comments.Text: I saw somebody claim once that they got ChatGPT to tell the time by asking it to pretend to be a watch in the early days, I think December or January. I don't think I believe them, but it's pretty funny.
Comments.UserDisplayName: Brock Brown
Tags: <chatgpt>
Title: How is ChatGPT aware of today's date?
UserDisplayName: Peter Franek
ThreadText: # How is ChatGPT aware of today's date?
  
  (Asked by: username_0 on 2023-03-20)
  
  I asked ChatGPT (3.5 and 4) about current date and (s)he answered correctly. In subsequent conversation (s)he was not able to explain how (s)he has this knowledge.
  
  I always thought that the model only sees the conversation above and a pretrained NN is used. How is the information about current date injected into his/her knowledge?
  
  **Tags:** chatgpt
  > **Comments:**
  > **username_1**: Why not use "it" instead of "(s)he"?  
  > **username_2**: @RodrigodeAzevedo For the same reason I say "please" and "thank you", to get on the good side of our future robotic overlords ;)  
  > **username_1**: @Alexander What if our future robotic overlords resent being anthropomorphized? ;-)  
  > **username_0**: I believe that chatGpt is a pretrained transformer, but in some cases, you cannot be sure if it's not just a bunch of indian students making a few $ / hour,  in particular if they know todays date and then cannot explain how they know it. So I wanted to be polite to anyone. This will be my excuse on the judgement day, @RodrigodeAzevedo  
  > **username_3**: @RodrigodeAzevedo I asked ChatGPT about preferred pronouns, and got the answer "You can use any pronouns you feel comfortable with when referring to me".  
  > **username_4**: I saw somebody claim once that they got ChatGPT to tell the time by asking it to pretend to be a watch in the early days, I think December or January. I don't think I believe them, but it's pretty funny.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_8 on 2023-03-20. Score: 53 | Accepted answer
  
  For ChatGPT 3, the current date is inserted into a long pre-prompt, along with instructions like "this is a conversation between an AI chatbot and a human" plus "be nice" and "be truthful", which are part of the attempts to frame the next-word-predicting engine at the core of ChatGPT as a chatbot. OpenAI have confirmed this in the past, but sadly recent releases have removed that documentation.
  
  Inherently, the core of ChatGPT - the GPT large language model - is *not* a chatbot. It has some resemblance conceptually to an image inpainting system — it predicts text that is likely, given preceding text.
  
  I expect the same is true of ChatGPT 4, but have not seen any confirmation of this. It is *feasible* in principle to alter architecture of the bots to have them reference external data sources, but I believe that for the current date, a pre-prompt will still be in use.
  
  Old link to OpenAI's confirmation - sadly no longer available - <https://platform.openai.com/docs/guides/chat/instructing-chat-models> - if anyone has link to archived copy please let me know in the comments.
  
  > **Comments:**
  > **username_9**: Why ChatGPT is capable of floating-point arithmetic and functions, like sin(1) or 60!, but cannot multiply two 4-digit integers?  
  > **username_9**: "this is a conversation between an AI chatbot and a human" - haha. That's why ChatGPT refuses to talk to another AI while text-davinci-003 does it easily  
  > **username_8**: @Anixx There is already a question on the site about that. [Why is ChatGPT bad at math?](https://ai.stackexchange.com/questions/38220/why-is-chatgpt-bad-at-math) In short, ChatGPT is all about the text. It's actually a little surprising that it can do some maths, but what it can and cannot do with any technical subjects is a bit hit or miss. It doesn't somehow recognise you have asked a math question and load a maths module, or anything remotely like that.  
  > **username_9**: No. It can calculate elementary functions with very high precision, also factorials.  
  > **username_10**: @Anixx: It's very simple. If it's seen the answers in its training data, then it will reproduce them with high precision. If it hasn't seen the answers, it will guess based on context and similar calculations that it has seen. This is why it can do 60! - there are lots of webpages online with that expression and its result - but not, say, 318574 * 168649.  
  > **username_9**: @nneonneo my impression is that it can do more than trivial floating-point functions. Currently ChatGPT is offline but I wll try to find proofs.  
  > **username_11**: Do you have a reference for the 'pre-prompt' being present for chatGPT? As far as I am aware, the details of the chatGPT prompting schema etc are still completely proprietary  
  > **username_10**: @ChrisCundy there are quite a few folks who've been able to convince ChatGPT to leak its pre-prompt; see https://twitter.com/goodside/status/1598253337400717313?lang=en for one of the earliest examples  
  > **username_10**: @Anixx it can, sometimes, but again this is a question of memorization. Somewhere in the terabytes of text it's been trained on are answers to quite a lot of mathematical problems. It's good enough at predicting and extrapolating that it may look as if it's good at math, but a bit of experimentation will quickly prove that it is simply superficial. This is very unlike, say, WolframAlpha, which is actually legitimately good at math thanks to a large amount of dedicated mathematical software and more "hardcoded" input parsing.  
  > **username_12**: @Anixx it can also be convinced that 2+2=5, so I would take any mathematical answers it gives with a huge rock formation of salt.  
  > **username_8**: @Annix: I just gave it a try with `sin`. Whilst it can quote some figures accurately - to the precision it decides to give - it will also get many simple ones wrong at 2nd digit onwards. It will also give math textbook explanations of $sin(-x) = -sin(x)$ which is cool, but it is clearly not calling out to some internal sin() function. There may be some very crude approximation to it that it has learned (because it helps to predict the text), but mostly it seems rote learning of some often-used values plus rough guesswork  
  > **username_13**: There is MASSIVE risks to referencing live data. Just look at Tay. Someone will figure out how to screw with it.  
  > **username_14**: @Nelson FWIW, the version in Bing can reference live data. It has been asked about new products on websites and seems to answer correctly. Apparently Bing is running GPT4  
  > **username_15**: @ChrisCundy Just pointing out from the Twitter thread nneonneo linked: the prompt happens to be documented at https://platform.openai.com/docs/guides/chat/instructing-chat-models (screenshot for posterity at https://twitter.com/swyx/status/1634767357762740224).  
  > **username_16**: P.S. re: math. I recently asked Chat GPT how to calculate distance to the horizon from a given altitude. It would reply with the formula (correct!) but then always give the wrong answer to the actual question. Interestingly, it was always wrong by exactly half. I actually found it interesting that it was so consistently wrong by half and not, just, giving random results. But yeah, formulas are part of the linguistic learning but what the formulas mean and how to use them, not so much.  
  > **username_8**: @Chortos-2 That's very useful, will add the link to the answer, thanks  
  > **username_0**: I think it's actually much shorter, nothing about being polite and truthful: just "You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 architecture. Knowledge cutoff: 2021-09 Current date: ..."  
  > **username_8**: @PeterFranek: More is going on than that, it's just one of multiple components, that OpenAI have shared (and others have been able to extract).  
  > **username_17**: @NeilSlater the link to the OpenAI docs is broken, is there any new one?  
  > **username_8**: @rugk: Sadly no, and the wayback machine doesn't have archive copies (it has registered dates/times for them, but not displaying anything)  
  
  ---
  
  ### Answer by username_5 on 2023-03-23. Score: 0
  
  As an AI language model, ChatGPT does not have access to real-time information unless it's provided to it. Its knowledge cutoff date is September 2021. Therefore, it actually relies on the timestamp of the user's message to give the current date. Based on the user's message's timestamp, it assumes the current date. For example
  2023-03-23 10:10:00 UTC.
  
  > **Comments:**
  > **username_6**: Hi Dhruv, welcome to Artificial Intelligence Stack Exchange. Do you happen to have a source for this claim that this is how ChatGPT gets the current date?  
  > **username_0**: this seems unlikely  
  > **username_7**: It is correct. I asked chatgtp (non plus) the same yesterday: My knowledge cutoff date is September 2021, which means that I was trained on a large dataset of text and information up until that time. However, as a language model, I do not have access to real-time or up-to-date information. While I can use my existing knowledge to answer questions and provide information, I may not be aware of recent events or developments that have occurred after my cutoff date. Therefore, I always recommend that users double-check any important information with reliable and up-to-date sources.  
  > **username_7**: For everyone who wants to ask chat gtp. That's the question you can ask: "how current is your data?"  
  > **username_0**: there ain't any timestamps. The model just sees the pre-promt and characters you sent and characters (s)he generated  
  
  ---
  
  