Skip to content

Glossary: RAG Basics

Dataclass

Also written: dataclasses, @dataclass

A Python class that just holds named fields, with `__init__` written for you by Python. It is used for simple records such as `Doc`, `Chunk` and `Answer`.

Where the book teaches it

Related terms

DecoratorMetadata