Skip to main content
Glama
init.sql739 B
-- Enable the vector extension CREATE EXTENSION IF NOT EXISTS vector; -- Create memories table if it doesn't exist CREATE TABLE IF NOT EXISTS memories ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), type TEXT NOT NULL, content JSONB NOT NULL, source TEXT NOT NULL, embedding vector(384) NOT NULL, -- BERT model outputs 384-dimensional vectors tags TEXT[] DEFAULT '{}', confidence DOUBLE PRECISION NOT NULL, created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP ); -- Create an index for vector similarity search if it doesn't exist CREATE INDEX IF NOT EXISTS memories_embedding_idx ON memories USING ivfflat (embedding vector_l2_ops) WITH (lists = 100);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/WebSurfinMurf/mcp-memory-postgres'

If you have feedback or need assistance with the MCP directory API, please join our Discord server