mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
Feature request: Allow selective field retreival in list files API #2868
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sreinwald on GitHub (Nov 29, 2024).
Is your feature request related to a problem? Please describe.
The current
/api/v1/filesAPI returns all file details including their entire content, which is problematic for deployments with a large amount of files in knowledge bases. This results in significant performance degradation and makes the files API largely unusable due to the large volume of data being transferred.Describe the solution you'd like
I would like to see an enhancement where the List Files API can be dynamically queried to return only certain fields the user actually requests. This should significantly improve performance and usability of the files API for systems with large numbers of files.
So, for example, a get request for
api/v1/files?fields=id,user_id,created_atshould only returnDescribe alternatives you've considered
Another option is to create a separate endpoint specifically designed for metadata only retrieval, but this would add complexity to the API structure and increase maintenance efforts.