hwchase17 / chat-langchain-readthedocs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat-LangChain-ReadTheDocs

Create a ChatGPT like experience over your ReadTheDocs using LangChain.

๐Ÿ“Š Example Data

This repo uses the LangChain Documentation as an example.

๐Ÿง‘ Instructions for ingesting your own ReadTheDocs documentation

Run the following command to download html for a given website. Replace https://langchain.readthedocs.io/en/latest/ with a URL to your website.

wget -r -A.html https://langchain.readthedocs.io/en/latest/

Ingest data

The only thing that is needed is to be done to ingest data is run python ingest_data.py

Query data

Custom prompts are used to ground the answers in LangChain Documentation files.

Running the Application

By running python app.py from the command line you can easily interact with your ChatGPT over your own data.

About

License:MIT License


Languages

Language:Python 100.0%