Build a Vision-Language App in Python: Ask Questions About Images
Build a local Python image-question app with Flask and Ollama, send images to a vision-language model, and test OCR answers against a sample label.
Read the articleUnconventional thoughts for conventional times. Explore AI, machine learning, and Python through pictures, code, and ideas that click.
Explore the articlesBuild a local Python image-question app with Flask and Ollama, send images to a vision-language model, and test OCR answers against a sample label.
Read the articleA simple question is a good place to start.
36 articles

Build a local Python image-question app with Flask and Ollama, send images to a vision-language model, and test OCR answers against a sample label.

Understand reasoning models, chain of thought, reinforcement learning, and test-time compute, then compare local thinking modes with a Python experiment.

Fine-tune a small language model with LoRA in Python, understand low-rank adapters, and adapt the setup for QLoRA with a compatible NVIDIA GPU.

Compare RAG and fine-tuning using changing policy facts, stable response behaviour, evaluation questions, Python examples, and practical tradeoffs.

Build a local Python AI agent with Ollama. Learn tool schemas, argument validation, agent loops, and testing with a working inventory example.

Evaluate a Python RAG chatbot with Hit@k, recall, reciprocal rank, answer checks, citation validation, and missing-answer tests using a runnable harness.

Build a local PDF RAG chatbot with Python and Ollama. Learn retrieval, embeddings, page citations, and quote validation with runnable code and tests.

Run a local language model with Ollama on Mac or Linux, call it from Python, keep conversation history, and understand memory, context, and privacy.
nvidia-smi says your GPU is 80% busy. It doesn't tell you if that's Tensor cores, CUDA cores, or just memory transfers. gpu-core does.
Showing 9 of 36 articles