Five applications built on technologies ranging from retrieval and vision-language models to real-time voice and AI agents, all running on self-hosted, open-weight models.

Regulatory document analysis

Emilia

Emilia reads chemical Safety Data Sheets (SDS) as PDF, extracts every substance with its CAS number, concentration and hazard codes, then validates the result against official databases and writes the report.

Emilia: the products of one client on the left; on the right, one data sheet with its processing times, identification, hazard codes and the substances found with their CAS numbers and H codes
One client's data sheets, and the substances, CAS numbers and hazard codes extracted from one of them.

Pipeline of a data sheet

  1. PDFEach page rasterised at 300 DPI
  2. Vision OCRQwen3-VL transcribes the page to Markdown
  3. IndexingDense and sparse vectors per page
  4. Hybrid retrievalTwo rankings fused with RRF
  5. ExtractionLLM output constrained to a Pydantic schema
  6. Validation15 validators against official sources
  7. ReportDOCX, XLSX or PDF

Techniques

Retrieval-augmented generation (RAG)
Each extraction question is grounded in the passages retrieved for it, not in the model's memory, which keeps hallucinations out. Pages are chunked one by one, so every extracted value traces back to a page of the source PDF.
Hybrid search: dense and sparse embeddings
BGE-M3 dense vectors capture meaning; BM25 sparse vectors match exact tokens such as a CAS number or an H code. Both live in the Qdrant vector database and their rankings are merged with Reciprocal Rank Fusion.
Multimodal document parsing
Composition tables break classic PDF text extraction: merged cells, wrapped rows, scanned pages. Every page goes through a vision-language model (VLM), Qwen3-VL, that rewrites it as Markdown with rows and columns intact.
Structured outputs with Pydantic
Each extraction target is a Pydantic model. Its JSON schema is handed to the inference server for constrained decoding, so the LLM can only emit valid instances, parsed straight back into typed objects.
Validation against official sources
Fifteen validators run in a fixed order per product and per substance, comparing the extraction with ECHA, INRS, GESTIS, PubChem and the Belgian RPB register, and flag every discrepancy.
API-first microservices
Ingestion, extraction, validation and reporting are separate FastAPI services. None of them touches the database directly; an MCP server exposes the same API to AI agents.

Stack

  • Python
  • FastAPI
  • Pydantic
  • SQLModel
  • LlamaIndex
  • Qdrant
  • BGE-M3
  • BM25
  • Qwen3-VL
  • Ollama
  • Rails 8 + Hotwire
  • MCP server
  • Docker Compose

In figures

  • 15 validators
  • 5 official databases
  • 11 containerised services

Assistive voice agent

Speech

Speech is a voice assistant designed to help people with cognitive impairments and people with low vision do everyday things without a screen to read or a menu to learn. It listens, answers in a familiar cloned voice that starts speaking while the LLM is still writing, and acts through skills: radio, podcasts, calendar, mail, weather, restaurants, door lock. Self-hosted and multi-user.

Speech on a phone: the mail skill lists today's messages with their time, sender and subject, above a row of skill icons and the microphone button
The mail skill: today's messages, read aloud and shown as a card. Sample data.

Pipeline of a spoken sentence

  1. Microphone16 kHz PCM over WebSocket
  2. Turn detectionSilero VAD, then Smart Turn
  3. Speech-to-textWhisper large-v3-turbo
  4. Tool routingOntology narrows the tools, the LLM picks one
  5. SkillTyped tool call is executed
  6. GenerationThe LLM streams its reply token by token
  7. Text-to-speechFed by the token stream, speaks before the text is finished

Techniques

Real-time speech-to-text
Whisper large-v3-turbo served by vLLM. Upstream, Silero VAD detects speech on CPU and Smart Turn (ONNX) does semantic turn detection: it predicts whether the speaker has actually finished, so a pause to think is not cut off.
LLM-to-TTS streaming
The LLM's token stream is piped straight into text-to-speech: sentences are split on the fly and synthesised by Qwen3-TTS while generation continues, then streamed as fMP4 to the browser. Time to first audio: 262 ms. The voice is a zero-shot clone from a 4 to 6 second sample.
Skill system
A skill is a folder: a SKILL.md manifest (tools, entity kinds, hooks, response templates) and its Python module. Skills are discovered at startup; the core names none of them, so adding one is adding a folder.
Agentic function calling with Pydantic AI
Gemma 4 runs through Pydantic AI in two roles: a router at temperature 0 that selects a tool and fills its typed arguments, then a writer that turns the tool result into a spoken answer.
Ontology and knowledge graph
An RDF knowledge graph stored in Oxigraph and queried with SPARQL. Its nodes are embedded with BGE-M3; semantic tool retrieval by cosine similarity keeps only the relevant tools in the context window and types their arguments. Context engineering, not a longer prompt.
Decision model
A small, non-generative language model (d3-flash) answers typed questions (pick one, relevant or not) with a probability per option, in about 120 ms. It resolves "the third one" against a list and replaces hand-tuned score thresholds.
Stateful multi-turn workflows
Tasks that span several exchanges, such as dictating an email, are LangGraph state graphs with durable state that survives a restart. Human-in-the-loop by voice: nothing irreversible is sent without a spoken yes.
GPU placement by measurement
Voice models and the LLM run on separate GPUs: sharing one pushed the first audio from 262 ms to 2.4 s. Two TTS instances sit behind a load balancer.

