Get your simplified, jargon-free medical aid assistant running in minutes!
Helps South Africans understand their medical aid in plain English:
- ✅ Simple answers first - no confusing jargon
- ✅ Rand amounts - real costs you'll actually pay
- ✅ SA terminology - Medical Aid, GP, Casualty (not American terms)
- ✅ Local context - Netcare, Discovery, PMBs, gap cover, etc.
- ✅ 100% private - runs on your machine, R0 cost
# macOS
brew install ollama
# Linux
curl -fsSL https://ollama.com/install.sh | sh
# Windows: Download from ollama.com# Start Ollama service
ollama serve
# In another terminal, pull model
ollama pull llama3.2 # 2GB, good quality
# OR
ollama pull llama3.1:8b # 4.9GB, better quality# Install dependencies
npm install
# Build project
npm run build
# Run the simplified South African version
npm run sa
# OR see a demo
npm run demo:saAsk naturally, like you're texting a friend:
"If I break my arm, what will I actually pay?"
"What's the difference between Plan A and Plan B?"
"Do I need gap cover?"
"What does 'co-payment' mean?"
"Can I see any doctor or must I use network doctors?"
"Why is my medical aid rejecting my claims?"
"What are PMBs and why do they matter?"
"How do I know if I need comprehensive or hospital plan?"
"Your plan includes a R450 co-payment for admissions with 200% of medical aid rate for specialists, subject to savings account depletion and subsequent threshold application for ATB..."
❌ User: "I have no idea what that means!"
💡 SIMPLE ANSWER: If you break your arm and need hospital:
- You pay R450 when checking in (like an entrance fee)
- Everything else is covered at a network hospital
- If your specialist charges more than medical aid pays, gap cover helps
💰 WHAT THIS COSTS YOU:
- Hospital admission co-payment: R450
- X-rays & treatment: R0 (covered)
- If specialist charges R2,000 but medical aid pays R1,400: You pay R600 (or gap cover pays it)
Total: Around R450-R1,050 depending on your gap cover
✅ User: "Ah, that makes sense!"
# Main South African version (simplified answers)
npm run sa
# See a demo with example question
npm run demo:sa
# View jargon dictionary
# (In the app, type 'glossary')
# Try different AI models
# (In the app, type 'models', then 'switch mistral')
# Exit
# (Type 'exit')- No jargon in main answer
- Analogies and examples
- "Like your Netflix subscription..."
- Medical Aid (not just "insurance")
- Rands (R) not Dollars ($)
- British/SA English (hospitalisation, not hospitalization)
- Local terminology (PMBs, gap cover, network hospitals)
- Shows actual Rand amounts
- Explains when you pay
- Compares plans with numbers
- 25+ medical aid terms explained
- Simple definitions
- Real-world analogies
- Type 'glossary' to see all terms
- ✅ Comprehensive vs. Hospital Plans
- ✅ Network vs. Non-network options
- ✅ Savings accounts explained
- ✅ Above Threshold Benefits (ATB)
- ✅ Co-payments and gap cover
- ✅ "I need to go to hospital - what will I pay?"
- ✅ "Should I get gap cover?"
- ✅ "What are PMBs?"
- ✅ "Why did my claim get rejected?"
- ✅ "Can I see any doctor?"
- Co-payment / Co-pay
- Medical aid rate vs. what doctors charge
- Savings account
- Threshold / ATB
- PMBs (Prescribed Minimum Benefits)
- Network vs. Non-network
- Gap cover
- And 20+ more
# Start Ollama in separate terminal
ollama serve# Pull a model first
ollama pull llama3.1:8b# Use smaller, faster model
ollama pull phi3 # Only 2.3GB
# Then switch in the app
switch phi3| Aspect | This (Ollama Local) | MCP + Claude |
|---|---|---|
| Cost | R0 | ~R8,000/month |
| Privacy | 100% local | Cloud-based |
| Quality | Good | Excellent |
| Speed | 5-10 seconds | 2 seconds |
| Setup | 15 minutes | 5 minutes |
| Internet | Not needed | Required |
| Best for | Development, MVP, privacy | Production |
documents-sa.ts- SA medical aid plans (Rands, SA terms)insurance-glossary-sa.ts- Jargon dictionary (25+ terms)ollama-simplified.ts- Main app with simplified answerssa-medical-aid.ts- NEW: South African version you run
SETUP_SA.md- This fileCLAUDE.md- Full technical documentationREADME.md- Original project overview
production-example.ts- How to scale with vector DBweb-interface-example.ts- How to build web UI
- ✅ Test with the demo (
npm run demo:sa) - Add your own medical aid plan documents
- Test with real questions from users
- Iterate based on feedback
- Use Ollama for development (R0 cost)
- Test thoroughly with real users
- When ready, deploy with Claude for better quality
- Keep Ollama version for staging/testing
Development (This Setup):
- Hardware: R0 (use existing computer)
- AI queries: R0 (unlimited local)
- Total: R0/month
Production (When Ready):
- Claude API: ~R8,000/month (for 5,000 queries/day)
- Infrastructure: ~R3,000/month
- Total: ~R11,000/month
Hybrid Approach (Recommended):
- Develop with Ollama: R0
- Deploy with Claude: R11,000/month
- Keep Ollama for testing: R0
- Best value!
Ollama Issues:
- https://github.com/ollama/ollama
- Run
ollama --help
Project Issues:
- Check build:
npm run build - Verify Node version:
node --version(need 18+)
- Ollama installed and running
- Model pulled (llama3.1:8b or llama3.1)
-
npm installcompleted -
npm run buildsuccessful -
npm run demo:saworks - Can ask questions and get clear answers
- Answers are in South African context (Rands, SA terms)
- Response time acceptable (<30 seconds)
All checked? You're ready! 🎉
- "Finally makes sense!" - No more confusing jargon
- "Shows me what I'll pay" - Real Rand amounts
- "Local context" - Uses SA medical aid terms
- "Private" - Runs on my machine, data stays local
- "Free!" - R0 cost for development
⏱️ Setup time: 15 minutes 💵 Cost: R0 🇿🇦 Language: South African English 🔒 Privacy: 100% local
Run now: npm run sa