Minimalistic chatbot ui using fastapi, fastui and langchain.
Project description
fastui-chat
A minimalistic ChatBot Interface in pure python.
Build on top of FastUI and LangChain Core.
Usage
pip install fastui-chat
from langchain.chat_models import ChatOpenAI
from langchain.memory import ChatMessageHistory
from fastui_chat import ChatUI, basic_chat_handler
history = ChatMessageHistory()
handler = basic_chat_handler(
llm=ChatOpenAI(),
chat_history=history,
)
history.add_ai_message("How can I help you today?")
app = ChatUI(
chat_history=history,
chat_handler=handler,
)
app.start_with_uvicorn()
Features
- Easy to use
- Minimalistic & Lightweight
- LangChain Compatible
- Python Only
Development Setup
git clone https://github.com/shroominic/fastui-chat.git && cd fastui-chat
./dev-install.sh
Roadmap
If you want to contribute or see whats coming soon checkout the roadmap.todo
file for open todos.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastui_chat-0.3.0.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for fastui_chat-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dee1a0c0aa3abea09848cb5cd4b6eaa8bab3f0b93c9ffafed62c2ee9c03490c1 |
|
MD5 | def26228eaab02f82a4ca974fd35ba05 |
|
BLAKE2b-256 | 4c4536088efef2499617db58b774c3d7bda696f3b3e0f54bd1bfa993bfa3c918 |