docs.tiesa.tech · en-GB
Architecture & structure
Detailed Mermaid and sequence live here so Search and Home stay light. Mobile-friendly law search tooling is rare — this site is the blueprint for Karolis and for serious readers (including potential competitors) who want the exact structure.
1. Host → project → repo map
- tiesa.tech / www.tiesa.tech → Vercel
tiesa-radau→ gitKuglys/radau(private) — apex home with three product doors (Dora, Radau, MCP). Middleware rewrites/→/apex. - radau.tiesa.tech →
tiesa-radau/Kuglys/radau· Production (main) — law Search over DORA + NIS2 (EN/LT), MiniSearch BM25 + optional 1-hop cite expand. - beta.radau.tiesa.tech → same project/repo · Preview / branch
beta/mcdm-topsis— Prod search plus Beta-only AHP–TOPSIS ranking lane (not merged intomain). - dora.tiesa.tech → Vercel
tiesa-dora→ gitKuglys/dora-graph-rag-prototypes(private) — frozen research PoC (Graph RAG vs Jev). Product routes unchanged. - mcp.tiesa.tech → greeting only today. Historically still shimmed on
tiesa-dora(/mcp-greeting); dedicated static projecttiesa-mcp/Kuglys/tiesa-mcpis the target host. - docs.tiesa.tech →
tiesa-radau/ Production — this page. Middleware rewrites/→/docs. Preview on any deploy:?docs=1.
All three GitHub repos are private. Profile: github.com/Kuglys.
2. Where things sit in the Radau repo
src/app/— routes:/(product home),/search,/apex(tiesa.tech),/docs(this site).src/middleware.ts— host rewrites for apex + docs; preview flags?apex=1/?docs=1.src/lib/search.ts— MiniSearch index build + BM25 query (title boost, fuzzy, prefix).src/lib/graph-expand.ts— 1-hop cite expand (Prod walk-cap; Beta can expand-all then rank).src/lib/packs.ts,data.ts,types.ts— pack registry and loaders.src/lib/mcdm/— Beta branch only (AHP–TOPSIS). Absent onmain.public/data/packs/<packId>/—docs.json,graph.json, meta; registry atpublic/data/registry.json.scripts/prepare-packs.mjs(+ validate / cleaned-pack builders) — prep pipeline for corpus packs.src/components/— Nav, QueryBar, PackPicker, GraphCanvas, Mermaid (docs), etc.
3. Pack layout
- Four packs today:
dora-en,dora-lt,nis2-en,nis2-lt. - Document IDs are
packId:localId(pack-scoped; no cross-pack collisions). - One MiniSearch index and one cite graph per pack (loaded when that pack is selected).
- Edge type used for expansion:
cites(covers were dropped from the legend — packs only have cites).
4. Query pipeline sequence
- Select pack → load its docs + graph from
public/data/packs/…. - Build / reuse MiniSearch → BM25 over title + text.
- Optional: 1-hop cite expand from BM25 seeds.
- Prod: walk-cap graph extras (≤ 8 new rows).
- Beta only: expand-all qualifying neighbours → AHP–TOPSIS top-k “greens” (query-aware features). Not on
main. - Render ranked passages + graph; passages ≠ legal advice.
5. Live links
- radau.tiesa.tech — Search (Production)
- beta.radau.tiesa.tech — Beta MCDM lane
- dora.tiesa.tech — frozen PoC
- tiesa.tech — apex doors
- mcp.tiesa.tech — MCP greeting
- GitHub orgs/repos — private (Kuglys)
Preview this docs surface on a Vercel preview URL with ?docs=1 (mirrors ?apex=1 for the home).