https://github.com/balnarendrasapa/chatbot
A Simple chatbot using langchain and streamlit. This repo uses light weight falcon4b llm model
https://github.com/balnarendrasapa/chatbot
chatbot langchain python
Last synced: 2 months ago
JSON representation
A Simple chatbot using langchain and streamlit. This repo uses light weight falcon4b llm model
- Host: GitHub
- URL: https://github.com/balnarendrasapa/chatbot
- Owner: balnarendrasapa
- License: gpl-3.0
- Created: 2023-08-23T21:44:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-29T23:48:31.000Z (over 2 years ago)
- Last Synced: 2025-06-14T02:09:22.785Z (about 1 year ago)
- Topics: chatbot, langchain, python
- Language: Python
- Homepage: https://huggingface.co/spaces/bnsapa/chatbot-using-langchain
- Size: 1.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chatbot Streamlit App
[](https://codespaces.new/balnarendrasapa/chatbot)
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/balnarendrasapa/chatbot)

This streamlit is just an example of how a Large Language Model works. This streamlit is built upon FALCON-4B llm. This llm is light weight and does not require a GPU.
This example are taken from langchain library. The link to the original [repo](https://github.com/langchain-ai/streamlit-agent/tree/main). But that chatbot requires you to have OPEN_AI API Key. You don't need that here. This is hosted on Huggingface Spaces. Link to the chatbot [site](https://huggingface.co/spaces/bnsapa/chatbot-using-langchain)
## Development setup ⚙️
This repository contains a devcontainer.json file. You can either choose to open this in codespace or build a development environment locally. If you choose to develop locally, make sure to install the `Remote Development` extension in VSCode.
- If you want to open in codespaces, click on the above badge `Open in GitHub Codespaces` 🛠️
- If you want to open in VSCode locally, click on the above badge `Open in Dev Containers` 🛠️
## Running server 🏃♂️
### In Dev Environment 🛠️
- To run the server, run the command `make run`. This starts up the streamlit app. You can access the stremalit app through `localhost:8501` 🚀
- To stop the server, run `make stopserver` ⛔
### Using docker-compose in root 🐳
- To run using docker-compose, cd into the root directory and run `docker-compose up`. This may not be useful for development.
- There is an image available in this repository. If you just want to check this project out, download `other/docker-compose.yml` file and run `docker-compose up` 🐳