From 33c437ccd22b0221cf2ec89ab228e5ee895b794e Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Thu, 15 Aug 2024 15:35:40 -0700 Subject: [PATCH] Adding LlamaIndex documentation --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 48d14fcaf..9bbcbcbfc 100644 --- a/README.md +++ b/README.md @@ -283,7 +283,31 @@ response = await litellm.acompletion(model="claude-3", messages=messages) ### LlamaIndex 🦙 -(Coming Soon) + +AgentOps works seamlessly with applications built using LlamaIndex, a framework for building context-augmented generative AI applications with LLMs. + +
+ Installation + +```shell +pip install llama-index-instrumentation-agentops +``` + +To use the handler, import and set + +```python +from llama_index.core import set_global_handler + +# NOTE: Feel free to set your AgentOps environment variables (e.g., 'AGENTOPS_API_KEY') +# as outlined in the AgentOps documentation, or pass the equivalent keyword arguments +# anticipated by AgentOps' AOClient as **eval_params in set_global_handler. + +set_global_handler("agentops") +``` + +Check out the [LlamaIndex docs](https://docs.llamaindex.ai/en/stable/module_guides/observability/?h=agentops#agentops) for more details. + +
## Time travel debugging 🔮