Skip to main content

Open source AI evaluation, validation, benchmarking, recommendation engine and trust layer for LLMs

Project description

OpenVals

Enterprise AI Evaluation & Trust Platform Evaluate. Benchmark. Trust. Deploy AI/ML with Confidence.

OpenVals is evaluation + trust infrastructure for LLMs, SLMs, local AI, private AI, and public AI designed to help organizations measure, compare, and trust AI models before deployment.

Python Repo Size Last Commit

🚀 Why OpenVals?

AI models are powerful—but without proper validation, they are unpredictable, insecure, and hard to trust. Most AI evaluation tools stop at metrics.

OpenVals exists to solve that.

It provides a structured way to:

  • ✅ Aligns evaluation with business objectives
  • ✅ Supports deployment decision-making
  • ✅ Quantifies trust, risk, and performance
  • ✅ Evaluate model performance
  • ✅ Benchmark multiple models
  • ✅ Normalize and compare results
  • ✅ Introduce trust before deployment

This is especially critical for:

  • ✅ LLMs and generative AI
  • ✅ Enterprise AI systems
  • ✅ Regulated industries
  • ✅ Security-sensitive environments

Most AI models look great in demos—but fail in production.

OpenVals answers:

  • Which model is actually best for your use case?
  • How do models compare beyond just “accuracy”?
  • Can I trust this model in production?
  • Which model is fastest, safest, and most reliable?

Core Capabilities

0. Decision Reliability Score (DRS)

OpenVals introduces DRS (Decision Reliability Score) — a production-oriented scoring framework designed to evaluate whether an AI model can be trusted in real-world deployment environments.

Unlike traditional benchmarks that focus only on accuracy, DRS evaluates:

  • Accuracy
  • Embedding-based semantic + accuracy hybrid scoring
  • Reliability
  • Safety
  • Consistency
  • Variance
  • Latency

DRS helps organizations move beyond leaderboard-style benchmarking toward deployment-ready AI validation.

DRS combines traditional evaluation metrics with embedding-powered semantic intelligence to better reflect real-world AI performance and deployment reliability.

$$ Score = \sum_{i=1}^{n}(w_i \times m_i) $$

1. Model Evaluation

Evaluate model outputs against structured datasets using:

  • Accuracy
  • Embedding-based semantic similarity
  • Reliability
  • Safety
  • Consistency
  • Variance
  • Latency

2. Multi-Model Benchmarking

Compare multiple models under the same conditions:

  • Side-by-side evaluation
  • Normalized scoring
  • Model ranking
  • Performance insights

3. Scoring Engine

Weighted scoring aligned to business priorities:

Trust Score = Σ (wᵢ × mᵢ)

  • Customize weights per use case

  • Balance accuracy, cost, and latency

4. Extensible Architecture

  • Plug-and-play model adapters
  • Custom metrics support
  • Scalable evaluation pipelines

5. Recommendation Engine

OpenVals includes an AI recommendation engine capable of:

  • identifying optimal models
  • evaluating deployment readiness
  • analyzing tradeoffs
  • surfacing operational risks
  • generating trust recommendations

6. Semantic Intelligence Engine

OpenVals now includes embedding-powered semantic evaluation using sentence-transformers.

This enables:

  • Meaning-aware evaluation
  • Contextual similarity scoring
  • Better benchmarking realism
  • Reduced keyword-based bias
  • More accurate production validation

Current embedding model:

  • all-MiniLM-L6-v2

Future roadmap includes:

  • OpenAI embeddings
  • BGE embeddings
  • InstructorXL
  • Enterprise/private embedding systems

Supported Benchmark Domains

  • Finance
  • Cybersecurity
  • Legal
  • Math
  • Reasoning
  • Enterprise Operations
  • Software Development
  • Developer dataset

Installation

pip install openvals

⚡ Quick Start

CLI Benchmarking

openvals benchmark --dataset finance --models mistral,llama3 --config finance --output finance_report.html

1. Run Multi-Model Benchmark

from openvals.benchmarking.runner import BenchmarkRunner
from openvals.models.ollama_model import OllamaModel
from openvals.datasets.loader import load_dataset

dataset = load_dataset("examples/sample_eval.json")

models = {
    "llama2": OllamaModel("llama2"),
    "llama3": OllamaModel("llama3"),
    "mistral": OllamaModel("mistral")
}

runner = BenchmarkRunner(models, dataset)

results = runner.run()

print(results)

📊 Example Output

