The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Revert "fix: date changed to may 24"
egor-romanovbbde81f0de46
diff --git a/apps/www/_blog/2023-05-24-chatgpt-plugins-support-postgres.mdx b/apps/www/_blog/2023-05-25-chatgpt-plugins-support-postgres.mdxsimilarity index 94%rename from apps/www/_blog/2023-05-24-chatgpt-plugins-support-postgres.mdxrename to apps/www/_blog/2023-05-25-chatgpt-plugins-support-postgres.mdxindex f2e7387442c..1e132397134 100644--- a/apps/www/_blog/2023-05-24-chatgpt-plugins-support-postgres.mdx+++ b/apps/www/_blog/2023-05-25-chatgpt-plugins-support-postgres.mdx@@ -5,11 +5,11 @@ tags:- AI- tutorial- postgres-date: '2023-05-24'+date: '2023-05-25'toc_depth: 2author: egor_romanov,paul_copplestone-image: 2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugins-support-postgres.jpeg-thumb: 2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugins-support-postgres.jpeg+image: 2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugins-support-postgres.jpeg+thumb: 2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugins-support-postgres.jpeg---One of the challenges that ChatGPT faces is being able to answer questions from a private dataset. We can solve this with “retrieval plugins”, which allow ChatGPT to access information from a database.@@ -132,13 +132,13 @@ This will require several steps:<imgclassName="dark:hidden !m-0"alt="diagram reference"- src="/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--light.svg"+ src="/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--light.svg"/><imgclassName="hidden dark:block !m-0"alt="diagram reference"- src="/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--dark.svg"+ src="/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--dark.svg"/>### Step 1: Fork the ChatGPT Retrieval Plugin repository@@ -189,7 +189,7 @@ Using `supabase-cli` is not required and you can use any other docker image or hTo create embeddings Plugin uses OpenAI API and `text-embedding-ada-002` model. Each time we add some data to our datastore, or try to query relevant information from it, embedding will be created either for inserted data chunk, or for the query itself. To make it work we need to export `OPENAI_API_KEY`. If you already have an account in OpenAI, you just need to go to [User Settings - API keys](https://platform.openai.com/account/api-keys) and Create new secret key.-+### Step 6: Run the plugin!@@ -234,23 +234,23 @@ Now, it is time to add our plugin to ChatGPT.To integrate our plugin with ChatGPT, register it in the ChatGPT dashboard. Assuming you have access to ChatGPT Plugins and plugin development, select the Plugins model in a new chat, then choose "Plugin store" and "Develop your own plugin." Enter `localhost:3333` into the domain input, and your plugin is now part of ChatGPT.-+-+-+You can now ask questions about Postgres and receive answers derived from the documentation!Let's try it out: ask ChatGPT to find out when to use `check` and when to use `using`. You will be able to see what queries were sent to our plugin and what it responded to.-+-+And after ChatGPT receives a response from the plugin it will answer your question with the data from the documentation.-+## Wrap updiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/ask-chatgpt.png b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/ask-chatgpt.pngsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/ask-chatgpt.pngrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/ask-chatgpt.pngdiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-change-model.png b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-change-model.pngsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-change-model.pngrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-change-model.pngdiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-local-plugin.png b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-local-plugin.pngsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-local-plugin.pngrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-local-plugin.pngdiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--dark.svg b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--dark.svgsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--dark.svgrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--dark.svgdiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--light.svg b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--light.svgsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--light.svgrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--light.svgdiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-store.png b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-store.pngsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-store.pngrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-store.pngdiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-query.png b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-query.pngsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-query.pngrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-query.pngdiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-reply.png b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-reply.pngsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-reply.pngrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-reply.pngdiff --git a/apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/openai-secret-keys.png b/apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/openai-secret-keys.pngsimilarity index 100%rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/openai-secret-keys.pngrename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/openai-secret-keys.png