UpTrain website screenshot

UpTrain

UpTrain is an open-source (Apache-2.0) unified platform to evaluate and improve generative AI and LLM applications. It ships a Python framework plus a managed evaluation API that grades responses against 20+ preconfigured checks - context relevance, factual accuracy, response completeness, hallucination, tonality, prompt injection and more - and performs root cause analysis on failure cases.

4 APIs 0 Features
AILLMEvaluationLLM EvaluationObservabilityOpen Source

APIs

UpTrain Evaluations API

Runs evaluations (POST /evaluate) on supplied LLM input/output/context rows against a list of named checks such as context_relevance, factual_accuracy, response_completeness and...

UpTrain Log and Evaluate API

Logs evaluation data under a named project and evaluates it in one call (POST /log_and_evaluate), persisting results so they appear on the managed UpTrain dashboard with real-ti...

UpTrain Root Cause Analysis API

Performs root cause analysis (POST /perform_root_cause_analysis) on failing RAG or LLM responses, classifying why a response was poor - e.g. incomplete context, poor retrieval, ...

UpTrain Runs and Datasets API

Manages evaluation datasets, checksets (reusable bundles of checks), and runs that pair a dataset with a checkset - create a run (POST /run), poll its status (GET /run/{run_id})...

Collections

Pricing Plans

Uptrain Plans Pricing

2 plans

PLANS

Rate Limits

Uptrain Rate Limits

2 limits

RATE LIMITS

FinOps

Resources

👥
GitHubOrganization
GitHubOrganization
🔗
LinkedIn
LinkedIn
🔗
Website
Website
🔗
Documentation
Documentation
🔗
Plans
Plans
🔗
RateLimits
RateLimits
🔗
FinOps
FinOps

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: UpTrain Managed Evaluation API
  version: 0.7.1
request:
  auth:
    type: apikey
    apikey:
      key: uptrain-access-token
      value: '{{uptrainAccessToken}}'
      in: header
items:
- info:
    name: Auth
    type: folder
  items:
  - info:
      name: Validate the UpTrain access token.
      type: http
    http:
      method: GET
      url: https://demo.uptrain.ai/api/public/auth
    docs: Checks that the supplied uptrain-access-token is valid.
- info:
    name: Evaluation
    type: folder
  items:
  - info:
      name: Run evaluations on a set of LLM responses.
      type: http
    http:
      method: POST
      url: https://demo.uptrain.ai/api/public/evaluate
      body:
        type: json
        data: "{\n  \"data\": [\n    {\n      \"question\": \"What is the capital of France?\",\n      \"response\": \"Paris\
          \ is the capital of France.\",\n      \"context\": \"France is a country in Europe. Its capital is Paris.\"\n  \
          \  }\n  ],\n  \"checks\": [\n    \"context_relevance\",\n    \"factual_accuracy\",\n    \"response_completeness\"\
          \n  ]\n}"
    docs: Evaluates each row of input data against the supplied list of checks and returns per-check scores and explanations.
  - info:
      name: Log data to a project and evaluate it.
      type: http
    http:
      method: POST
      url: https://demo.uptrain.ai/api/public/log_and_evaluate
      body:
        type: json
        data: "{\n  \"project_name\": \"my-rag-project\",\n  \"data\": [\n    {\n      \"question\": \"What is the capital\
          \ of France?\",\n      \"response\": \"Paris is the capital of France.\",\n      \"context\": \"France is a country\
          \ in Europe. Its capital is Paris.\"\n    }\n  ],\n  \"checks\": [\n    \"context_relevance\",\n    \"factual_accuracy\"\
          \n  ]\n}"
    docs: Logs the data under a named project and evaluates it, persisting results to the UpTrain dashboard. Also backs evaluate_experiments.
  - info:
      name: Download evaluation results for a project.
      type: http
    http:
      method: GET
      url: https://demo.uptrain.ai/api/public/evaluation_results/{{project_name}}
    docs: Returns all evaluation results logged under the named project.
- info:
    name: Root Cause Analysis
    type: folder
  items:
  - info:
      name: Perform root cause analysis on failing responses.
      type: http
    http:
      method: POST
      url: https://demo.uptrain.ai/api/public/perform_root_cause_analysis
      body:
        type: json
        data: "{\n  \"project_name\": \"my-rag-project\",\n  \"data\": [\n    {\n      \"question\": \"What is the capital\
          \ of France?\",\n      \"response\": \"I am not sure.\",\n      \"context\": \"France is a country in Europe.\"\n\
          \    }\n  ],\n  \"rca_template\": \"rag_with_citation\"\n}"
    docs: Analyzes failing RAG / LLM responses and classifies why each response was poor.
- info:
    name: Runs
    type: folder
  items:
  - info:
      name: Create an evaluation run.
      type: http
    http:
      method: POST
      url: https://demo.uptrain.ai/api/public/run
      body:
        type: json
        data: "{\n  \"name\": \"nightly-eval\",\n  \"dataset\": \"my-dataset\",\n  \"checkset\": \"my-checkset\"\n}"
    docs: Pairs a dataset with a checkset and runs the checks asynchronously.
  - info:
      name: Get the status of a run.
      type: http
    http:
      method: GET
      url: https://demo.uptrain.ai/api/public/run/{{run_id}}
    docs: Returns the run object with its current status.
  - info:
      name: Download the results of a completed run.
      type: http
    http:
      method: GET
      url: https://demo.uptrain.ai/api/public/run/{{run_id}}/results
    docs: Returns the evaluation results for a completed run.
- info:
    name: Datasets and Checksets
    type: folder
  items:
  - info:
      name: Upload an evaluation dataset.
      type: http
    http:
      method: POST
      url: https://demo.uptrain.ai/api/public/dataset
      body:
        type: multipart-form
        data: []
    docs: Uploads a JSONL / CSV dataset of evaluation rows and registers it under a name.
  - info:
      name: Create a reusable checkset.
      type: http
    http:
      method: POST
      url: https://demo.uptrain.ai/api/public/checkset
      body:
        type: json
        data: "{\n  \"name\": \"my-checkset\",\n  \"checks\": [\n    \"context_relevance\",\n    \"factual_accuracy\",\n \
          \   \"response_completeness\"\n  ]\n}"
    docs: Registers a named bundle of checks to pair with a dataset in a run. Also backs add_experiment.