# Ik heb een fout bij het upgraden van de nieuwste discourse

**URL:** https://meta.discourse.org/t/i-have-error-when-upgrade-the-latest-discourse/308593
**Category:** Self-hosting
**Created:** [19 mei 2024 om 08:55 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-the-latest-discourse/308593 "2024-05-19T08:55:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [19 mei 2024 om 09:37 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-the-latest-discourse/308593/2 "2024-05-19T09:37:47Z")

</div>

I have edit file.yml again for:

> [@Discourse Chatbot robot](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/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…

I think @merefield edit his plugin to remove this:

```plaintext
# Config GPT
# - exec:
# cd: $home
# cmd:
# - sudo apt-get install wget ca-certificates
# - exec:
# cd: $home
# cmd:
# - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# - exec:
# cd: $home
# cmd:
# - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /et>
# - exec:
# cd: $home
# cmd:
# - apt-get update
# - exec:
# cd: $home
# cmd:
# - apt-get -y install -y postgresql-server-dev-${PG_MAJOR}
# - exec:
# cd: $home/tmp
# cmd:
# - git clone https://github.com/neondatabase/pg_embedding.git
# - exec:
# cd: $home/tmp/pg_embedding
# cmd:
# - make PG_CONFIG=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config
# - exec:
# cd: $home/tmp/pg_embedding
# cmd:
# - make PG_CONFIG=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config install
# - exec:
# cd: $home
# cmd:
# - su postgres -c 'psql discourse -c "create extension if not exists embedding;"'
# - exec:
# cd: $home
# cmd:
# - su postgres -c 'psql discourse -c "DROP INDEX IF EXISTS hnsw_index_on_chatbot_post_embeddings;"'
# - exec:
# cd: $home
# cmd:
# - su postgres -c 'psql discourse -c "DROP EXTENSION IF EXISTS embedding;"'
# - exec:
# cd: $home
# cmd:
# - su postgres -c 'psql discourse -c "ALTER EXTENSION vector UPDATE;"'
# End config GPT

```

But I’m not sure my old indexes still alive?

---

_[View the full topic](https://meta.discourse.org/t/i-have-error-when-upgrade-the-latest-discourse/308593)._
