Section 01
Introduction: Attachments — A Universal Bridge Connecting Any File to LLMs with Two Lines of Code
Attachments is an open-source Python library developed and maintained by Maxime Rivest, designed to be a universal bridge between any file and large language models (LLMs). With just two lines of code, it can automatically convert various files such as PDFs, images, and documents into image and text formats, directly injecting them into LLM context. The project's open-source address is https://github.com/MaximeRivest/attachments, and it was released on June 10, 2026.