ML & AI engineering · Fabian Tax
How an AI assistant comes together
A grounded assistant has an offline preparation path and an online question-answering path. These stages are a practical map, not a claim that every assistant needs every component.
- 01 · Prepare the knowledge
-
Collect, parse, clean and version the material the assistant may use. Extract entities and relations when structure helps.
Technologies: tree-sitter · Apache Arrow / Parquet · DuckDB · GLiNER · GLiREL · ReLiK - 02 · Build the index
-
Create lexical, vector and, where useful, graph indexes so relevant evidence can be found.
Technologies: tantivy / SQLite FTS5 · BGE / E5 / Qwen3 embeddings · HNSW · knowledge graphs - 03 · Retrieve and rank
-
For a question, retrieve candidates, combine result lists and rerank the strongest evidence before generation.
Technologies: BM25 · dense search · Reciprocal Rank Fusion · ColBERT / PyLate · cross-encoders - 04 · Generate and serve
-
Assemble the question and selected context, then run a model and return the answer. Retrieval is optional for a chat assistant but essential when an answer must draw on a specific corpus.
Technologies: llama.cpp · vLLM · llama-swap · ONNX Runtime · FastAPI - 05 · Evaluate and improve
-
Measure retrieval and answers against representative questions; investigate failures and only fine-tune when evidence supports it.
Technologies: labelled reference sets · paired tests · LLM-as-judge · PyTorch · PEFT / LoRA · Unsloth / TRL - Across all stages · Operate
-
Monitor health, latency, throughput and quality; improve serving without assuming faster means better answers.
Technologies: OpenTelemetry · Prometheus / OpenObserve · KV-cache quantisation · speculative decoding