-
Notifications
You must be signed in to change notification settings - Fork 14
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
Question search params doesn't have context after second message/query #71
Comments
I believe using URL parameters for the chain of questions is not a scalable solution. To facilitate question sharing, we could utilize our existing Supabase setup. When a user wishes to share a chat, we could generate a unique ID and store the corresponding message history. The user would then share a link containing this ID, allowing the recipient to access the chat history directly. This brings us to a broader consideration: our policy on storing chat histories. Access to past conversations can significantly enhance user experience by enabling features like chat restoration and history review. If we're open to storing chat histories, we can not only address the sharing issue more effectively but also explore other valuable improvements. What are your thoughts on implementing chat history storage? This decision will impact our approach to both the sharing functionality and potential future enhancements. |
@Emmanuel-Develops and I theoretically explored this option. However, we don't want to store user chat histories in the db, and is one of the ethos of chat-btc. This was clearly stated by @adamjonas So we had to explore other options which was the URL params. |
But if we already cache the question-answer pair, aren't we indirectly store chat history? Lines 220 to 227 in 6a896d2
If we add a process where the user chooses that they want to share the chat (same as chatGPT does), then they agree to leave some of that privacy in order to get the sharing feature that I described above. An extra addition to that could be to add some encryption into the mix, but that could only be possible if we were using some sort of user accounts that could be paired with a public-private key. |
In a sense, yes. But the cached responses are deleted after 24hrs. We do not persist them in the db. Only the default responses on the homepage are persisted.
This seems viable short term. This would mean we store the chat history for every query starting from the 1st query. Overall, I'll leave @adamjonas to decide on this issue |
This is a follow-up issue to #64
We need to find a way around the question that is appended as search params in the URL. It currently updates to the latest question. So for a chat with the question history below:
the question in the URL will be "Do they have any advantages" and if that is shared with another user, chat wouldn't know what reply to give.
The text was updated successfully, but these errors were encountered: