Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: update docs.

thorwebdev81cce7a62981
diff --git a/apps/docs/pages/guides/ai/langchain.mdx b/apps/docs/pages/guides/ai/langchain.mdx
index 3f66da36b3e..fa8320819a2 100644
--- a/apps/docs/pages/guides/ai/langchain.mdx
+++ b/apps/docs/pages/guides/ai/langchain.mdx
@@ -1,4 +1,6 @@
import Layout from '~/layouts/DefaultGuideLayout'
+import { Tabs } from 'ui'
+export const TabPanel = Tabs.Panel
export const meta = {
id: 'ai-lang-chain',
@@ -14,6 +16,21 @@ export const meta = {
Prepare you database with the relevant tables:
+<Tabs
+ scrollable
+ size="small"
+ type="underlined"
+ defaultActiveId="dashboard"
+>
+<TabPanel id="dashboard" label="Dashboard">
+
+1. Go to the [SQL Editor](https://supabase.com/dashboard/project/_/sql) page in the Dashboard.
+2. Click **LangChain** in the Quick start section.
+3. Click **Run**.
+
+</TabPanel>
+<TabPanel id="sql" label="SQL">
+
```sql
-- Enable the pgvector extension to work with embedding vectors
create extension vector;
@@ -55,6 +72,9 @@ end;
$$;
```
+</TabPanel>
+</Tabs>
+
## Usage
You can now search your documents using any Node.js application. This is intended to be run on a secure server route.