PotterHeadGPT

Enter the library

The Restricted Section

PotterHeadGPT

A reading companion for the seven books. Ask anything about the story and every answer comes back with the passages it was drawn from.

Five questions a day. Sign in only if you want the same desk on another device.

A page from the stacks

The chat, before you enter

Same parchment. Same sources under the answer. Open a citation here the way you will in the library.

Why does the Sorting Hat consider Slytherin for Harry?
The Sorting Hat considers Slytherin for Harry because it recognizes qualities that Salazar Slytherin prized in his hand-picked students, such as resourcefulness, determination, and a certain disregard for rules. Additionally, the hat notes Harry's talent and a thirst to prove himself, which could lead to greatness in Slytherin. However, Harry specifically asks not to be placed in Slytherin, and the hat ultimately respects his choice and places him in Gryffindor instead .

Sources

How the stacks are read

Retrieve, then speak

  1. I

    Ask in plain language

    A question about the story is enough. No spell names required, though they help.

  2. II

    Retrieve the nearest passages

    The corpus is searched for the chunks that actually bear on what you asked.

  3. III

    Answer with footnotes — or refuse

    Citations sit under the reply. If the books do not say, it does not invent.

The workbench

  • Next.js
  • LangChain
  • Qdrant
  • Auth.js
  • Postgres
  • OpenAI