Stack

  • Python
  • FastAPI
  • Pydantic AI
  • LangGraph
  • Gemma 4
  • Whisper
  • Qwen3-TTS
  • d3-flash
  • Oxigraph
  • BGE-M3
  • vLLM
  • htmx + SSE
  • WebSocket
  • MCP server

In figures

  • 27 skills
  • 262 ms to first audio
  • 120 ms per decision

Any-object inventory

Inside

Inside is built for moving house: photograph what goes into each box, and a vision-language model detects, names and cuts out any object, with no fixed list of categories. A QR code on the box shows its contents in 3D without opening it, and a multi-turn agent tells you where everything is. Books, receipts, bank cards and ID cards get dedicated readers on top.

Open the live demo: inside.oneplusone.be/demo
Inside on a phone: a photo of objects on a table with a bounding box drawn around each detected object
Object detection on a photo.

Pipeline of a photo

  1. PhotoWhat goes into the moving box
  2. GroundingGemma 4 returns a bounding box per object
  3. SegmentationSAM 2.1 and BiRefNet cut each object out
  4. QR labelTies the box to its contents
  5. IndexingKeywords and vectors in Meilisearch
  6. Agent"Which box are the HDMI cables in?"

Techniques

Any object: open-vocabulary detection
A vision-language model, Gemma 4, grounds every object in a photo as a box_2d through schema-constrained decoding, with no fixed class list. SAM 2.1 and BiRefNet then cut each object out of its background in a fault-tolerant queue.
QR labels and 3D box view
Printable QR label sheets tie each physical box to its record. Scanning a box's QR code (decoded in the browser with zxing-wasm) opens a three.js scene where the cut-out objects float inside the box volume.
Hybrid semantic search
Meilisearch blends keyword and vector search at a 0.5 semantic ratio, with BGE-M3 embeddings fetched by Meilisearch itself from a vLLM endpoint. Relevance cut-offs are relative and were calibrated on the live index.
Multi-turn agent, human in the loop
A Pydantic AI agent with about twenty typed tools runs inside a LangGraph graph (agent, confirm, execute) and keeps conversation memory across turns. Destructive actions hit an interrupt() and wait for human approval before they run.
Tool calling that reaches a code generator
One of the agent's tools is a code generator. When no pre-built tool can answer, such as a sum or a count across boxes, tool calling hands the question to a Qwen3-Coder sub-agent that returns a typed decision, text-to-SQL or Python, with the code; the result goes back into the answer. Guardrails: SQL is validated as read-only and runs against per-user temporary views that shadow the real tables.
Extras: books and receipts
A book cover is read by the VLM, its title and author isolated by named-entity recognition (spaCy), then matched against Google Books and OpenLibrary. A receipt goes to a dedicated agent that parses it into a typed record: merchant, lines, totals, and a geocoded address.
Extras: bank cards and ID cards
The VLM transcribes; code verifies. IBANs are checked by ISO 13616 mod-97, card numbers by Luhn, and the bank comes from a registry, never guessed. On identity cards, passports and driving licences, the machine-readable zone's check digits decide. Both sides of a card merge into one item.
MCP server
Seventeen tools let an external assistant read and edit the inventory; photos are uploaded out of band so image bytes never pass through the model's context.

Stack

  • Python
  • FastAPI
  • Pydantic AI
  • LangGraph
  • Gemma 4
  • Qwen3-Coder
  • SAM 2.1
  • BiRefNet
  • Meilisearch
  • BGE-M3
  • vLLM
  • three.js
  • Hotwire Turbo
  • WebAuthn
  • MCP server

In figures

  • 20 agent tools
  • 17 MCP tools
  • 1,280 commits since September 2025

Conversation digest

WhatsUpp

WhatsUpp reads a person's WhatsApp groups and private chats, separates signal (appointments, decisions, addresses) from chatter, and summarises what matters per day, per week and per period.

WhatsUpp, Updates page: the day's summary as four points, each with names in bold, dates underlined and the chats it comes from
WhatsUpp, a group chat shown in signal-only mode, with a selector for signal, all messages or noise
The day's summary, and a group chat filtered to signal only. Sample data.

Pipeline of a message

  1. WebhookMessages arrive in real time
  2. ThreadingMessages are grouped into exchanges
  3. ClassificationDecision model: signal or noise
  4. SummaryGemma 4, JSON-schema output
  5. IndexingKeywords and vectors in Meilisearch
  6. DeliveryLive web app and MCP server

