Morbi is a domain-specialized large language model built for professional financial services applications. Named after the actuarial term for mortality/morbidity analysis, Morbi provides expert-level assistance across interconnected professional domains.
Not for: Medical diagnosis, investment advice requiring fiduciary duty, legal representation
Not a substitute for: Licensed professionals (CPAs, attorneys, actuaries, financial advisors)
Should not be used for: High-stakes decisions without professional verification
Domain Expertise
Insurance & Actuarial Science
Life Insurance Health Insurance Actuarial Methods
├── Term Life ├── Medical ├── Mortality Tables (CSO, VBT)
├── Whole Life ├── Dental/Vision ├── Interest Theory
├── Universal Life ├── Disability (STD/LTD) ├── Life Contingencies
├── Variable Life ├── Long-Term Care ├── Reserve Calculations
├── Indexed Products └── Medicare/Medicaid ├── Premium Development
└── Annuities └── Experience Studies
Prompt: What are the key differences between term and whole life insurance?
Response: Term life insurance provides pure death benefit protection for a specified period (10, 20, or 30 years) with no cash value accumulation. Premiums are lower initially but increase upon renewal. Whole life insurance provides lifetime coverage with guaranteed level premiums and builds cash value on a tax-deferred basis. The cash value can be accessed through policy loans or withdrawals. Key considerations include: (1) affordability vs. permanence, (2) need for cash value accumulation, (3) estate planning objectives, and (4) the insured's age and health status...
Actuarial Example
Prompt: Calculate the present value of a life annuity-due for a person age 65.
Response: To calculate the present value of a life annuity-due (ä_65), we use the formula: ä_x = Σ(v^k × k_p_x) for k=0 to ω-x, where v = 1/(1+i) is the discount factor, k_p_x is the probability of surviving k years, and ω is the limiting age. Using the 2017 CSO mortality table at 4% interest...
Accounting Example
Prompt: When does UCC Article 2 apply instead of common law for contracts?
Response: UCC Article 2 applies to contracts for the sale of goods, while common law governs contracts for services, real estate, and intangibles. Key distinctions: (1) Goods are defined as movable, tangible personal property at the time of identification to the contract; (2) Mixed contracts (goods + services) use the predominant purpose test; (3) UCC provides different rules for offer/acceptance (battle of forms §2-207), statute of frauds ($500 threshold), and warranties...
Legal Example
Prompt: Explain the hearsay rule and its major exceptions.
Response: Hearsay is an out-of-court statement offered to prove the truth of the matter asserted (FRE 801). It is generally inadmissible because the declarant was not under oath and cannot be cross-examined. Major exceptions include: (1) Present sense impression (FRE 803(1)); (2) Excited utterance (FRE 803(2)); (3) State of mind (FRE 803(3)); (4) Medical diagnosis (FRE 803(4)); (5) Business records (FRE 803(6)); (6) Former testimony (FRE 804(b)(1)); (7) Dying declaration (FRE 804(b)(2))...
Usage
Quick Start
python
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3from peft import PeftModel
45# Load base model6base_model = AutoModelForCausalLM.from_pretrained(7"mistralai/Mistral-Small-Instruct-2409",8 torch_dtype=torch.bfloat16,9 device_map="auto",10 trust_remote_code=True11)1213# Load LoRA adapter14model = PeftModel.from_pretrained(base_model,"h3ir/morbi-v022-lora")15tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-Small-Instruct-2409")1617# Generate response18prompt ="""<s>[INST] You are Morbi, an expert AI assistant specializing in insurance, actuarial science, accounting, and legal matters.
1920What is the difference between GAAP and IFRS for revenue recognition? [/INST]"""2122inputs = tokenizer(prompt, return_tensors="pt").to(model.device)23outputs = model.generate(24**inputs,25 max_new_tokens=512,26 temperature=0.7,27 do_sample=True,28 top_p=0.929)30print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Prompt Format
Morbi uses the Mistral instruction format with a specialized system prompt:
<s>[INST] You are Morbi, an expert AI assistant specializing in insurance, actuarial science, accounting, and legal matters.
{your question here} [/INST]