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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ati_integrations_llamaindex-0.1.0.tar.gz.
File metadata
- Download URL: ati_integrations_llamaindex-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
758c34f53575a573d95e4eab637f357d0a978b4cf4499128b86cd0d516dab186
|
|
| MD5 |
83c4c18d38f18366dcc6942f10b1b1a4
|
|
| BLAKE2b-256 |
0c40ae316fab03785400fadaeb4da3b03588721beb80836b0220b7d3894d3281
|
File details
Details for the file ati_integrations_llamaindex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ati_integrations_llamaindex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73a4ca1db1c72b5a6c143b90fbbb9d29907fd5f9e6989ea54c6fd83ee65f8d3f
|
|
| MD5 |
049dced952f0e634685d334f975db3c2
|
|
| BLAKE2b-256 |
5aa5b63de751412425716745f7c2330416c1c47f17150b14db478eef01a02fb7
|