HomeCase StudiesThe Knowledge Exchange: From 4,754 Legal Documents at Launch to Instant, Citation-Backed Answers
Do Better Norge Legal / AI Norway

The Knowledge Exchange: From 4,754 Legal Documents at Launch to Instant, Citation-Backed Answers

The corpus behind the platform. How Blue Note Logic built Do Better Norge a private, citation-backed knowledge base of Norwegian custody, child-welfare and ECHR family-life material, using its Knowledge as a Package (KaaP) service on caveauAI.

Do Better Norge needed a way to give Norwegian families instant access to reliable legal guidance across custody law, child welfare regulations, and ECHR case law. Blue Note Logic ingested 4,754 legal documents into caveauAI via its KaaP service — delivering a searchable, citation-backed knowledge base with sub-3-second response times; documents, retrieval and embeddings are EU-hosted, and answer generation is routed to external model providers.

The Knowledge Exchange: From 4,754 Legal Documents at Launch to Instant, Citation-Backed Answers

Challenge

Norwegian families navigating custody disputes, Barnevernet (child welfare) interventions, and cross-border legal proceedings face a fragmented legal landscape. Court decisions, statutory frameworks, European Court of Human Rights (ECHR) rulings, and procedural guidelines are spread across dozens of sources — most available only in Norwegian legal terminology that non-lawyers struggle to interpret.

Do Better Norge, a multilingual family rights advocacy platform, needed to provide instant, reliable answers grounded in actual legal sources — not generic AI summaries, but citation-backed responses traceable to specific court decisions, statutes, and ECHR judgments.

The requirements were clear:

  • Ingest thousands of legal documents — court rulings, statutes, regulatory guidance, ECHR case law
  • Deliver answers with source citations that link back to original documents
  • Support cross-language queries (Norwegian, English, Ukrainian, Polish)
  • Maintain EU data residency for the corpus, retrieval and embeddings
  • Provide sub-5-second response times for real-time consultation use

Our Response

Blue Note Logic deployed its KaaP (Knowledge as a Package) service to build the Norwegian Family Law Corpus — a production-grade, searchable legal knowledge base running on the caveauAI platform.

Corpus Construction

The team ingested 4,754 legal documents including:

  • 773 court decisions from Norwegian district courts, appeals courts, and the Supreme Court
  • The Children Act (Barnelova), Child Welfare Act (Barnevernsloven), and related statutory frameworks
  • ECHR case law relevant to Article 8 (right to family life) and Norwegian family proceedings
  • Barnevernet procedural guidelines and administrative regulations
  • Legal commentary and academic analysis from Norwegian family law practitioners

Platform Integration

The corpus was deployed on caveauAI with full REST API access, enabling Do Better Norge to embed legal search directly into their platform. Every response includes source citations with document references, enabling users to verify answers against original legal texts.

Query Intelligence

caveauAI processes queries using 768-dimension semantic embeddings, matching user questions to relevant document passages regardless of exact phrasing. A Norwegian-speaking user asking about "samværsrett etter barnevernstiltak" (contact rights after child welfare intervention) receives the same quality results as an English query for "visitation rights following Barnevernet case."

Technical Deep Dive

Infrastructure: EU-hosted on Hetzner servers in Helsinki and Falkenstein. Documents, the vector store and the 768-dimension embedding model (nomic-embed-text) run on Blue Note Logic’s own infrastructure; inter-node traffic is encrypted over a WireGuard mesh. Blue Note Logic owns no GPU — heavier language-model generation is routed to external inference providers, on the providers’ own GPUs, never on BNL machines.

Models: Qwen 2.5 72B Instruct, accessed via OpenRouter through LiteLLM, for legal reasoning — not self-hosted. A 768-dimension embedding model (nomic-embed-text) runs on BNL’s own infrastructure for semantic search across the full corpus. Retrieval and the vector store run on BNL infrastructure; answer generation is the one step routed to an external provider, so the model can be changed without redeployment.

Architecture: Cryptographic tenant isolation ensures corpus data is never shared across clients. Document chunking at ~512 tokens with overlap, indexed into a vector store for sub-second retrieval. RAG (Retrieval-Augmented Generation) pipeline combines relevant passages with the query for grounded, citation-backed responses.

API: REST endpoints — POST /api/v2/chat for conversational queries, POST /api/v2/search for direct semantic search. API key authentication, rate limiting, and full audit logging.

Outcomes

The Norwegian Family Law Corpus is now live on caveauAI and integrated into the Do Better Norge platform — providing families with instant, citation-backed legal guidance.

Key Results

  • 4,754 documents ingested, indexed, and searchable
  • Sub-3-second response times for complex legal queries with source citations
  • Cross-language support — queries in Norwegian, English, Ukrainian, and Polish return accurate results from Norwegian-language source documents
  • 100% source traceability — every answer includes references to specific court decisions, statutes, or regulatory documents

What This Means for Families

A parent preparing for a custody hearing can now ask a question in plain language and receive a grounded answer with citations to actual court precedents — in seconds, not days. The legal playing field becomes more level when reliable information is accessible to everyone, not just those who can afford expensive legal counsel.

KaaP Marketplace

The caveauAI KaaP Exchange is a knowledge marketplace where domain experts can monetize their expertise; the Norwegian family-law corpus powers the Do Better Norge platform and is not currently a listed collection on it. Additional corpora in development include EU AI Act & GDPR regulations and EU Construction compliance frameworks.