monocle2ai / monocle

Monocle is a framework for tracing GenAI app code. This repo contains implementation of Monocle for GenAI apps written in Python.
http://monocle2ai.org
Apache License 2.0
18 stars 10 forks source link

context_output for vector store retriever #48

Closed Hansrajr closed 1 month ago

Hansrajr commented 1 month ago

Proposed changes

This PR include changes for the followings:

  1. it updates events for context_output for langchain, llama_index and haystack retriever span.
  2. get the sagemaker endpoint for aws lambda and sets it to vector store retriever span attributes as embedding_model.

Types of changes

What types of changes does your code introduce to this project? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...