我再次编辑了 file.yml 文件,用于:
我认为 @merefield 编辑了他的插件以删除此内容:
# 配置 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;"'
# 结束配置 GPT
但我不太确定我之前的索引是否仍然存在?