Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shashankdeshpande/langchain-chatbot

Examples of chatbot implementations with Langchain and Streamlit
https://github.com/shashankdeshpande/langchain-chatbot

chatbot chatgpt langchain openai-api streamlit

Last synced: 5 days ago
JSON representation

Examples of chatbot implementations with Langchain and Streamlit

Awesome Lists containing this project

README

        

# Chatbot Implementations with Langchain + Streamlit

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/shashankdeshpande/langchain-chatbot?quickstart=1)

Langchain is a powerful framework designed to streamline the development of applications using Language Models (LLMs). \
It provides a comprehensive integration of various components, simplifying the process of assembling them to create robust applications.

## 💬 Sample chatbot use cases
Here are a few examples of chatbot implementations using Langchain and Streamlit:
- **Basic Chatbot** \
Engage in interactive conversations with the LLM.

- **Context aware chatbot** \
A chatbot that remembers previous conversations and provides responses accordingly.

- **Chatbot with Internet Access** \
An internet-enabled chatbot capable of answering user queries about recent events.

- **Chat with your documents** \
Empower the chatbot with the ability to access custom documents, enabling it to provide answers to user queries based on the referenced information.

- **Chat with SQL database** \
Enable the chatbot to interact with a SQL database through simple, conversational commands.

- **Chat with Websites** \
Enable the chatbot to interact with website contents.

## Streamlit App
Created a multi-page streamlit app containing all sample chatbot use cases. \
You can access this app through this link: [langchain-chatbot.streamlit.app](https://langchain-chatbot.streamlit.app)

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://langchain-chatbot.streamlit.app/)

## 🖥️ Running locally
```shell
# Run main streamlit app
$ streamlit run Home.py
```

## 📦 Running with Docker
```shell
# To generate image
$ docker build -t langchain-chatbot .

# To run the docker container
$ docker run -p 8501:8501 langchain-chatbot
```

## 💁 Contributing
Planning to add more chatbot examples over time. PRs are welcome.