agentops/examples/llamaindex
xiaoxue af7cdc0ffd 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
..
README.md 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
llamaindex_example.ipynb 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
llamaindex_example.py 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
requirements.txt 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00

README.md

LlamaIndex AgentOps Integration Example

This example demonstrates how to use AgentOps with LlamaIndex for observability and monitoring of your context-augmented generative AI applications.

Setup

  1. Install required packages:
pip install agentops llama-index-instrumentation-agentops llama-index python-dotenv
  1. Set your API keys:
export AGENTOPS_API_KEY="your_agentops_api_key"
export OPENAI_API_KEY="your_openai_api_key"

Files

  • llamaindex_example.py - Python script example
  • llamaindex_example.ipynb - Jupyter notebook example

Usage

Run the Python script:

python llamaindex_example.py

Or open and run the Jupyter notebook:

jupyter notebook llamaindex_example.ipynb

After running, check your AgentOps dashboard for the recorded session.