hpmor / README.md
deenaik's picture
Deploy: HPMOR Q&A chatbot - 2025-10-15
d84fcd9

A newer version of the Gradio SDK is available: 6.13.0

Upgrade
metadata
title: Chat with Harry Potter-Evans-Verres
emoji: πŸ§™β€β™‚οΈ
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
license: mit

Chat with Harry Potter-Evans-Verres πŸ§™β€β™‚οΈ

An intelligent chatbot that embodies Harry James Potter-Evans-Verres from "Harry Potter and the Methods of Rationality." Powered by RAG (Retrieval-Augmented Generation) with ChromaDB and Groq API.

Features

  • 🎭 Harry's Personality: Chat with Harry Potter-Evans-Verres who responds in character with scientific reasoning and rationality
  • πŸ“š Advanced RAG Pipeline: ChromaDB vector store retrieves relevant context from the HPMOR book
  • πŸ’¬ Interactive Chat Interface: Gradio-powered web UI with conversation history
  • πŸ€– Powered by Groq: Uses Groq's fast inference for llama-3.3-70b-versatile

Usage

Simply type your question in the chat interface and Harry will respond based on his experiences and knowledge from HPMOR!

Configuration

This Space requires a Groq API key to function. You can:

  1. Use the default key (if provided as a Space secret)
  2. Or enter your own Groq API key in the interface

Get your free Groq API key at: https://console.groq.com/

About HPMOR

"Harry Potter and the Methods of Rationality" is a work of fanfiction by Eliezer Yudkowsky, exploring what might happen if Harry Potter was a scientist and rationalist.