OpenInference is a set of conventions and plugins that is complimentary to OpenTelemetry to enable tracing of AI applications. OpenInference is natively supported by arize-phoenix, but can be used with any OpenTelemetry-compatible backend as well.
Specification
The OpenInference specification is edited in markdown files found in the spec directory. It's designed to provide insight into the invocation of LLMs and the surrounding application context such as retrieval from vector stores and the usage of external tools such as search engines or APIs. The specification is transport and file-format agnostic, and is intended to be used in conjunction with other specifications such as JSON, ProtoBuf, and DataFrames.
Instrumentation
OpenInference provides a set of instrumentations for popular machine learning SDKs and frameworks in a variety of languages.
Python
Libraries
Package | Description | Version |
---|---|---|
openinference-semantic-conventions | Semantic conventions for tracing of LLM Apps. | |
openinference-instrumentation-openai | OpenInference Instrumentation for OpenAI SDK. | |
openinference-instrumentation-llama-index | OpenInference Instrumentation for LlamaIndex. | |
openinference-instrumentation-dspy | OpenInference Instrumentation for DSPy. | |
openinference-instrumentation-bedrock | OpenInference Instrumentation for AWS Bedrock. | |
openinference-instrumentation-langchain | OpenInference Instrumentation for LangChain. | |
openinference-instrumentation-mistralai | OpenInference Instrumentation for MistralAI. | |
openinference-instrumentation-guardrails | OpenInference Instrumentation for Guardrails. | |
openinference-instrumentation-vertexai | OpenInference Instrumentation for VertexAI. | |
openinference-instrumentation-crewai | OpenInference Instrumentation for CrewAI. | |
openinference-instrumentation-haystack | OpenInference Instrumentation for Haystack. | |
openinference-instrumentation-litellm | OpenInference Instrumentation for liteLLM. | |
openinference-instrumentation-groq | OpenInference Instrumentation for Groq. | |
openinference-instrumentation-instructor | OpenInference Instrumentation for Instructor. | |
openinference-instrumentation-anthropic | OpenInference Instrumentation for Anthropic. |
Examples
Name | Description | Complexity Level |
---|---|---|
OpenAI SDK | OpenAI Python SDK, including chat completions and embeddings | Beginner |
MistralAI SDK | MistralAI Python SDK | Beginner |
VertexAI SDK | VertexAI Python SDK | Beginner |
LlamaIndex | LlamaIndex query engines | Beginner |
DSPy | DSPy primitives and custom RAG modules | Beginner |
Boto3 Bedrock Client | Boto3 Bedrock client | Beginner |
LangChain | LangChain primitives and simple chains | Beginner |
LiteLLM | A lightweight LiteLLM framework | Beginner |
Groq | Groq and AsyncGroq chat completions | Beginner |
Anthropic | Anthropic Messages client | Beginner |
LlamaIndex + Next.js Chatbot | A fully functional chatbot using Next.js and a LlamaIndex FastAPI backend | Intermediate |
LangServe | A LangChain application deployed with LangServe using custom metadata on a per-request basis | Intermediate |
DSPy | A DSPy RAG application using FastAPI, Weaviate, and Cohere | Intermediate |
Haystack | A Haystack QA RAG application | Intermediate |
JavaScript
Libraries
Package | Description | Version |
---|---|---|
@arizeai/openinference-semantic-conventions | Semantic conventions for tracing of |