Build a Kindle AI summary pipeline with Ollama and Python
My Clippings.txt is an append-only mess, and the expanded highlights inside it will wreck any summary you generate from the raw file. Here is the parser, the deduplication logic and the local Ollama call I use instead.