A large language model is a neural network trained on vast amounts of text to predict and generate language.
An LLM receives an input text, the prompt, and produces an answer word by word, each time choosing the most likely continuation. It does not consult a store of verified facts: it works on statistical patterns learned during training. That is why it writes well but can be confidently wrong.
An LLM can be used in the cloud through a provider, or installed on your own servers if it is an open-weight model. The choice changes who sees the data, where it is processed and which contracts you need. It also changes the answer to whether the provider uses your data to improve its models.
In practice, treat the output of an LLM like a draft from a junior colleague: useful, fast and in need of checking. For the most sensitive data, consider a local model; for the rest, a cloud service with a data processing agreement and limited retention.
See also: Generative AI, Open-weight model, Hallucination, Inference
General information, not legal or tax advice on your specific case.