Skip to main content

llama-index callbacks Opik Comet integration

Project description

LlamaIndex Callbacks Integration: Opik

pip install llama-index-callbacks-opik

This integration allows you to get one-click observability of your LlamaIndex RAG pipelines on Opik.

The simplest way to get started and try out Opik is to signup on our cloud instance. You can then get you API key from the quickstart page or the user menu and start logging !

You can initialize globally using

from llama_index.core import set_global_handler

# You should provide your OPIK API key and Workspace using the following environment variables:
# OPIK_API_KEY, OPIK_WORKSPACE
set_global_handler("opik")

or:

from llama_index.core import Settings
from llama_index.core.callbacks import CallbackManager
from opik.integrations.llama_index import LlamaIndexCallbackHandler

opik_callback_handler = LlamaIndexCallbackHandler()
Settings.callback_manager = CallbackManager([opik_callback_handler])

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

llama_index_callbacks_opik-1.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

llama_index_callbacks_opik-1.2.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_callbacks_opik-1.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_callbacks_opik-1.2.0.tar.gz
Algorithm Hash digest
SHA256 0b400cc5e85bacdcadaf66568a898890cde24cd3e453ee0ee7e3fbe4a2f258f8
MD5 b1c8cfe1dc001bb9f3603e1e06197614
BLAKE2b-256 1b599e3792bab7eb8386d9aecf1f7d5a62650e516499b76d81ab06690ce1759d

See more details on using hashes here.

File details

Details for the file llama_index_callbacks_opik-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_callbacks_opik-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3db287561594e389d7686ff87dc867ba91c4b6717359ef619f0fc43b6b2b385
MD5 0ffde14cb50d68a4effe0cbe9f6d0f9d
BLAKE2b-256 7ac830cf573cc7f33704695b66d76e48254b9af910a6f15d2a91818091d1a7aa

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