content-chatbot

A tool called langchain uses OpenAI API to turn website content into a question-answering or interactive chatbot agent.
This repository showcases how to turn your website content into a question answering bot or interactive chatbot using the LangChain tool and the OpenAI API. It includes three scripts for generating embeddings, asking questions, and starting a chat interface. The most important step is creating embeddings by looping over a sitemap.xml file and obtaining an OpenAI API key. Once created, the chatbot can provide answers with source document URLs. Dependencies can be installed with pip.