Skip to content

Commit

Permalink
send full conversation (including last-message) in label tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskoepf committed Jan 28, 2023
1 parent 5747373 commit eb4c41e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/oasst_backend/tree_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def next_task(
random_reply_message = random.choice(replies_need_review)
messages = self.pr.fetch_message_conversation(random_reply_message)

conversation = prepare_conversation(messages[:-1])
conversation = prepare_conversation(messages)
message = messages[-1]

self.cfg.p_full_labeling_review_reply_prompter: float = 0.1
Expand Down
2 changes: 1 addition & 1 deletion oasst-shared/oasst_shared/schemas/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class LabelConversationReplyTask(AbstractLabelTask):
"""A task to label a reply to a conversation."""

type: Literal["label_conversation_reply"] = "label_conversation_reply"
conversation: Conversation # the conversation so far
conversation: Conversation # the conversation so far (new: including the reply message)
reply_message: Optional[ConversationMessage]
reply: str

Expand Down

0 comments on commit eb4c41e

Please sign in to comment.