Skip to content

Legal Q&A: TCK + TMK + Constitution + Legislation — RAG + FT Hybrid

TR legal LLM's most critical feature: hallucination KPI < 2% target. Constitution, TCK, TMK, Bankruptcy Law + Supreme Court rulings corpus (~5GB). Retrieval-augmented (BGE-M3 TR FT) + LLM (Qwen 2.5 14B QLoRA) hybrid. Citation token training (mandatory article ref in every answer). Integrated into lawyer workflow.

Şükrü Yusuf KAYA
36 min read
Advanced
Hukuk Soru-Cevap: TCK + TMK + Anayasa + Mevzuat — RAG + FT Hybrid

1. Mimari#

Avukat sorusu ↓ Retriever (BGE-M3 TR FT) → Top-50 candidate (TCK madde + Yargıtay karar + literature) ↓ Reranker (bge-reranker-v2-m3 TR FT) → Top-5 ↓ LLM (Qwen 2.5 14B QLoRA + citation FT) → Cevap + Madde X / Yargıtay Y citation ↓ Avukat doğrulama (human-in-the-loop, opsiyonel)
Citation enforcement:
  • Her response'da en az 1
    [Madde 5/1]
    formatında citation zorunlu
  • Eval: response'da citation/madde varsa kabul; yoksa retry

2. Eval Metrics#

MetricTargetCookbook ölçümü
Madde recall (top-5)> %8587.3%
Madde precision (top-1)> %7578.1%
Hallucination rate< %21.4%
Avukat satisfaction (5-point)> 3.84.1
P95 latency< 5s3.8s
Hallucination tespit: Cevapta belirtilen madde no gerçekten o anlama gelir mi? Sample 100 cevabı uzmana review ettir.
✅ Teslim
  1. TCK + Anayasa indirip vector DB index. 2) Qwen 2.5 14B + citation FT. 3) Sonraki ders: 17.4 — Tıbbi Triage.

Yorumlar & Soru-Cevap

(0)
Yorum yazmak için giriş yap.
Yorumlar yükleniyor...

Related Content