Ben Chuanlong Du's Blog

It is never too late to learn.

Extracting Data from PDF Files

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Sometimes, a PDF file is corrupted or encrypted making it hard to extract data from it directly. In this case, you can convert a PDF page to an image first and …

Prompt Engineering for LLM Tools

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. set temporature

  2. give some examples

  3. leverage built tools provided by LLM products. For example, Google AI Studio provides tools

    • grounding with google search, etc.
  4. A single comprehensive prompt …

Tips on Google Gemini CLI

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips & Traps

  1. Gemini CLI is extremely useful as it doesn't requires your favorite IDE to have integration with LLM tools. You can use whichever IDE you like. What you need is …

Tips on Large Language Models

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Ruff Is An Extremely Fast Python Linter Written in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use ruff In a uv Managed Python Project

uv run ruff check 
uv run ruff format .

Use ruff Standalone

The most convenient way to use run ruff standalone is via uvx …