open the Home folder →tap the Home folder to look around
jd-shapiro.com
Tech & ops · AI tool · 2025

NYC Admin Code Chatbot

The NYC Admin Code Chatbot answers questions about the NYC Administrative Code, the city's book of local laws. It was designed to help New Yorkers understand their rights under local law, and built with responsible tech and responsible AI in mind, keeping a human in the loop: a person reviews and checks what the AI produces rather than relying on it alone. The core of the project is translating law into something code can search accurately: the legal text is split into smaller pieces, or chunks, so that each question is matched to the exact passage that answers it. The chatbot then answers from that passage instead of from general knowledge, a setup called retrieval-augmented generation, or RAG.

  • 3 titles searchable (8, 9 and 10), more in future releases
  • 6 titles in the dataset (1, 2, 8, 9, 10, 20)
The nyc_admin_llm repository on GitHub

Built with

PythonBARTClaudeChromaDBHugging FaceJupyter

Important

This model is intended for informational purposes only and should not be used for official legal defense, professional legal advice, or any legal decision-making. Users should consult a qualified legal professional for legal advice or official matters.

Jordan Shapiro

jd-shapiro.com

Would you like to view the accessible site?

It has the same content as standard web pages, and works well with a keyboard or screen reader. You can switch any time from the top bar.