In Playground, I can attach an image file. But can I attach pdf file, excel/csv file?

Hi,

I am new to Agno/Phidata and found Playground WebUI is very useful.
But I need to attach different file types such as images, pdf, MS Excel, CSV file.
Is there any way to attach/send these files to LLM models via Playground?

Any comment/help will be appreciate!

Yang Gul

Hi @yglee.us, Thank you for reaching out and supporting Agno.

Playground supports several types of file upload, please refer to our docs: Upload Files - Agno

let me know if you have any doubts

Monali,

Thanks for your information!
I understand Agno Agent can upload files.

In Playground WebUI, when I attach an image file, it is transferred to LLM model and
LLM models read it nicely. But when I attach a pdf file, the binary (raw) pdf file was transferred to LLM model and LLM model cannot read it directly.

Most of LLM models are not reading a pdf binary (raw) file as it is, I experienced.
In other application, I convert a pdf to base64 string (as filetype= ‘application/pdf’)
then send it to LLM model, which is working fine.

It will be great if I can attach a pdf file, an Excel file, a CSV file in Playground WebUI.
Would you make it an option to convert a pdf file (or even image file) into base64 String then send it out?

Thanks!

Yang Gul

hey @yglee.us currently for uploading files , you need to upload with filetype , since we have dedicated reader for each file type, agno/libs/agno/agno/app/playground/async_router.py at main · agno-agi/agno · GitHub
and we then add bytes content to model.
thanks :raising_hands: