Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
I am using a pandas dataframe for tracking conversation logs where each row is a…
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
I am using a pandas dataframe for tracking conversation logs where each row is a conversational turn. The dataframe has a “conversation id”, “turn index”, “actor”, and “utterance” column. Now for each conversation, I want to get the response (“utterance”) of the user (“actor” == “user”) after the assistant (“actor” == “assistant”) asks how the user is doing (“utterance” == “How are you?”). Can you explain how to do this with Python?
- Assistant
You can use the pandas library to filter the dataframe and find the desired user responses. Here's a step-by-step guide on how to achieve this using Python:
- First, import the pandas library:
pythonimport pandas as pd- Assuming you have a pandas dataframe named df with the columns "conversation_id", "turn_index", "actor", and "utterance", you can follow these steps:
python
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.