All blocks

AI

Knowledge

Documents and chunks for retrieval with an embedding and a tsvector each, scoped to an organization, agent, project, chat or user; hybrid search with reciprocal rank fusion, chunks that keep their embedding when unchanged, and an embed job per document when jobs is installed.

DocsModes:managed
terminal
npx better-supabase sql add knowledge
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by knowledge; sql add installs them too.
      "updated-at": {},
      tenant: {},
      "vector-search": {},
      access: {},
      // Modes: "managed". The default is "managed".
      knowledge: { mode: "managed" },
    },
  },
});