Skip to content

Glossary: RAG Basics

Decorator

Also written: decorators

A line starting with `@` above a function that registers or changes it. In FastAPI, `@app.post("/ask")` registers the function as the handler for POST requests to `/ask`.

Where the book teaches it

Related terms

FastAPIPOST@classmethod