Skip to content
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

Added download chat history button for AI Assistant #626

Merged

Conversation

JoelWiebe
Copy link
Contributor

For the AI Assistant, log all chat messages to the data base and create a download button where each teacher can download their own chat history.

Details

  • Create a database schema for saving chat logs, including the teacher's user ID, role (whether user or assistant), the timestamp, the board ID, and the content
  • Each time a user creates a prompt, save the prompt with the 'user' role
  • Each time the AI assistant creates a response, save the response with the 'assistant' role
  • Create a Download Chat History button in the AI assistant tab
  • When the download button is pressed, retrieve the entire chat history and save as a CSV file that is downloaded by the client

Test:

  • Ensure all previous AI Assistant commands work (creating a bucket, move a post, access vote, tag, title, and content data from posts)
  • Log history can be downloaded when history is empty and has content
  • Different teachers should download only their own chat history

Closes #625

…essage DB object, db functions, and http routing for downloading csv
@JoelWiebe JoelWiebe linked an issue Oct 28, 2024 that may be closed by this pull request
5 tasks
@markiianbabiak markiianbabiak merged commit 02078cb into develop Oct 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE: Add AI Assistant Chat Log Downloads
2 participants