The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
vector search
Copple5e08757dbd8d
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex f5b5cb28b9b..1176430f692 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -286,15 +286,6 @@ export const gettingstarted: NavMenuConstant = {},],},- {- name: 'AI & ML',- items: [- {- name: 'Vector Search with OpenAI',- url: '/guides/getting-started/openai/vector-search',- },- ],- },],}@@ -885,6 +876,10 @@ export const ai: NavMenuConstant = {name: 'Examples',url: undefined,items: [+ {+ name: 'Docs search with OpenAI',+ url: '/guides/ai/examples/docs-search',+ },{name: 'Hugging Face inference with Edge Functions',url: '/guides/ai/hugging-face-inference-edge-functions',diff --git a/apps/docs/pages/guides/getting-started/openai/vector-search.mdx b/apps/docs/pages/guides/ai/examples/docs-search.mdxsimilarity index 96%rename from apps/docs/pages/guides/getting-started/openai/vector-search.mdxrename to apps/docs/pages/guides/ai/examples/docs-search.mdxindex d1f5023d7f1..433a7d69801 100644--- a/apps/docs/pages/guides/getting-started/openai/vector-search.mdx+++ b/apps/docs/pages/guides/ai/examples/docs-search.mdx@@ -2,7 +2,7 @@ import Layout from '~/layouts/DefaultGuideLayout'import StepHikeCompact from '~/components/StepHikeCompact'export const meta = {- title: 'OpenAI Embeddings & Vector Search',+ title: 'Docs search using OpenAI',subtitle:'Learn how to build a ChatGPT-style doc search powered by Next.js, OpenAI, and Supabase.',breadcrumb: 'OpenAI',@@ -10,24 +10,20 @@ export const meta = {tocVideo: 'xmfNUCjszh4',}-In this tutorial we'll look at how you can build a custom ChatGPT-like search experience for your own knowledge base. See our [Supabase Clippy](https://supabase.com/blog/chatgpt-supabase-docs) blog post for an example of how this will look.+In this tutorial we'll look at how you can build a custom ChatGPT-like search experience for your own knowledge base. You will:-We assume that you have a Next.js project with a collection of `.mdx` files nested inside your `pages` directory. We will start developing locally with the Supabase CLI and then push our local database changes to our hosted Supabase project.+1. Convert your markdown into embeddings using OpenAI.+2. Store you embeddings in Postgres using pgvector.+3. Deploy a function for answering your users' questions.-## Video Guide+You can read our [Supabase Clippy](https://supabase.com/blog/chatgpt-supabase-docs) blog post for a full example.-<div class="video-container">- <iframe- src="https://www.youtube-nocookie.com/embed/xmfNUCjszh4"- frameBorder="1"- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"- allowFullScreen- ></iframe>-</div>+We assume that you have a Next.js project with a collection of `.mdx` files nested inside your `pages` directory. We will start developing locally with the Supabase CLI and then push our local database changes to our hosted Supabase project.<Admonition type="note">- You can find the [full example on- GitHub](https://github.com/supabase-community/nextjs-openai-doc-search).++You can find the [full Next.js example on GitHub](https://github.com/supabase-community/nextjs-openai-doc-search).+</Admonition>## Create a project@@ -553,5 +549,5 @@ Want to learn more about the awesome tech that is powering this?></iframe></div>-export const Page = ({ children }) => <Layout meta={meta} children={children} hideToc={true} />+export const Page = ({ children }) => <Layout meta={meta} children={children} />export default Pagediff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.jsindex 7331a19da0b..8f29e7aa1de 100644--- a/apps/www/lib/redirects.js+++ b/apps/www/lib/redirects.js@@ -1971,4 +1971,9 @@ module.exports = [source: '/blog/how-supabase-accelerates-development-of-all-pull-together',destination: '/customers',},+ {+ permanent: true,+ source: '/docs/guides/getting-started/openai/vector-search',+ destination: '/docs/guides/ai/examples/docs-search',+ },]