Skip to content
TheChatArchiveThe Chat Archive
starling-lm-7b-alpha· UC BerkeleyHugging Face Arena Human Preference 55K

Write a python script for a simple chatbot.

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with gpt-3.5-turbo-0613’s answer.
  1. User

    Write a python script for a simple chatbot.

  2. Assistant

    class ChatBot: def init(self): self.responses = { "hello": "Hello! How can I help you today?", "goodbye": "Goodbye! Have a great day!", "thank you": "No problem! Glad I could help." }

    def respond(self, message):
        if message.lower() in self.responses:
            return self.responses[message.lower()]
        else:
            return "I'm not sure how to respond to that."
    

    if name == "main": chatbot = ChatBot() while True: message = input("You: ") response = chatbot.respond(message) print("ChatBot:", response)

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.