CourtBot
1.0.0
CourtBot is a chat bot which can access all decisions of the Supreme Court of the United States. It can answer questions based on the information in these decisions and cite the specific decisions which it used to answer the question.
pip install -r requirements.txt./run.sh
[-s : scrape the supreme court cases]
[-e : to embed court decisions]
[-d : start backend]
[-c cases|db : delete all cases or database]
./run.sh -s scrapes the supreme court cases from FindLaw and prepossesses them for embedding. The time taken to scrape the data is dependent on the number of threads which you allocate and it takes around 3 hours with 50 threads. The data is stored in SupremeCourtCases directory as txt files../run.sh -e to embed the court cases for the Chroma database. This process is run on the gpu but could be run on the cpu. When running on the gpu this process takes about 14 hours to embed all 21 thousand cases. The Chroma database is saved in the .chroma directory../run.sh -d to start the server. All queries to the vector database and the chat bot are made through this api.