Skip to main content

ATI LlamaIndex integration: retrieval/synthesis callbacks -> ATI spans

Project description

ATI Integration for LlamaIndex

This package provides OpenTelemetry instrumentation for LlamaIndex using IOcane ATI.

Installation

pip install ati-integrations-llamaindex

Usage

from ati_llamaindex import LlamaIndexInstrumentor
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader

# 1. Enable Instrumentation
# This sets the ATI handler as the LlamaIndex global handler
LlamaIndexInstrumentor().instrument()

# 2. Use LlamaIndex
documents = SimpleDirectoryReader("data").load_data()
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine.query("What is ATI?")

# 3. (Optional) Uninstrument
LlamaIndexInstrumentor().uninstrument()

Configuration

Configure the instrumentation via environment variables:

Variable Description Default
ATI_CAPTURE_PAYLOADS Capture query content and retrieval results false

Features

  • Captures LLM calls (ati.span.type=llm)
  • Captures Retrieval steps (ati.span.type=io)
  • Captures overall Query flow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ati_integrations_llamaindex-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ati_integrations_llamaindex-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file ati_integrations_llamaindex-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ati_integrations_llamaindex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 758c34f53575a573d95e4eab637f357d0a978b4cf4499128b86cd0d516dab186
MD5 83c4c18d38f18366dcc6942f10b1b1a4
BLAKE2b-256 0c40ae316fab03785400fadaeb4da3b03588721beb80836b0220b7d3894d3281

See more details on using hashes here.

File details

Details for the file ati_integrations_llamaindex-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ati_integrations_llamaindex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73a4ca1db1c72b5a6c143b90fbbb9d29907fd5f9e6989ea54c6fd83ee65f8d3f
MD5 049dced952f0e634685d334f975db3c2
BLAKE2b-256 5aa5b63de751412425716745f7c2330416c1c47f17150b14db478eef01a02fb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page