Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
hallucination_example.ts650 B
/* eslint-disable no-console */ import assert from "assert"; import { createHallucinationEvaluator } from "../src/llm"; import { openai } from "@ai-sdk/openai"; const model = openai("gpt-4o-mini"); async function main() { const evaluator = createHallucinationEvaluator({ model, }); const result = await evaluator.evaluate({ output: "Arize is not open source.", input: "Is Arize Phoenix Open Source?", reference: "Arize Phoenix is a platform for building and deploying AI applications. It is open source.", }); console.log(result); assert(result.label === "hallucinated"); assert(result.score === 0); } main();

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server