Skip to content

Legal assistant chatbot that can answer any question related to the Law of the State of Washington (https://apps.leg.wa.gov/rcw/). Built using LangChan + HNSWlib Vector Store + OpenAI Embedding API.

Notifications You must be signed in to change notification settings

zianwar/legal-assistant

Repository files navigation

legal-assistant

This is a legal assistant specialized in Revised Code of Washington (RCW) law, you can ask any question and it will respond based on law text.

Technologies used:

Warning

Disclaimer: The answers provided by this projects does not constitute legal advice, it is intended solely for general informational purposes only.

Setup

Installing and setting up the vector store

Download the RCW.zip that contains markdown files of the law text by running the following script.

./scripts/dl-data.sh

Create the vector db from the markdown files

npm run ingest

Test that it works by running

npm run query

Run

Run the server and open the URL the browser

npm run dev

About

Legal assistant chatbot that can answer any question related to the Law of the State of Washington (https://apps.leg.wa.gov/rcw/). Built using LangChan + HNSWlib Vector Store + OpenAI Embedding API.

Topics

Resources

Stars

Watchers

Forks