Add Traceloop for LLM call monitoring #20
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds Traceloop integration to monitor LLM calls in the project. The changes include:
@workflowdecorator to thequery_documentsmethod for better insightsThese changes will allow for better monitoring and debugging of LLM application execution through the Traceloop dashboard.
Note: The Traceloop SDK has not been installed as per the instructions. Make sure to install it using
pip install traceloop-sdkbefore running the application.To complete the setup, you'll need to:
TRACELOOP_API_KEYenvironment variable with your Traceloop API keyTRACELOOP_BASE_URLif neededRemember to review the Traceloop documentation for any additional configuration or best practices specific to your use case.