Local LLMs
Running models on GPUs, configuring Ollama and a shared API through LiteLLM. Selecting models for conversation, coding and embeddings.
LOCAL LLMS / AI AUTOMATION
I run local LLMs, connect them to applications and vector databases, and design data flows. I validate solutions with tests covering the complete process, from the API call to the model’s response.
01 / WORKING TOGETHER
Running models on GPUs, configuring Ollama and a shared API through LiteLLM. Selecting models for conversation, coding and embeddings.
Prototyping document retrieval. Connecting embeddings, Qdrant and a language model, and testing answers grounded in the retrieved context.
Designing workflows connecting APIs, data and language models. Choosing tools for a specific process, error handling and result validation.
Connecting models to applications and observing model calls with Langfuse. Testing APIs, streaming, tool use and the behavior of generated code.
02 / ARCHITECTURE
Between a chat demo and an assistant a company can trust, there are several layers. Each solves a specific problem: current knowledge, acting in business systems, permissions, attacks, costs and quality control.
A model on business terms: no training on customer data, responses constrained by JSON Schema and logging in my own backend instead of employees’ personal accounts.
Role, tone and source citation rules. I do not treat it as a security control: permissions are enforced by the next layers, not by a request in the prompt.
Hybrid search (keywords and vectors) with reranking. Documents split by structure, PDF tables extracted with their columns intact, and answers that point to the source.
The model acts in a CRM, calendar or shop through MCP servers: tools with typed parameters and idempotency keys. Reads run automatically, writes after human approval.
The role from the user’s token filters documents and tools before anything reaches the model. Data the user may not see never enters the context.
Input and output filters: prompt injection, including instructions hidden in documents, and masking of personal data and secrets. Amount limits and allow-lists enforced in code, not in the prompt.
Simple questions go to a cheap model, hard ones to a strong model, through a shared API gateway. A semantic cache keyed by role, so an answer never crosses permission levels.
A trace for every answer: retrieved passages, tool calls, latency and cost. A set of control questions runs in CI/CD after every change to the prompt, the model or the document parser.
I deliver in stages: first a read-only knowledge assistant with access control and tracing from day one. Then tools with write approval and guardrails. Finally, cost optimization based on real traffic.
03 / PERSONAL PROJECT
My own technical projects: an environment with locally hosted models, a shared API, vector retrieval and a coding agent, plus AI tools for everyday work with code. The examples below describe what I built and its documented tests and prototypes.
I integrated Ollama, LiteLLM, Open WebUI and SearXNG in a Docker Compose environment with NVIDIA acceleration. Tests covered model responses, streaming, tool calling and embedding generation.
I connected local embeddings, Qdrant and a language model. A test using synthetic documents checked data ingestion, retrieval of the relevant passage and an answer containing information from that passage.
I configured a local OpenCode agent and model-call monitoring in Langfuse. I checked file reading through the agent’s tool and the recording of model calls and usage data through LiteLLM.
I built a Claude Code plugin for Drupal projects: skills with coding and deployment rules, an agent that runs phpcs, PHPStan, PHPUnit and Drush and reports only errors, and a hook that blocks commits with coding standard errors. It is complemented by secret scanning before each commit, GitHub Actions deployments and agents working in an isolated environment without access to real keys.
A simplified question flow in the RAG prototype
Describe the current workflow, data sources and desired result. This provides a starting point for choosing integrations, models and a way to validate the solution. I also work as an AI operator, running agents in everyday work and reviewing their output.