hayhooks
hayhooks copied to clipboard
🟨 Support user feedbacks? Frontends like `open-webui` have 👍 and 👎 feedback icons, would be nice to store those somewhere
Open WebUI is already able to collect detailed user feedbacks:
To make Hayhooks able to collect and return this data, an idea could be:
- Create a dedicated API endpoint for Open WebUI feedbacks
- Provide to Hayhooks the Open WebUI deployment URL (in settings or as above API endpoint param)
- Hayhooks will grab the actual stats from DB calling this Open WebUI API: http://localhost:3000/api/v1/chats/all/db
- JSON results will be parsed and all stats related to deployed models will be collected and returned as a response
Same thing may be achieved with a CLI command which is returning a CSV or JSON dataset.
Is there a way to make what @mpangrazzi proposed more generalized and less Open WebUI specific? The logic would still follow similarly though