Skip to content

Hallucination Detector

Verify LLM outputs against JARVIS data. Cross-check predicted properties and material claims with the DFT database. Streaming check endpoint for real-time verification.

Open App


Overview

Verify LLM outputs against JARVIS data. Cross-check predicted properties and material claims with the DFT database. Streaming check endpoint for real-time verification.

Data Source

dft_3d + LLM verification

Endpoints

  • GET /hallucination_detector
  • GET /detector
  • POST /hallucination/check_stream

Request Models:

Authentication

All POST endpoints require Authorization: Bearer YOUR_TOKEN.

API Example

import requests

response = requests.post(
    "https://atomgpt.org/hallucination/check_stream",
    headers={
        "Authorization": "Bearer sk-XYZ",
        "accept": "application/json",
        "Content-Type": "application/json",
    },
    json={"jid": "JVASP-1002"},
)
data = response.json()
print(data)

AGAPI Agent

from agapi.agents import AGAPIAgent
import os

agent = AGAPIAgent(api_key=os.environ.get("AGAPI_KEY"))
response = agent.query_sync("Show hallucination detector for Silicon")
print(response)

Reference