LurisQA: Your AI Civil Law Assistant

LurisQA is a fine-tuned, 4-bit quantized version of meta-llama/Meta-Llama-3-8B-Instruct, trained to understand and respond to real-world questions about civil law and make legal information more accessible.

This repository contains the GGUF version of the model, suitable for running locally with tools like Ollama.

๐ŸŽฌ Showcase

Check out this video to see LurisQA in action:

Running with Ollama

  1. Download unsloth_Q4_K_M.gguf from the Files and versions tab of this repository.

  2. Create a Modelfile in the same directory as the downloaded GGUF file:

FROM ./unsloth_Q4_K_M.gguf

TEMPLATE """{{- if .System }}
<|start_header_id|>system<|end_header_id|>

{{ .System }}<|eot_id|>
{{- end }}
<|start_header_id|>user<|end_header_id|>

{{ .Prompt }}<|eot_id|>
<|start_header_id|>assistant<|end_header_id|>

"""

SYSTEM """You are a legal expert. Provide accurate, well-reasoned legal insights using proper legal terminology. Maintain a professional, objective tone. Be specific about which laws or legal principles apply. Explain the person's rights, cite the relevant statute(s), and give a clear legal opinion. When unsure, advise consulting a qualified attorney."""

PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|eot_id|>"
  1. Create the model in Ollama:
ollama create LurisQA -f ./Modelfile
  1. Run it and start chatting:
ollama run LurisQA

Model Details

  • Developed by: Aditya Mogare and Enfysyz
  • Model type: Causal language model (decoder-only)
  • Base model: meta-llama/Meta-Llama-3-8B-Instruct
  • Quantization: 4-bit (GGUF, Q4_K_M, ~4.9 GB), runs on consumer hardware
  • License: MIT (use of the base model is also subject to the Meta Llama 3 license)

Uses

LurisQA is intended for educational and informational purposes.

  • Natural language understanding: ask questions in plain English, as you would on a forum, and get clear, concise answers.
  • Legal concept explanations: break down legal jargon into easy-to-understand language.
  • Topic exploration: contracts, torts, property law, family law, and more.
  • Case law summaries: high-level summaries of important cases and how the law was applied.

Training Data

The base model was fine-tuned on a curated dataset built from posts and comments on the r/legaladvice subreddit, chosen to teach the model how non-lawyers phrase legal questions and the real-world issues they face. The data was cleaned and formatted into a conversational instruction format.

Limitations and Bias

  • Not a lawyer: responses do not constitute legal advice and are not a substitute for professional counsel.
  • Potential inaccuracies: forum training data may contain errors, so outputs may be incorrect, incomplete, or outdated.
  • Jurisdictional nuances: civil law varies widely by jurisdiction, and the model may miss local specifics.
  • No knowledge of recent events: the model is unaware of legal developments after its training data.

โš ๏ธ Disclaimer

LurisQA does not provide legal advice. Information is for educational purposes only. Always consult a qualified attorney about your specific situation. The authors are not liable for any actions taken based on the model's output.

Citation

@misc{lurisqa_2026,
  title  = {LurisQA: A Fine-Tuned Llama 3 Civil Law Assistant},
  author = {Mogare, Aditya and Enfysyz},
  year   = {2026},
  url    = {https://huggingface.co/AdityaMogare/LurisQA}
}
Downloads last month
150
GGUF
Model size
8B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for AdityaMogare/LurisQA

Quantized
(282)
this model

Space using AdityaMogare/LurisQA 1