# Discourse AI Topic Summary 🤖

**URL:** https://meta.discourse.org/t/discourse-ai-topic-summary/256711
**Category:** Plugin
**Tags:** ai
**Created:** [March 1, 2023, 7:23pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711 "2023-03-01T19:23:17Z")
**Posts on this page:** 20
**Page:** 6

<div class="post-metadata">

### Author: ![ncaming215](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ncaming215/32/205701_2.png) [@ncaming215](https://meta.discourse.org/u/ncaming215)
#### Post date: [May 22, 2024, 1:22pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/103 "2024-05-22T13:22:19Z")

</div>

> [@merefield](#):
>
> > [@ncaming215](#):
> >
> > “system\_tagging”
> 
> Is the system prompt (you can edit this if you wish)
> 
> > [@ncaming215](#):
> >
> > “prompt.tag”?
> 
> Is the “user” query sent to the Chat Completion that actually does the work.

Sorry, last question on this: so if I want to deliver a better, more nuanced prompt to the LLM, I’m using “system.tagging” and not “prompt.tag”, correct?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 22, 2024, 1:43pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/104 "2024-05-22T13:43:20Z")

</div>

> [@ncaming215](#):
>
> Sorry, last question on this: so if I want to deliver a better, more nuanced prompt to the LLM, I’m using “system.tagging” and not “prompt.tag”, correct?

You are best to change `prompt.tag` imho, but feel free to experiment.

Results with these prompts were so good from the get-go (with GPT 4) I’ve not really focussed or experimented much.

`system.tagging` might help you modify the “style” or “character” of the response (e.g. humorous or theatrical)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 5, 2024, 3:03pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/105 "2024-06-05T15:03:25Z")

</div>

I’ve been meaning to add this for a while, but the results from the Completions-based auto-tagging system were just too good to make it a priority.

But this morning I added auto-tagging based on Embeddings classification as an option:

[https://github.com/merefield/discourse-ai-topic-summary/pull/16](https://github.com/merefield/discourse-ai-topic-summary/pull/16)

[https://github.com/merefield/discourse-ai-topic-summary/pull/17](https://github.com/merefield/discourse-ai-topic-summary/pull/17)

There are various new settings, have a good look 👁

Enjoy

---

<div class="post-metadata">

### Author: ![ncaming215](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ncaming215/32/205701_2.png) [@ncaming215](https://meta.discourse.org/u/ncaming215)
#### Post date: [June 15, 2024, 12:11am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/106 "2024-06-15T00:11:24Z")

</div>

Heads up, about 5 hours ago my site became inoperable due to a 500 error again. I had made no changes, using GPT 4. Could be that @RGJ pushed an update (but unlikely, since I didn’t see a note). Turned off the plugin, and the error resolved.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 15, 2024, 4:15am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/107 "2024-06-15T04:15:22Z")

</div>

I’m not seeing any issues at present.

Could you please share the corresponding logged error and confirm the version of the plugin you have installed?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [June 15, 2024, 6:19am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/108 "2024-06-15T06:19:37Z")

</div>

Only AI-related 500 error what I get, started yesterday, is (or was, I have not examined further yet) automatic alt. Why I didn’t start digging it deeper? Because error 500 comes really often from OpenAI.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [June 15, 2024, 7:37am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/109 "2024-06-15T07:37:59Z")

</div>

It seems like the plugin on your site regressed to an older version somehow.😭

@ncaming215 My apologies, this is most likely our fault. I’ve put it back on 0.2.2 now and going to find out what went wrong. For now @merefield no need to worry.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 18, 2024, 7:31pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/110 "2024-07-18T19:31:09Z")

</div>

Delighted to pass on this announcement from Open AI and confirm that AI Topic Summary options have been updated:

> **[Introducing GPT-4o mini in the API](https://community.openai.com/t/introducing-gpt-4o-mini-in-the-api/871594?u=merefield)**
>
> We just officially launched GPT-4o mini—our new affordable and intelligent small model that’s significantly smarter, cheaper, and just as fast as GPT-3.5 Turbo. Some details on the new model: Intelligence: GPT-4o mini outperforms GPT-3.5 Turbo...

[https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/](https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/)

[https://github.com/merefield/discourse-chatbot/pull/113](https://github.com/merefield/discourse-chatbot/pull/113)

This is a big deal for AI Topic Summary, because this new model has:

- 128k context (so can summarise lots of Posts!)
- is 60% cheaper than the cost of GPT 3.5 Turbo!

Enjoy!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 21, 2024, 1:08pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/111 "2024-07-21T13:08:00Z")

</div>

Whoooops … there was some missing code I had forgotten to check in.

This is now resolved and I’ve improved logging at the same time:

[https://github.com/merefield/discourse-ai-topic-summary/pull/19](https://github.com/merefield/discourse-ai-topic-summary/pull/19)

thanks to @Jagster for raising the alarm.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [August 10, 2024, 9:54am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/112 "2024-08-10T09:54:31Z")

</div>

> [@merefield](#):
>
> ```plaintext
> :/var/www/discourse# su postgres -c 'psql discourse'
> \dx
> ALTER EXTENSION vector UPDATE;
> \dx
> exit
> 
> ```

When I do the above-told, I get this error:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/9/1/3/913efef6980f8b842d255af1f2f164d7a2b12105.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 10, 2024, 9:55am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/113 "2024-08-10T09:55:51Z")

</div>

Those are instructions for the [standard install](https://meta.discourse.org/t/142537?silent=true).

Looks like you are trying to enter the database in the “web only” container? 🤔

You may need to enter the data container instead in your case

The good news is that [judging by this](https://meta.discourse.org/t/broken-update-error-must-be-owner-of-extension-vector-pg-insufficientprivilege/320817) this may now be unnecessary (at least for `tests-passed`) as I believe core has finally upgraded the vector extension via their standard scripting, so you may only have to fully rebuild.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [August 10, 2024, 10:01am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/114 "2024-08-10T10:01:18Z")

</div>

Yes. Thanks.  
(Yes, I’m no 2 container setup. Yes I’m on Tests-Passed).

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [October 8, 2024, 4:14pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/115 "2024-10-08T16:14:30Z")

</div>

Have added a thumbnail generation feature to this plugin.

Optionally it will depict the summary in an image it will automatically add to the top of the OP.

[https://github.com/merefield/discourse-ai-topic-summary/pull/20](https://github.com/merefield/discourse-ai-topic-summary/pull/20)

- You must enable it in plugin settings
- You can optionally elect to automatically delete the last top image each time
- You can edit the prompt via the link in the plugin settings so you can influence the style and content (but this will be applied to all subsequently generated images)

Enjoy 🖼

---

<div class="post-metadata">

### Author: ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)
#### Post date: [October 20, 2024, 10:53am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/116 "2024-10-20T10:53:25Z")

</div>

My locally hosted Chatbot is replacing the name of any topic in a link with the term `slug`

eg, an expected link is

`https://localhost/t/title-of-the-topic-concerned/2341/5`

but Chatbot is hyperlinking references with a URL such as:

`https://localhost/t/slug/2341/5`

I tried searching using the term `slug` but couldn’t glean anything except for a mention of slug in the settings: `slug generation method` which is set to the default, `ascii`

Thanks in advance for any insights!

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [October 20, 2024, 11:01am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/117 "2024-10-20T11:01:36Z")

</div>

Mine is using form as `[Jagster](/t/-/11078/1)`. I don’t think that localhost changes that behaviour, but I don’t know it for sure.

But by Chatbot are you referring to the summary functionality of Discourse AI?

---

<div class="post-metadata">

### Author: ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)
#### Post date: [October 20, 2024, 11:47am UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/118 "2024-10-20T11:47:19Z")

</div>

I’m sorry if I’m not using the right terminology. I have the Ai plugin enabled in a localhost instance and converse with it as @chatbot. Whether in a chat or in a topic reply, the responses are often linked to sources in topics elsewhere on the Discourse instance. Like this in a topic:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/6/b/e/6bef14fc98c34f9395005d34348eee3e5c393c66.png)  
or this in a chat session:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/2/9/4/2944a1aeae5538d5e28e3a300226fb9dba9764a3.png)

In each case, the hyperlinked url is malformed as it replaces the topic name with `slug`

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [October 20, 2024, 1:31pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/119 "2024-10-20T13:31:54Z")

</div>

I asked only because out there is this too:

> [@Discourse Chatbot robot](https://meta.discourse.org/t/discourse-chatbot/256652):
>
> information_sourceSummary The Original AI Chatbot for Discoursehammer_and_wrenchRepository Link [GitHub - merefield/discourse-chatbot: An AI bot with RAG capability for Topics, Chat & Customer Support in Discourse, currently powered by OpenAI · GitHub](https://github.com/merefield/discourse-chatbot)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)heartSponsorship Please consider becoming an ongoing [sponsor of my open source work](https://github.com/sponsors/merefield) at a level that suits your or your organisation’s resources and needs to ens…

With that we can change prompts. But when using Discourse AI we can’t change the prompt of summary (at the monent).

The summary of DAI creates links right here, though. That’s why you need some more pro than I am ever. Because your issues **may** come from outdated plugin or localhost install, and someone who really knows what is going on is needed.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [October 20, 2024, 1:41pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/120 "2024-10-20T13:41:45Z")

</div>

Hello! 👋

Neither [Chatbot](https://meta.discourse.org/t/discourse-chatbot/256652) nor this plugin are really designed to provide accurate links when running in local dev.

The target for functionality is always Production though of course it’s a bonus when you can test in dev.

I absolutely would accept a good PR if you were to submit one that improved support for localhost links.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [October 20, 2024, 1:48pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/121 "2024-10-20T13:48:46Z")

</div>

> [@Amicable](#):
>
> [https://localhost/t/slug/2341/5](https://localhost/t/slug/2341/5)

Doesn’t the link work like this? I would expect it to work the same way as the one with the topic title, because Discourse relies on the topic id.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [October 20, 2024, 1:58pm UTC](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/122 "2024-10-20T13:58:18Z")

</div>

Might not work as missing the port number.

[Previous page](https://meta.discourse.org/t/discourse-ai-topic-summary/256711.md?page=5)

[Next page](https://meta.discourse.org/t/discourse-ai-topic-summary/256711.md?page=7)
