Andrej Baranovskij Blog
Blog about Oracle, Full Stack, Machine Learning and Cloud
Wednesday, August 19, 2026
Table Only Extraction Mode on Large Financial Statement
Monday, August 10, 2026
Bigger Isn't Always Better: Gemma 31B vs Ministral 14B on a Pivot Table
Wednesday, August 5, 2026
Can an LLM Read a Pivot Table? Sparrow + Ministral 14B
Wednesday, July 22, 2026
Sparrow Standard Mode: Document Extraction with Ministral 14B
Wednesday, July 8, 2026
Mistral OCR 4 + Sparrow: Document to JSON
Monday, June 29, 2026
Building an AI Agent That Searches the Web and Makes Investment Decisions
In this video I build a local agentic AI pipeline that analyzes a bond portfolio and makes sell/hold decisions based on risk analysis and live web search data.
The agent runs four steps: load portfolio positions from JSON, classify each position as low/medium/high risk, search the web per position via Tavily API for historical performance and current outlook, then make a final sell/hold decision with reasoning — all powered by Gemma 4 31B running locally on Apple Silicon via mlx-vlm. No data leaves your machine.
All steps orchestrated with Prefect.
🔗 GitHub: https://github.com/katanaml/sparrow
🌐 Live: https://sparrow.katanaml.io
📧 Enterprise inquiries: abaranovskis@redsamuraiconsulting.com
Wednesday, June 24, 2026
Mistral OCR + Sparrow: Document to JSON
Pipeline: Mistral OCR converts the document to structured HTML, then Mistral Small extracts and transforms the data into JSON based on a defined schema with field-level hints.
In this video, extracting a bonds portfolio table with hint-driven rules:
- Instrument name normalization (extracting issuer brand from full fund names)
- European number formatting (period as thousands separator, comma as decimal)
- Percentage formatting with sign preservation
- Derived risk classification computed from profit/loss percentage
Sparrow is open source and local-first by design — documents never leave your infrastructure unless you choose the cloud backend.
⭐ GitHub: github.com/katanaml/sparrow
🌐 Live demo: sparrow.katanaml.io