- Use asdf to manage Python and Node versions (specified in .tool-versions)
$ asdf install
- Install poetry with the official installer:
$ curl -sSL https://install.python-poetry.org | python3 -
$ poetry install
$ cd frontend
$ npm i
.env
*
- Index the documents under
./documents
viapoetry run python index_documents.py
- Run the FastAPI server:
poetry run fastapi dev lawdify.py
- Run the frontend:
cd frontend && npm start
- Go to
http://localhost:3000
to interact with the Lawdify RAG Demo
lawdify.py
is the core FastAPI server with the LLM interface at /ask
endpoint. index_documents.py
is for indexing files under ./documents
into the vector database (ChromaDB).
frontend/
is the folder with a React front-end for interacting with the LLM via a chatbot-like UI. See that folder's README for more info.