qwedai/qwed-verification

Sponsored OSS

By QWED-AI

โ€ขUpdated 28 days ago

QWED Protocol โ€“ Production Verification Layer for Enterprise AI & Agents

Image
Security
Machine learning & AI
Developer tools
0

4.5K

qwedai/qwed-verification repository overview

โ QWED Verification

Neurosymbolic AI Verification Layer
Verify LLM outputs with deterministic engines (SymPy, Z3, SQLGlot).

License CI/CD Sentry

โ Documentationโ  โ€ข Websiteโ 

โ ๐Ÿš€ About QWED

QWED is an open-source Neurosymbolic AI Verification Layer designed to make Large Language Models (LLMs) production-ready. It acts as a deterministic "Judge" that validates LLM outputs against mathematical proofs, logic constraints, SQL schemas, and code security rules before they reach your users.

  • The Problem: LLMs are probabilisticโ€”they hallucinate math, invent facts, and generate insecure code.
  • The Solution: QWED accepts LLM outputs only if they can be verified by a deterministic solver (SymPy, Z3, AST, CrossHair).

โ โœจ Key Features

  • 11 Verification Engines:
    • ๐Ÿงฎ Math: Symbolic math verification via SymPy.
    • โš–๏ธ Logic: Formal logic proof via Z3 Prover.
    • ๐Ÿ—„๏ธ SQL: Schema validation and injection prevention via SQLGlot.
    • ๐Ÿ›ก๏ธ Code: AST analysis and symbolic execution.
    • ๐Ÿ” System: Shell command blocking and secret scanning.
    • Plus: Schema, Facts, Stats, Reasoning, Image, Consensus.
  • Model Agnostic: Works with OpenAI, Anthropic, Gemini, Llama, Mistral, and local models (Ollama).
  • Zero-Trust Architecture: 100% deterministic verification running locally in your container.
  • Enterprise-Ready: PII masking, Sentry error tracking, audit logs, and async processing.

โ ๐Ÿ“ฆ Quick Start

โ 1. Pull the Image
docker pull qwedai/qwed-verification:latest
โ 2. Run the Container
docker run -p 8000:8000 qwedai/qwed-verification:latest

The API will be available at http://localhost:8000.

โ 3. Verify an LLM Output
curl -X POST "http://localhost:8000/verify" \
-H "Content-Type: application/json" \
-d '{
  "engine": "math",
  "query": "What is the integral of x^2?",
  "llm_output": "3x"
}'

Response:

{
  "verified": false,
  "explanation": "Incorrect. The integral of x^2 is x^3/3.",
  "correction": "x^3/3"
}

โ ๐Ÿ”— Project Resources

โ ๐Ÿค Contributing to QWED

We welcome community contributions.

Ways to help:

  • Fix bugs
  • Add verification engines
  • Improve documentation
  • Expand SDK support

Resources:

โ ๐ŸŒ The QWED Ecosystem

QWED is not just a verifier โ€” it is a protocol layer for AI safety.

Specialized Packages:


License: Apache 2.0โ 
Maintained by: QWED AI

Tag summary

Content type

Image

Digest

sha256:1386bf1b4โ€ฆ

Size

111.8 MB

Last updated

28 days ago

docker pull qwedai/qwed-verification

This week's pulls

Pulls:

150

Last week