• AIPressRoom
  • Posts
  • ClippyGPT – How I Built Supabase’s OpenAI Doc Search (Embeddings)

ClippyGPT – How I Built Supabase’s OpenAI Doc Search (Embeddings)

Supabase hired me to build ClippyGPT – their next generation doc search. We can ask our old friend Clippy anything you want about Supabase, and it will answer it using natural language. Powered by OpenAI + prompt engineering.

In this video I will be showing you exactly how I did this, and how you can do the same in your projects. We’ll be covering:– Prompt engineering and best practices– Working with a custom knowledge base via context injection + OpenAI embeddings– How to store embeddings in Postgres using pgvector

00:00 Why?01:40 Let’s get started03:15 Custom knowledge base04:49 Context injection06:13 Pre-process MDX files13:40 Embeddings15:40 Storing in Postgres + pgvector22:21 API endpoint (edge function)23:44 Calculating similarity in pgvector27:55 Prompt engineering33:15 Prompt best practices38:37 Demo time!41:32 Thanks for watching!