From bbde81f0de464ec33fe2a9f099c5df9edd32dad6 Mon Sep 17 00:00:00 2001 From: egor-romanov Date: Wed, 24 May 2023 23:47:40 +0300 Subject: [PATCH] Revert "fix: date changed to may 24" This reverts commit 05f7a5e4d5462de499406e25d77ff01a6d8d784f. --- ...5-25-chatgpt-plugins-support-postgres.mdx} | 24 +++++++++--------- .../ask-chatgpt.png | Bin .../chatgpt-change-model.png | Bin .../chatgpt-local-plugin.png | Bin .../chatgpt-plugin-scheme--dark.svg | 0 .../chatgpt-plugin-scheme--light.svg | 0 .../chatgpt-plugin-store.png | Bin .../chatgpt-query.png | Bin .../chatgpt-reply.png | Bin .../openai-secret-keys.png | Bin 10 files changed, 12 insertions(+), 12 deletions(-) rename apps/www/_blog/{2023-05-24-chatgpt-plugins-support-postgres.mdx => 2023-05-25-chatgpt-plugins-support-postgres.mdx} (94%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/ask-chatgpt.png (100%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/chatgpt-change-model.png (100%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/chatgpt-local-plugin.png (100%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/chatgpt-plugin-scheme--dark.svg (100%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/chatgpt-plugin-scheme--light.svg (100%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/chatgpt-plugin-store.png (100%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/chatgpt-query.png (100%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/chatgpt-reply.png (100%) rename apps/www/public/images/blog/{2023-05-24-chatgpt-plugins-support-postgres => 2023-05-25-chatgpt-plugins-support-postgres}/openai-secret-keys.png (100%) 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.mdx similarity index 94% rename from apps/www/_blog/2023-05-24-chatgpt-plugins-support-postgres.mdx rename to apps/www/_blog/2023-05-25-chatgpt-plugins-support-postgres.mdx index 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: 2 author: 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: diagram reference diagram reference ### 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 h To 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. -![OpenAI Secret Keys](/images/blog/2023-05-24-chatgpt-plugins-support-postgres/openai-secret-keys.png) +![OpenAI Secret Keys](/images/blog/2023-05-25-chatgpt-plugins-support-postgres/openai-secret-keys.png) ### 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. -![ChatGPT Change Model](/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-change-model.png) +![ChatGPT Change Model](/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-change-model.png) -![ChatGPT Plugin Store](/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-store.png) +![ChatGPT Plugin Store](/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-store.png) -![ChatGPT Local Plugin](/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-local-plugin.png) +![ChatGPT Local Plugin](/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-local-plugin.png) 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. -![Ask ChatGPT](/images/blog/2023-05-24-chatgpt-plugins-support-postgres/ask-chatgpt.png) +![Ask ChatGPT](/images/blog/2023-05-25-chatgpt-plugins-support-postgres/ask-chatgpt.png) -![ChatGPT Query](/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-query.png) +![ChatGPT Query](/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-query.png) And after ChatGPT receives a response from the plugin it will answer your question with the data from the documentation. -![ChatGPT Reply](/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-reply.png) +![ChatGPT Reply](/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-reply.png) ## Wrap up diff --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.png similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/ask-chatgpt.png rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/ask-chatgpt.png diff --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.png similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-change-model.png rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-change-model.png diff --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.png similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-local-plugin.png rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-local-plugin.png diff --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.svg similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--dark.svg rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--dark.svg diff --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.svg similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--light.svg rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-scheme--light.svg diff --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.png similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-plugin-store.png rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-plugin-store.png diff --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.png similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-query.png rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-query.png diff --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.png similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/chatgpt-reply.png rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/chatgpt-reply.png diff --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.png similarity index 100% rename from apps/www/public/images/blog/2023-05-24-chatgpt-plugins-support-postgres/openai-secret-keys.png rename to apps/www/public/images/blog/2023-05-25-chatgpt-plugins-support-postgres/openai-secret-keys.png