Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Together AI Integration

If you use Together AI models within your application, you can trace, monitor, and analyze them with Judgment. You can do this by either

  1. Judgeval Wrap: Add our wrap() around the initialization of your client
  2. OpenTelemetry: Use the TogetherAiInstrumentor library to wrap TogetherAI SDK calls and send Otel spans to Judgment.

Judgeval Wrap

from together import Together
from judgeval import Tracer, wrap

Tracer.init(project_name="together_ai_project")

together_client = Together()
wrapped_client = wrap(together_client)  # Use wrapped_client from here on

OpenTelemetry

from judgeval import Tracer
# Make sure you installed the dependency: opentelemetry-instrumentation-together
from opentelemetry.instrumentation.together import TogetherInstrumentor

Tracer.init(project_name="together_ai_project")
Tracer.registerOTELInstrumentation(TogetherInstrumentor())

Was this page helpful?