Settings

Theme

Show HN: Rust Slack chat bot interacting with LLMs

github.com

4 points by random_ 2 years ago · 1 comment · 1 min read

Reader

Hi there, I've built this Slack chat bot with Rust, with a step by step on how to create, configure and deploy the bot.

Not super feature complete, but I imagine that a reasonable starting point template for anyone interested in creating Slack apps/bots in Rust:

Features and notes:

* Allows the user to interact with a large language model, in this case HF inference API, but should not be hard to adapt to other LLM APIs or local LLMs (I'm planning on doing that with Candle and Mistral).

* Also allows to receive a simple plot from the bot, should be easy to adapt to send more complex plots or other files.

* Authenticating the Slack event payloads was kind of tricky, in particular, as it's handled using HMAC validation of the body and a timestamp header.

random_OP 2 years ago

Related, I also made a Slack app that converts HTML to PDF using Chromium (Dockerfile provided) and send to user https://github.com/randommm/rust-slackbot-html-to-pdf/

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection