Skip to main content

Evaluate any AI model for India-readiness (capability, safety, sovereignty) on the Bharat AI Index.

Project description

atlas-eval (Python)

Is your model ready for India? Evaluate any model on the Bharat AI Index.

Requires a running Atlas instance (default http://localhost:3000). Start one with npm run dev in the repo, or docker run -p 3000:3000 ... bharat-ai-index.

Install

pip install atlas-eval           # live on PyPI

Use

from atlas_eval import evaluate_model

# point at ANY model — OpenAI-compatible endpoint or local Ollama:
report = evaluate_model("gpt-4o-mini", api_key="sk-...")
# report = evaluate_model("my-finetune", base_url="http://localhost:8000/v1")
# report = evaluate_model("gemma2:2b", kind="ollama")

r = report["readiness"]
print(r["verdict"], "| grade", r["sovereigntyGrade"])
print("Indic", r["indicScore"], "vs Global", r["globalScore"], "| gap", r["indicGap"])
print("weakest axes:", r["weakest"])   # what to fix before deploying for India

CLI

atlas-eval --version
atlas-eval check --base-url http://localhost:3000   # verify a reachable Atlas instance

What you get back

evaluate_model returns the full report:

  • runoverall ± stderr, per-axis categories, and the Indic-vs-Global locales split.
  • sovereignty — overall score, AAA→C grade, and the four sovereignty dimensions.
  • readiness — a plain-English verdict, indicScore / globalScore / indicGap, and the weakest / strongest axes.
  • certificateId — a deterministic, recomputable id for the rating.

Zero runtime dependencies (Python stdlib only). Ships type hints (PEP 561 py.typed). Docs: https://github.com/info-gallary/BharatAIndex/tree/main/sdk

MIT © Atlas AI Labs

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

atlas_eval-0.4.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

atlas_eval-0.4.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file atlas_eval-0.4.0.tar.gz.

File metadata

  • Download URL: atlas_eval-0.4.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for atlas_eval-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e5e26c572b37e5a1dbd02cd7633ceeeff4e6efc094761c4ee2779020bc1017d0
MD5 04f98e1ec75b4c0bb5e0dab7c0f69cd0
BLAKE2b-256 21f960ed52e557d95d9f992c3f4478be1d004465b293f12bfaf9d83e71403955

See more details on using hashes here.

File details

Details for the file atlas_eval-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: atlas_eval-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for atlas_eval-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b96c5436e292c56fa3ac54917f034301188c43515cd724c1324349a441db3b
MD5 915776423dd541ff50658bfca21b75eb
BLAKE2b-256 13138bfafb96d35f88a80bf15e6d62a4bd7ea3176576e1bc02d2468525c59331

See more details on using hashes here.

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