Skip to main content
Applies to:
  • Plan -
  • Deployment -

Summary

Issue: Traces with large conversational data (ie hundreds of runs with hundreds of thousands of tokens each) can cause slow UI loading and poor browsing experience. Cause: Large JSON payloads render inline, resulting in slow performance when opening traces. Resolution: Use JSONAttachment to move large data out of inline rendering while keeping essential metadata searchable.

Implementation

Use JSONAttachment for large conversational data and keep essential metadata inline for indexing and filtering: Python:
TypeScript:
Key benefits:
  • UI for trace loads quickly, since large data as attachments don’t render inline
  • Full conversation still accessible via attachment viewer in UI
  • Essential metadata visible at a glance for filtering and search