CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

-- Ollama（nomic-embed-text）：768 维
CREATE SCHEMA IF NOT EXISTS ollama;
DROP TABLE IF EXISTS ollama.vector_store;
CREATE TABLE ollama.vector_store (
                                     id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
                                     content  TEXT NOT NULL,
                                     metadata JSONB,
                                     embedding VECTOR(768)
);


