Streaming Chat Bot made with fast-api and Websocket.
⚠️ Under Active development
- You can choose a model based on your preference.
- the LLM has been called in streaming mode
- Websocket has been used for this chat-bot; so you can send events
- each chat session is stored inside postgresql, including messages.
- temperature, max_token, stop_sequence has been set.
- Token Usage per conversation is tracked.
- Websocket manager Handles Multiple users streaming at once.
- Built-in logic to handle
max Token hits. - a responsive Frontend.
- Redis will be added for
using chatsand postgres forolder chats. - handle production concerns.
- use fixed-sized seed to debug
- What happens if the connection drops mid-stream?
- Install Excalidraw extension via your IDE
- Open
excalidrawfolder and read the files.
- clone the repo
- pip install -e .
- Start the FastAPI backend:
uvicorn app.main:app --reload - In a second terminal, launch the Flet app:
python -m app.ui.flet_app
SSE is made for one line communication, user can't send events when Ai is mid response; which means no Stop Generating which is bad.