https://github.com/skitsanos/llm-chatbot
Various examples on implementing Chat UI with multiple LLMs
https://github.com/skitsanos/llm-chatbot
ai artificial-intelligence chatbot chatbots gpt llama llm llms mistral openai
Last synced: 5 months ago
JSON representation
Various examples on implementing Chat UI with multiple LLMs
- Host: GitHub
- URL: https://github.com/skitsanos/llm-chatbot
- Owner: skitsanos
- Created: 2024-04-25T05:57:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T15:00:07.000Z (about 2 years ago)
- Last Synced: 2026-01-21T23:46:54.425Z (5 months ago)
- Topics: ai, artificial-intelligence, chatbot, chatbots, gpt, llama, llm, llms, mistral, openai
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# llm-chatbot
> This repo is a collection of examples showcasing how to use HoloViz components and various LLMs to create a chat
> interface similar to the one you might be familiar with at ChatGPT
### Install dependencies
```bash
pip install -r requirements.txt
```
It will install the following packages:
- `openai` for OpenAI API
- `panel` for creating interactive dashboards and Chat UIs
- `watchfiles` for watching file changes and reloading the server
### Running with Taskfile
Taskfile is a simple way to manage tasks in a project. It is similar to Makefile but with a simpler syntax. Please refer
to https://taskfile.dev/installation/ for installation instructions.
Taskfile example for this project:
```yaml
version: 3
env:
OPENAI_API_KEY:
GROQ_API_KEY:
tasks:
chat-single-model:
cmds:
- panel serve chat-single-model.py --autoreload
chat-model-switcher:
cmds:
- panel serve chat-model-switcher.py --autoreload
chat-contexts:
cmds:
- panel serve chat-contexts.py --autoreload
```
### Available examples
- `chat-single-model` showcasing a single model chat interface.
- `chat-model-switcher` showcasing a chat interface with model switching.
- `chat-contexts` showcasing a chat interface with chat history switching.
To run the examples, you can use the Taskfile commands like this:
```bash
task chat-single-model
```