Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
log_document_annotations_example.py800 B
from phoenix.client import Client from phoenix.client.resources.spans import SpanDocumentAnnotationData client = Client() # Log multiple document annotations annotations = [ SpanDocumentAnnotationData( name="relevance", document_position=0, span_id="468d2810f529b6e9", annotator_kind="LLM", result={"label": "relevant", "score": 0.9}, ), SpanDocumentAnnotationData( name="relevance", document_position=1, span_id="468d2810f529b6e9", annotator_kind="LLM", result={"label": "irrelevant", "score": 0.1}, ), ] # Log the document annotations and store the returned list logged_annotations = client.spans.log_document_annotations( document_annotations=annotations, sync=True ) print(logged_annotations)

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