Applies to:
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: UseJSONAttachment to move large data out of inline rendering while keeping essential metadata searchable.
Implementation
UseJSONAttachment for large conversational data and keep essential metadata inline for indexing and filtering:
Python:
- 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