Integration Llama Index Callback
observabilityllmsgenaicookbookprompt-managementhacktoberfestlarge-language-modelsnextraLangfuselangfuse-docs
Export
description: Example cookbook for the LlamaIndex Langfuse integration. category: Integrations
Cookbook LlamaIndex Integration
This is a simple cookbook that demonstrates how to use the LlamaIndex Langfuse integration. It uses a very simple Index and Query.
Any feedback? Let us know on Discord or GitHub. This is a new integration, and we'd love to hear your thoughts.
Setup
Make sure you have both llama-index and langfuse installed.
[ ]
Initialize the integration. Get your API keys from the Langfuse project settings.
[ ]
This example uses OpenAI for embeddings and chat completions.
[ ]
Index
[ ]
[ ]
Query
[ ]
[ ]
Explore traces in Langfuse
[ ]
Done! ✨ You see traces of your index and query in your Langfuse project.
Example traces (public links):
Trace in Langfuse:

Interested in more advanced features?
See the full integration docs to learn more about advanced features and how to use them:
- Interoperability with Langfuse Python SDK and other integrations
- Add custom metadata and attributes to the traces