|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| llamaindex_example.ipynb | ||
| llamaindex_example.py | ||
| requirements.txt | ||
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
- Install required packages:
pip install agentops llama-index-instrumentation-agentops llama-index python-dotenv
- 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 examplellamaindex_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.