Skip to content

chat ai final planning #76

@Jyustin

Description

@Jyustin

planned features:

  • implement websocket connection within ai calls to:
  • implement chat history with seperate user SQL Data with JWT
  • establish real time connection between frontend and backend
  • add streaming ai text instead of instant text
    <-----------2nd feature (likely not possible with the time we have)------------------->
  • implement a more useful version of chat history deletion:
  • delete all of the chat history at once
  • or delete individual messages

for websockets:
use rachit's documentation to develop issue
websocket backend repo

What i know:
websockets can establish real time connection for chat interface
if we build websockets onto our ai chat feature then any requests could be passed through websocket so we could add our realtime features.

we will need to make some heavy rewrites to our codebase though if the websockets cannot be contained to one method.

image

if websockets work like the image above then the serverside should be able to tell user if the chat is still generating, and also stream its output in realtime instead of instant sending of message.

process:

  • websocket implementation on backend by creating websocketconfig.java
  • use this class in chat.java and aichatbotcontroller.java so all the methods pass through websocket
  • something should go here I don't think this will be that easy.
  • build our methods

very unsure about this but hopefully rachit will pull through with the documentation.

for delete:
use my preivous documentations of bringing back previous chat history to then delete the data in the stored tables.
After that, for the deleting individual messages, I can focus on a single parameter such as the message, or time_stamp to only delete certain messages.

SCHEDULE:

  • add basic websocket implementation tuesday, wednesday
  • implement the websockets into ai by accessing websocket class thurdsay - friday
    next week:
  • test and deploy changes tuesday
  • improve delete functionality Wednesday (may not get to if the websocket development is too long)

for live review:
plan to present first basic websocket demo but on our backend, currently websocket is on an entirely different backend but moving this to actual backend would be better for faster development

then show new ai feature, which will now 'stream' the response to user calls, and will display a thinking bubble while the API call is incomplete.

for N@TM:
let people use the feature if they get stuck on a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions