marklok/danishmike

Mike fork adapted for Danish legal practice, with pgvector-backed statute retrieval and backend-mediated profile access

Two distinct tracks. The law-retrieval stack (Danish statutes + EU regulations) is the fork's main differentiator and arrived in a four-commit batch. The profile API refactor is a single architectural commit. Both tracks show active, purposeful development rather than exploratory branching.

View on GitHub →

marklok/danishmike is targeting the Danish legal market. The two main topics so far are a full RAG pipeline for Retsinformation statutes and EUR-Lex regulations (with inline citations in the chat UI), and a backend-API layer replacing direct Supabase reads/writes for user-profile data.

The retrieval work is the more technically substantial piece: a document_chunks pgvector table, section-reference detection for Danish citation syntax ("§ 42, stk. 3"), and a metadata-fallback merge on top of embedding search. The citation UI adds a slide-in panel and fixes a latent bug where page:null citations were silently dropped.

The profile refactor narrows what the browser can write - an explicit PATCH allowlist versus the prior RLS-only approach - but brings two issues worth checking: API keys flowing through request bodies without visible log scrubbing, and message_credits_used being client-writable.

What's in it

Direction

searchi18n

Activity

Themed changes and pull requests touching this fork, newest first. Themed changes that haven't been turned into a public post yet still appear — they're real work even without a published writeup.

Threads of work (detailed view)

4 threads have been distilled into posts.

Danish statute + EUR-Lex RAG pipeline with clickable inline citations

marklok adds a full legal-retrieval stack over four commits: pgvector-backed ingestion for Retsinformation statutes and EUR-Lex regulations, section-reference-aware retrieval, and a slide-in citation panel in the chat UI. The fork is clearly targeting Danish legal practice.