This repo is an implementation of a locally hosted chatbot specifically focused on question answering over the LangChain documentation. Built with LangChain, FastAPI, and Next.js.
Deployed version: chat.langchain.com
Looking for the JS version? Click here.
The app leverages LangChain's streaming support and async API to update the page in real time for multiple users.
poetry install.export OPENAI_API_KEY=
export WEAVIATE_URL=
export WEAVIATE_API_KEY=
export RECORD_MANAGER_DB_URL=
# for tracing
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
export LANGCHAIN_API_KEY=
export LANGCHAIN_PROJECT=
python backend/ingest.py to ingest LangChain docs data into the Weaviate vectorstore (only needs to be done once).
make start.cd ./frontend, then yarn.yarn dev for frontend.There are two components: ingestion and question-answering.
Ingestion has the following steps:
Question-Answering has the following steps:
Looking to use or modify this Use Case Accelerant for your own needs? We've added a few docs to aid with this:
This repo is an implementation of a locally hosted chatbot specifically focused on question answering over the LangChain documentation. Built with LangChain, FastAPI, and Next.js.
Deployed version: chat.langchain.com
Looking for the JS version? Click here.
The app leverages LangChain's streaming support and async API to update the page in real time for multiple users.
poetry install.export OPENAI_API_KEY=
export WEAVIATE_URL=
export WEAVIATE_API_KEY=
export RECORD_MANAGER_DB_URL=
# for tracing
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
export LANGCHAIN_API_KEY=
export LANGCHAIN_PROJECT=
python backend/ingest.py to ingest LangChain docs data into the Weaviate vectorstore (only needs to be done once).
make start.cd ./frontend, then yarn.yarn dev for frontend.There are two components: ingestion and question-answering.
Ingestion has the following steps:
Question-Answering has the following steps:
Looking to use or modify this Use Case Accelerant for your own needs? We've added a few docs to aid with this: