chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Disable Feedback Filter when using DynamoDB Data Layer

Open antoniordz96 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Currently using the dynamoDB data layer and is working amazingly well. For a user experience though I would like to disable from the UI the ability for the user to do filters on feedback.

Describe the solution you'd like Be able to disable the UI component when using dynamo data layer

antoniordz96 avatar Jul 17 '24 21:07 antoniordz96

I think this is a great ask.

As I noted in the limitations section of the docs, this was explicitly not supported.

The way dynamo works the data layer would be required manually fetching all the necessary threads and checking each step. Other solutions could include cleverly using a GSI or a Set in the THREAD record. Boto3 is blocking IO which may have other impacts on server performance especially when dealing with a lot of chats. I believed this adds unnecessary complexity for an initial release for a feature that was not a priority for my users.

I do agree that the filter buttons being there, but not functional is a small annoyance and a source of potential confusion for an end user. Id opt to add an option to the UI Config to customize the filters shown. This approach also allows other data layers to enable/disable UI features per their requirements, encouraging more data layer development from the community and keeping end users in mind.

Just based on a quick look I think its best to call useConfig in filters/index.tsx and conditionally render the SearchBar or FeedbackBar based on the config set by the user. Update IChainlitConfig.

On backend update UISettings accordingly and that might be it. Would be a good feature to add to chainlit.

mayaankvad avatar Jul 20 '24 15:07 mayaankvad

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Jul 23 '25 02:07 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Jul 30 '25 02:07 github-actions[bot]