Hello,
I am currently using OpenWebUI at work and I would like to better understand how Excel and CSV files are inserted into my users’ prompts. So far, I have the impression that when someone uploads a file of this type, it gets converted into a string and inserted as-is into the prompt, which consumes a huge number of tokens. I know about inlets but as far as I know, the file content is nowhere in the « body » object that we manipulate in the inlets.
As a result, I would like to find a clean alternative that would allow me, on the one hand, to prevent the Excel file from being directly embedded into the prompt, and on the other hand, to pair this with a file manipulation tool using a framework like DuckDB that would allow running SQL queries without ever fully loading the Excel file into the prompt.
Can you help me with that ?