agentops icon indicating copy to clipboard operation
agentops copied to clipboard

Add LlamaIndex callback handler

Open areibman opened this issue 2 years ago • 2 comments

🚀 Feature Request

💡 Got a brilliant idea? Similar to Langchain, Llama Index also provides callback handlers. This is a potential opportunity to give built-in observability to agents built with this framework.

🤔 Is your feature request related to a problem? A user in TokenCost might be a good initial pilot.

🎉 Describe the solution you'd like Implement the callback handler here: https://docs.llamaindex.ai/en/stable/api_reference/callbacks.html

🔍 Additional context Before working on this, find at least a handful of LlamaIndex agent builders and trial with them

areibman avatar Jan 03 '24 23:01 areibman

Hey, does the new LlamaIndex_callback_handler should mimic the langchain_callback_handler which is already present ?

Alchemist1411 avatar Feb 22 '24 06:02 Alchemist1411

Hey, does the new LlamaIndex_callback_handler should mimic the langchain_callback_handler which is already present ?

You can read more about the LlamaIndex callback handler here: https://docs.llamaindex.ai/en/stable/module_guides/observability/callbacks/root.html#modules

The idea is this: Every time an LLM operation occurs, LlamaIndex can fire off a series of callback events. On each callback, we'd like to capture that information as an AgentOps Event and record it with the client. You can look at the Langchain callback handler in the AgentOps repo to get a better idea of how this works

areibman avatar Feb 22 '24 06:02 areibman