https://mathpn.com/notes/llm-docsmith-03/