θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@shatfield4
Copy link
Collaborator

@shatfield4 shatfield4 commented Feb 10, 2024

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #595

What is in this change?

Describe the changes in this PR that are impactful to the repo.

  • Implement RLHF in chats where user can thumbs up or down messages
  • Create column in workspace_chats table to keep track of feedback score

Additional Information

Add any other context about the Pull Request here that was not captured above.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@shatfield4 shatfield4 self-assigned this Feb 10, 2024
@shatfield4 shatfield4 linked an issue Feb 10, 2024 that may be closed by this pull request
@shatfield4 shatfield4 changed the title WIP RLHF works on historical messages [FEAT] RLHF on response messages Feb 10, 2024
@shatfield4
Copy link
Collaborator Author

Currently works when refreshing page after sending chat or loading existing chat from historical messages.

WIP - Fix for after chat message is sent it needs to pass the chatId from last message to Actions component in order to update result.

@shatfield4 shatfield4 marked this pull request as ready for review February 13, 2024 02:17
@Mintplex-Labs Mintplex-Labs deleted a comment from review-agent-prime bot Feb 13, 2024
@timothycarambat timothycarambat merged commit f4b09a8 into master Feb 13, 2024
@timothycarambat timothycarambat deleted the 595-feat-rhlf-like-feature branch February 13, 2024 19:33
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* WIP RLHF works on historical messages

* refactor Actions component

* completed RLHF up and down votes for chats

* add defaults for HistoricalMessage params

* refactor RLHF implmenation
remove forwardRef on history items to prevent rerenders

* remove dup id

* Add rating to CSV output

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
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.

[FEAT]: RHLF like feature.

3 participants