It seems likely that you can include documents (such as retrieved context or input/output text) in a Phoenix trace, and these will be displayed in the UI, especially for RAG use cases. However, uploading arbitrary files (e.g., PDFs, DOCX) as raw attachments to a trace is not explicitly documented鈥擯hoenix expects document content to be included as part of the trace payload, not as separate file uploads. Handling of such content is typically managed by the instrumentation layer, which serializes relevant document data into the trace (<https://docs.arize.com/phoenix/tracing/how-to-tracing/advanced/multimodal-tracing|docs.arize.com multimodal tracing>, <https://github.com/Arize-ai/phoenix/blob/main/tutorials/mistral/evaluate_rag--mistral.ipynb|RAG evaluation example>).
Would you like more detail on how to structure document data for traces or on instrumentation best practices?
Sources:
- <https://docs.arize.com/phoenix/tracing/how-to-tracing/advanced/multimodal-tracing|docs.arize.com multimodal tracing>
- <https://github.com/Arize-ai/phoenix/blob/main/tutorials/mistral/evaluate_rag--mistral.ipynb|RAG evaluation example>