|
|
|
Ask HN: How does ChatGPT understand the prompts?
|
|
3 points
by raj555
1082 days ago
|
|
I somewhat understand how it generates texts, but I don't understand how can it understand the query to generate the text. I googled and landed on [1] which doesn't answer me. Why is there no info on this part anywhere? [1] https://ai.stackexchange.com/questions/38294/how-does-chatgpt-respond-to-novel-prompts-and-commands |
|
Here's the process in brief:
Tokenization: The input text gets broken down into smaller chunks, or tokens. Tokens can range from a single character to a whole word.
Embedding: Tokens get translated into numerical vectors - this is how models can process them.
Processing: These vectors are then processed in the context of the others. This is done via a type of neural network called a Transformer[0] network, which handles context particularly well.
Context Understanding: The model uses patterns learned from its training to predict the next word in a sentence. It's not a human-like understanding, but rather it estimates the statistical probability of a word following the preceding ones.
Generation: The model generates a response by continuously predicting the next word until a full response is formed or it reaches a certain limit.
[0]: https://huggingface.co/learn/nlp-course/chapter1/4