You can upload files as attachments in a session for the agent to analyze in context. Typical scenarios include: having the agent interpret an exported execution plan, analyze a segment of error logs, or answer questions based on internal company documentation.
Procedure
In the lower-right corner of the session input box, click the attachment icon.
In the file selection dialog box that appears, select a local file and click Open.
After the upload is successful, an attachment card will be displayed above the input box, containing the file name, file type, and file size, for example,
ocp-host-credential-api.html text/html · 8 KB. Click the close button in the upper-right corner of the card to remove the attachment.Enter your request for the attachment in the input box, for example, "Interpret the performance bottlenecks in this execution plan", and press Enter to send it.
Best practices
When uploading execution plans or SQL files, it is recommended to also specify the cluster, tenant, and database names. This helps the agent provide more accurate conclusions by considering the table structure and statistics.
When uploading log segments, it is recommended to capture content from before and after the time window when the issue occurred, and describe the symptom and occurrence time.
If you need to archive documents for long-term retrieval and reuse, please upload them as custom knowledge base files via Knowledge Base, rather than repeatedly uploading attachments in each session. For details, see Custom knowledge base.