LlamaIndex
This guide explains how to integrate HoneyHive with LlamaIndex for Python implementations.
Initializing HoneyHive Tracer
Use the following code to initialize HoneyHive tracing in your project:
For Python projects, use the HoneyHiveTracer
class to initialize tracing:
This initializes auto-tracing for your entire Python application.
If you’re using these code examples verbatim, then make sure to set the appropriate environment variables (HH_API_KEY
and HH_PROJECT
) before running your application.
Supported LlamaIndex Versions/Interfaces
Compatible with LlamaIndex versions ^0.10.0
and above.
For the most up-to-date compatibility information, please refer to the HoneyHive documentation.
Nesting
Nesting is handled automatically by the HoneyHive tracing system. When you use traced components within other traced components, the system will create a hierarchical structure of spans, reflecting the nested nature of your LlamaIndex operations.
Enriching Properties
For information on how to enrich your traces and spans with additional context, see our enrichment documentation.
Adding Evaluators
Once traces have been logged in the HoneyHive platform, you can then run evaluations with either Python or TypeScript.
Cookbook Examples
Python Example
These examples demonstrate how to integrate HoneyHive tracing with LlamaIndex in Python environments, covering document loading, text splitting, embedding creation, vector store operations, and question-answering chains.