← Artificial intelligence

Neural networks and language models

Large language models

大语言模型

A large language model is a neural network trained on huge amounts of text, so it can write, translate and answer questions.

We use it by writing a prompt (instructions in plain language); the clearer the prompt, the better the answer.

A language model splits text into small units called tokens, then predicts the most likely next token again and again until the reply is complete.

Writing a clear prompt improves results a lot: state the task, give context, say what format you want and add an example if you can.

A model can "hallucinate", confidently inventing facts or sources that don't exist, so check important facts against reliable sources and don't share sensitive data with it.

Ask the AI assistant

Ask anything about this lesson and get a simple answer with the terms in Chinese, Arabic and English.

The AI assistant runs on Google's Gemini model and can make mistakes. Do not write personal information. Available to signed-in learners, up to 30 requests a day.

The content is simplified and covers the basics only.