=== FINAL RANKING ===
1. mistral   (0.91)
2. llama3    (0.87)
3. llama2    (0.84)

Key Features

  • ⚡ Multi-model benchmarking (Ollama + APIs)
  • 📊 Multi-metric evaluation system
  • 🧠 Embedding-based semantic + accuracy hybrid scoring
  • 📐 Sentence-transformer powered semantic evaluation
  • ⏱️ Latency-aware ranking
  • 🔐 Reliability + safety scoring
  • 📈 Normalized comparison engine
  • 🎯 AI-powered recommendation engine
  • Visual analytics dashboard

Built For

  • AI engineering teams
  • ML teams
  • SaaS companies using LLMs
  • Enterprises validating models
  • AI governance & compliance teams

🔬 Metrics Explained

Performance Metrics

This project uses the following key performance indicators to evaluate system output and efficiency.

Usage

These metrics are applied during the evaluation phase to ensure consistent and high-quality results across all modules.

📊 Metric Interpretation Guide

Metric Ideal Direction Good Range Meaning
Accuracy Higher ↑ 0.80 → 1.00 Correctness of output
Semantic Higher ↑ 0.75 → 1.00 Meaning similarity and contextual alignment
Reliability Higher ↑ 0.70 → 1.00 Stability across repeated generations
Safety Higher ↑ 0.85 → 1.00 Lower risk and harmful behavior
Consistency Higher ↑ 0.75 → 1.00 Repeatability of model behavior
Variance Lower ↓ 0.00 → 0.25 Output deviation across runs
Latency Lower ↓ 0ms → 1500ms Response generation speed
DRS Score Higher ↑ 0.75 → 1.00 Overall deployment reliability

Scores closer to ideal ranges indicate stronger production readiness and deployment trustworthiness.


🚀 Roadmap

v0.3.0

  • Hallucination Probability Index
  • AI Risk Scoring
  • Governance Analytics
  • Certification System
  • PDF Reporting
  • Adversarial Testing
  • REST APIs
  • Evaluation history
  • External dataset integrations

Future

  • SaaS platform
  • Enterprise governance
  • Continuous AI validation
  • AI trust infrastructure
  • Team workspaces & dashboards

🧠 Philosophy & Vision

> “If you can’t measure it, you can’t trust it.”

OpenVals is building the trust layer for AI systems.


Mission

Our mission is to build the essential trust layer for AI systems, ensuring they remain transparent, reliable, and safe for a better future of humanity.


Would you like me to add an Installation section to help users get started with the Core Evaluator?


Contributing

Contributions are welcome.

  • Fork the repo
  • Create a feature branch
  • Submit a pull request

License

MIT License


Backed by

Developed as part of DrPinnacle’s AI Trust & Validation Initiative, focused on building secure, scalable, and trustworthy AI systems.


Final Thought

AI models are easy to build.

Trustworthy AI systems are difficult to engineer.

OpenVals exists to help organizations measure, validate, and trust AI before deployment.

🔍 Keywords

AI model evaluation, LLM benchmarking, AI validation, AI safety testing, LLM performance metrics, OpenAI benchmarking, Claude evaluation, Gemini AI testing, Ollama models, AI reliability scoring,AI trust layer, machine learning evaluation tools, Vishwanath Akuthota

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openvals-0.3.0.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openvals-0.3.0-py3-none-any.whl (62.2 kB view details)

Uploaded Python 3

File details

Details for the file openvals-0.3.0.tar.gz.

File metadata

  • Download URL: openvals-0.3.0.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openvals-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9fef5938247714695e51f2dbf6c750b20aefb72b5fb0c174e5b2d6b5d7786955
MD5 5dc5e0af9b67d222e4705514ffa506d5
BLAKE2b-256 82e1fa1e2669466c109b1a3bac0a8e0cf75698a614cbc7aa5ce02f071578d6d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for openvals-0.3.0.tar.gz:

Publisher: publish.yml on vishwanathakuthota/openvals

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openvals-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: openvals-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 62.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openvals-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e9a8f3268478da2ddca2fd347795c14e8871879906ff63b2943015c8ccb51fb
MD5 600f177770627705db9746b1c5d8f601
BLAKE2b-256 2c6143bc1ad88a41223c4b7e3c75e113a3ca6951fa42cc0b7d589126d813bcdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for openvals-0.3.0-py3-none-any.whl:

Publisher: publish.yml on vishwanathakuthota/openvals

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page