봇용 채팅에서 마크다운 완전 지원

It would be nice if the Chat window had full markdown support. Currently, it appears to intentionally not render markdown headers, as discussed here.

I agree that most people would not type markdown headers in a chat but LLMs might. As chatbots are becoming more common, it would be nice if any markdown sent by an LLM displayed correctly in the Chat window.

With RAG support bots in particular, the LLM receives raw post content from topics which may contain markdown headers. If it includes those headers in the chat reply, they don’t work as is.

4개의 좋아요

My users are using AI mostly in chats (both DAI and Chatbot) and broken headers are a bit annoying. For me, ordinary users just don’t care :smirking_face:

But what bugs me the most is when I copy those chat messages to a topic those quoted headers stay broken.

5개의 좋아요

We hear you and are thinking about this problem.

3개의 좋아요

We now support headings in chat:

https://github.com/discourse/discourse/commit/279fc846db1057dc9e3ee1674e3d909db1ee814a

5개의 좋아요

Including ones that are copied/quoted to topics?

1개의 좋아요

Yes it will work

3개의 좋아요

After more consideration, headings will now be limited to messages done by bots (id < 0):

https://github.com/discourse/discourse/commit/5010fced92438d9bb3f19aa7d15f1e5f670a26ac

Why? Is there a normal chat situation where people begin the line with # for another purpose? Just curious.

1개의 좋아요

In our rapid tests it’s been abused by people. Also platforms like slack don’t support it. For now we see more cons than pros.

2개의 좋아요

Ryan I would like to close this as completed, I am renaming to

“Full markdown support in Chat for bots”

Totally open to open another topic here for more general use, but the original request was mostly centered around bots.

3개의 좋아요

We don’t need it for more general use. I was only asking out of curiosity.

I guess maths is going to be another tricky problem… cause that can be pretty common as well

But its a rabbit hole cause GPT4-o can refuse to make mathjax so we would also need a another decoder specially for this.

1개의 좋아요

Does such a topic exist? If not, might I create one?

…not least, to support migrations:

(Until it supports all of Discourse’s Markdown, it’s useless to me.)