This repo is an implementation of a locally hosted chatbot specifically focused on question answering over the Storyverse Website.
Built with LangChain and FastAPI.
The app leverages LangChain's streaming support and async API to update the page in real time for multiple users.
- Install dependencies:
pip install -r requirements.txt
- Run
ingest_url.sh
to scrape Storyverse Website most recent stories. - Run
ingest_docs.sh
to ingest LangChain docs data into the vectorstore (only needs to be done once). 3.1. You can use other Document Loaders to load your own data into the vectorstore. - Run the app:
make start
4.1. To enable tracing, make surelangchain-server
is running locally and passtracing=True
toget_chain
inmain.py
. You can find more documentation here. - Open localhost:9000 in your browser.