INCONCLUSIVE even when that evaluation succeeds (see the Math engine). A model that translates more reliably gives fewer failed verifications. Larger hosted models (GPT-4 class, Claude) usually translate more reliably than small local models, but measure this on your own workload: QWED publishes no accuracy figures for any model.
๐ฏ The core problem
Verification requires two things:- LLM translates the query (natural language โ structured reasoning)
- Symbolic verifier proves the answer (SymPy, Z3, AST)
๐ How model answer quality shows up
Math verification example
Query: โWhat is the integral of 2x?โ For this query, a correct model answer is โxยฒ + Cโ. A smaller model may instead answer โ2xยฒโ or confuse the derivative with the integral. QWED does not publish accuracy rates per model; try your own queries against the models you are considering.Why this matters
When QWED verifies:๐ค When to use each
๐ก QWEDโs hybrid approach
Best Practice: Use both strategicallyDevelopment setup (free)
Use for: Prototyping, experimentation, learning
Production setup (reliable)
Use for: Production, high-stakes decisions
๐ฐ Cost analysis
Local LLM (Ollama)
- Setup: 10 minutes (download model)
- Monthly Cost: $0
- Translation quality: depends on model size; measure on your workload
- Privacy: 100% local
- Best for: Development, testing, learning
Cloud LLM (OpenAI GPT-4o-mini)
- Setup: 2 minutes (API key)
- Monthly Cost: $5-10 (with caching)
- Translation quality: usually higher than small local models; measure on your workload
- Privacy: Use PII masking
- Best for: Production, critical tasks
With QWED caching (cost savings)
๐ Privacy considerations
Local LLM advantages
โ Private โ data stays on your machineโ No API keys - no third-party access
โ Data residency - no third party processes the data (this alone does not make a system GDPR or HIPAA compliant)
Cloud LLM with PII masking
๐ฏ Recommendation by use case
Healthcare (HIPAA)
Finance (PCI-DSS)
Enterprise (general)
๐ The QWED advantage
With a local LLM, the deterministic check still runs.Scenario: local LLM makes mistake
- More failures = worse UX
- Cloud LLMs = fewer verification failures = better UX
๐ Measuring it yourself
QWED does not publish per-model accuracy figures. To choose a model, run a sample of your real queries through each candidate and compare how often the formal statement in the result matches what you meant, and how often verification fails because of a bad translation. QWEDโs own evaluation results are at qwedai.tech/evidence.๐ Bottom line
Start with local LLM
Scale to cloud LLM
๐ Related documentation
- LLM configuration guide โ complete LLM setup
- PII masking guide โ privacy protection
- Caching guide โ cost savings
โ FAQ
Q: Can I use Llama 3 70B instead of GPT-4?A: Yes. Larger local models (70B+) usually translate more reliably than small ones but need significant hardware (40GB+ VRAM). Q: Is Ollama really free?
A: Yes! Fully open source. You just need hardware to run it. Q: What about Google Gemini?
A: QWED supports Gemini. Test its translation quality on your own queries, as with any model. Q: Can I switch between local and cloud?
A: Absolutely! Change the
provider parameter anytime.
Q: Do I need PII masking with local LLMs?A: Not necessarily, but itโs still good practice for audit trails.
The choice is yours - QWED works with both! ๐ Recommendation: Start local (free), scale to cloud (reliable) when it matters.