-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] tracking st.chat_input #44
Comments
@baswenneker thanks for raising the issue! |
Just a heads up that I am making progress on this and it can check how often the st.chat_inputshas been run but I am unsure whether it is respectful of the users privacy to return a list of the text inputs. To handle such, we are looking at changing the way people configure the analytics with a settings screen |
Ok, yeah I can imagine that tracking user input is a privacy risk. For me, I only care about how often a chat message was submitted. The contents are not important. Btw, this is an analytics tool, it should only show usage stats, not the usage/input itself right? |
@baswenneker As to your question regarding inputs: Currently the analytics are not collecting by default any PII (Personally Identifiable Information) unless either the user submits it or the applicable developer chooses to collect it by asking the user to provide. In both cases it relies on the user to choose to submit info. nit; I would actually define streamlit-analytics as a metrics tool rather than an analytics one, considering the above On the roadmap we do have an upcoming integration with Google Analytics #16 and hopefully other analytic engines but this will be handled by this project in such a way that respects user content and awareness. |
@baswenneker This should now be in the latest version of streamlit_analytics2 (0.6.1) :) The input text will be captured for now, until we can restructure the project to include settings for users to configure and since no PII is captured unless the user explicitly provides it |
Great, I just tested it and it works. Thanks! I do see something strange. It also captures "None" and I think it has something to do with me streaming the AI content back to the interface. It's not important but just something to keep in mind. Here are two screenshots before and after chatting: After asking "What's the meaning of life?": I can't share my code (it's a closed source project for a client) but I think you can reproduce it with the example here: https://docs.streamlit.io/knowledge-base/tutorials/build-conversational-apps#build-a-simple-chatbot-gui-with-streaming But note it is not really important because it only adds a "None" key to the chat_input analytics. |
Thanks for checking! I checked this now and am going to open an issue for it as a minor bug |
Awesome you're updating this Streamlit extension @444B 🙏
I'd like to track st.chat_input buttons for my AI chat app. Would that be possible?
Here's a screenshot:
The text was updated successfully, but these errors were encountered: