---
title: "Ali Ahmed (@quantumbreakz) | Hashnode"
description: "AI Engineer in Lahore. LLM systems, AI agents and KYC computer vision/OCR. Writing with tested code at aliahmed.si"
url: "https://hashnode.com/@quantumbreakz"
---

@quantumbreakz

# Ali Ahmed

@quantumbreakz · Lahore, Pakistan · Joined December 2026

AI Engineer in Lahore. LLM systems, AI agents and KYC computer vision/OCR. Writing with tested code at aliahmed.si

### [Parsing a streamed LLM response in Node.js: Server-Sent Events, split chunks and the CRLF bug](https://quantumbreakz.hashnode.dev/parsing-a-streamed-llm-response-in-node-js-server-sent-events-split-chunks-and-the-crlf-bug?utm_source=hashnode&utm_medium=feed)

Network chunks split SSE events, JSON, multi-byte characters and CRLF. A tested 30-line Node.js parser for LLM streams, and the bug it fixes.

6 min read · [quantumbreakz.hashnode.dev](https://quantumbreakz.hashnode.dev/parsing-a-streamed-llm-response-in-node-js-server-sent-events-split-chunks-and-the-crlf-bug?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/parsing-a-streamed-llm-response-in-node-js-server-sent-events-split-chunks-and-the-crlf-bug/6b12fa19b4585e8a1b5392f4) [1d ago](https://hashnode.com/posts/parsing-a-streamed-llm-response-in-node-js-server-sent-events-split-chunks-and-the-crlf-bug/6b12fa19b4585e8a1b5392f4)

### [How passport MRZ check digits work, with code to validate them](https://quantumbreakz.hashnode.dev/how-passport-mrz-check-digits-work-with-code-to-validate-them?utm_source=hashnode&utm_medium=feed)

Passport MRZ check digits use weights 7, 3, 1 and sum mod 10 (ICAO 9303). Tested Python to validate them, including the composite digit.

5 min read · [quantumbreakz.hashnode.dev](https://quantumbreakz.hashnode.dev/how-passport-mrz-check-digits-work-with-code-to-validate-them?utm_source=hashnode&utm_medium=feed)

[1d ago](https://hashnode.com/posts/how-passport-mrz-check-digits-work-with-code-to-validate-them/6b12f9ad15b699cc39ce09dc)

### [Full-text search with SQLite FTS5 in Python: BM25 ranking, stemming and safe queries](https://quantumbreakz.hashnode.dev/full-text-search-with-sqlite-fts5-in-python-bm25-ranking-stemming-and-safe-queries?utm_source=hashnode&utm_medium=feed)

SQLite FTS5 ranks with bm25(); lower is better. Tested Python for 3 traps: no stemming, all-zero scores in small indexes, unsafe MATCH input.

6 min read · [quantumbreakz.hashnode.dev](https://quantumbreakz.hashnode.dev/full-text-search-with-sqlite-fts5-in-python-bm25-ranking-stemming-and-safe-queries?utm_source=hashnode&utm_medium=feed)

[1d ago](https://hashnode.com/posts/full-text-search-with-sqlite-fts5-in-python-bm25-ranking-stemming-and-safe-queries/6b12f93d5813bdd5510e1963)