Techniques

Classification by decision model
d3-flash answers one typed yes/no question per exchange with a probability, called through a custom Pydantic AI model class. It judges whole threads, then re-checks short messages one by one. It fails open: on an outage, a message is kept.
Structured outputs
Gemma 4 on vLLM writes each summary under a json_schema response format derived from typed models, so the page renders fields, never free text to be parsed.
Guardrails against prompt injection
Chat messages are untrusted input. They reach the model JSON-serialised inside fenced tags, so "ignore your instructions" in a group chat stays data.
Deterministic where possible
Names and dates in a summary are detected by code (Duckling for dates), not by the LLM. The model is used for judgment only.
Hybrid semantic search
Meilisearch combines keyword and BGE-M3 vector search over messages and summaries.
Live server-rendered UI
htmx with Server-Sent Events and Idiomorph. Each page fragment carries a SHA-256 fingerprint, so only fragments that really changed are pushed and morphed.

Stack

  • Python
  • FastAPI
  • Pydantic AI
  • d3-flash
  • Gemma 4
  • Meilisearch
  • BGE-M3
  • Duckling
  • vLLM
  • SQLite (WAL)
  • htmx + SSE
  • WebAuthn
  • MCP server

In figures

  • 38,000 messages processed
  • 147 groups
  • 727 automated tests

Legal retrieval

Lex Experimental

Lex is an experimental retrieval pipeline that answers questions about Belgian statutory law, such as the Civil Code and the Code of Economic Law. Every answer cites the articles it relies on, and every citation is checked against the source text before it is shown.

Pipeline of a legal question

  1. QueryOptional LLM query expansion
  2. Dense retrievalTop 100 articles from Qdrant
  3. Exact-match injectionCited article numbers are pinned in
  4. ColBERT rerankingLate interaction, token-level MaxSim
  5. Cross-encoder rerankingQuery and article scored as a pair
  6. Grounded generationSchema-constrained answer
  7. Citation checkEach quote verified in the source

Techniques

Cascading retrieval
A multi-stage RAG pipeline: each stage is more precise and more expensive than the last, and runs on fewer candidates. Dense retrieval for recall, two rerankers for precision, then the LLM. The stages are orchestrated with asyncio.
ColBERT late-interaction reranking
Candidates are re-scored with BGE-M3 multi-vector embeddings: one vector per token, compared with ColBERT's MaxSim. It catches the exact legal term a single pooled vector blurs away.
Cross-encoder reranking
bge-reranker-v2-m3 reads the question and each remaining article together and scores the pair, which is the most accurate and the slowest ranking, kept for the final shortlist.
Exact-match injection
When a question names an article, a book or a chapter, regular expressions turn it into a Qdrant payload filter and the matching articles are guaranteed a place in stage one, whatever the dense recall.
Structure-aware chunking
A chunk is a legal unit, one article or one paragraph of a long article, never a fixed token window. Embeddings come from BGE-Multilingual-Gemma2, selected on the bBSARD Belgian-law benchmark.
Grounded generation, verified citations
The answer is a Pydantic model enforced by constrained decoding. Each citation must match a retrieved article and its quote must appear verbatim in it; any article number the LLM invents is detected and flagged as a hallucination.

Stack

  • Python
  • asyncio
  • Pydantic
  • Qdrant
  • BGE-Multilingual-Gemma2
  • BGE-M3 (ColBERT)
  • bge-reranker-v2-m3
  • FlagEmbedding
  • GPT-OSS-120B
  • vLLM

In figures

  • 3 ranking stages before the LLM
  • 100 candidates in, a shortlist out
  • 2 checks on every citation

Shared foundation

The five applications are built on the same choices.

Local-first, open-weight models

Language, vision, embedding and voice models are open-weight, quantised (NVFP4) and served on-premises by vLLM on two NVIDIA DGX Spark machines, behind OpenAI-compatible endpoints. No data goes to a third-party AI provider.

Structured outputs everywhere

Every model call that feeds code goes through Pydantic schemas and constrained decoding. The LLM cannot return a malformed answer, and nothing is extracted from prose with regular expressions.

Agent-ready through MCP

Each application ships a Model Context Protocol server, so an external assistant such as Claude or ChatGPT can use it as a set of tools, behind a revocable token.

Passkeys only

Sign-in is WebAuthn with discoverable credentials and user verification: Face ID or a fingerprint. There is no password to steal.

Eval-driven

Prompts, decision thresholds and relevance cut-offs are measured on hand-labelled sets and on real indexes before they ship, and re-measured when a prompt or a model changes.

Streaming, server-rendered UIs

No single-page framework: HTML rendered on the server and pushed live over Server-Sent Events with htmx or Hotwire Turbo, installable as a PWA.