jspsych / jspsych-contrib

An open repository of jsPsych plugins and extensions, without any official support
45 stars 47 forks source link

Add chat-plugin #134

Open vzhang03 opened 2 months ago

vzhang03 commented 2 months ago

Wanted to submit this PR to get a review on what changes should be worked on next. The functionality is all working as intended and has gone through testing by fellow URSI team. This plugin contains functionality to customize a chat with an LLM supporting various strategies for controlling bot-prompting and user prompting. This plugin also collects user keystrokes and comprehensive data on the conversation and communication with the LLM.

Main thing to work on is documentation and specifically how to guide people to navigate the process of using the backend. This plugin is hard to work with for people without coding experience, but not sure how to remedy this issue.

A smaller issue is a code rewrite moving the fetching and calling into a separate class. This would make it more friendly for devs to work with. Haven't done because prioritized building out prompting features for the other group. Not sure if necessary or if should just comment on the associated methods.

Lastly, should figure out where to handle styling and if should move away from styles.css to another place as well as allow researcher to customize.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 80b5c609b1a69517cce190d8745e93dbbfeac76f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------------- | ----- | | @jspsych-contrib/plugin-chat | Major |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR