Welcome to the Langchain Documentation Chat Assistant project! This application aims to provide users with a convenient way to interact with Langchain documentation through a chat interface powered by advanced Generative AI technologies
The Langchain 🦜🔗 Documentation Chat Assistant allows users to ask questions about Langchain, a topic they are studying or curious about, and receive responses from a chatbot. The chatbot's responses are generated based on the information available in the Langchain documentation. To provide transparency and traceability, each response includes a source URL indicating the specific section of the Langchain documentation from which the information was derived.
- GPT Model Turbo 3.5: The chatbot is powered by the GPT model Turbo 3.5, allowing it to generate natural and contextually relevant responses to user queries.
- Pinecone🌲 Vector Database: Utilizes Pinecone for vector database management, enabling similarity search to extract relevant information from the vector space.
- RetrievalQA Chain: Implements a RetrievalQA chain for prompt augmentation, enhancing the chatbot's ability to provide accurate and informative responses.
- Streamlit User Interface: The frontend of the application is built using Streamlit, providing an intuitive and user-friendly interface for interacting with the chatbot.
- LLM Memory: Utilizes LLM memory to store chat history and maintain context, enabling the chatbot to provide coherent responses based on previous interactions. This enhances the conversational flow and improves the overall user experience.
- Source URL Display: The application displays the source URL of the information used to generate the answer, allowing users to verify and explore further if needed.
To get started with the Langchain Documentation Chat Assistant, follow these steps:
-
Clone the repository to your local machine.
-
Install Pipenv virtual environment
pipenv install
and run Pipenv environmentpipenv shell
. You can check dependencies listed in the Pipfile -
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/
-
To run this project, you will need to add the following environment variables to your .env file
PINECONE_API_KEY
OPENAI_API_KEY
-
Run the Streamlit application using
streamlit run main.py
. -
Interact with the chatbot by typing your questions or queries into the chat interface.
Contributions to the Langchain Documentation Chat Assistant project are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue on GitHub or submit a pull request with your changes.
https://github.com/hwchase17/chat-langchain-readthedocs
https://github.com/AI-Yash/st-chat
https://js.langchain.com/docs/get_started/introduction
https://github.com/emarco177/documentation-helper