pathwaycom / llm-app

Dynamic RAG for enterprise. Ready to run with Docker,⚡in sync with Sharepoint, Google Drive, S3, Kafka, PostgreSQL, real-time data APIs, and more.
https://pathway.com/developers/templates/
MIT License
3.36k stars 192 forks source link

pass all outputs to Slack #72

Closed samanemami closed 4 months ago

samanemami commented 7 months ago

Steps to reproduce

Is there any way to pass all outputs to Slack for alert?

Relevant log output

Sorry, it is not a bug, but rather an ask for a favor

What did you expect to happen?

No matter if it is alert or not, pass it to slack

Version

Current main branch

Docker Versions (if used)

No response

OS

Linux

On which CPU architecture did you run Pathway?

x86-64

dxtrous commented 7 months ago

Hi @samanemami yes, it is possible to push changes to any Pathway table to Slack. In particular, you can write query replies into a Pathway table, then push changes to this table to a Slack output connector. Here is another example of code using a custom-made Slack connector that pushes changes to a table called t_alert to Slack: https://pathway.com/developers/tutorials/realtime-log-monitoring.