From b42435a0b22e797295bc8f4fc5a3b00dbf88f7f0 Mon Sep 17 00:00:00 2001 From: Amudieshwar A G Date: Tue, 21 Jul 2026 12:57:16 +0530 Subject: [PATCH] chore: remove pgvector dependency for local postgres compatibility --- schema.sql | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/schema.sql b/schema.sql index ab05cdb..a0197b2 100644 --- a/schema.sql +++ b/schema.sql @@ -1,8 +1,5 @@ -- ─── DATABASE INITIALIZATION SCHEMA FOR RIT FRESHERS HUB ─── --- Stack: PostgreSQL 16 + pgvector - --- Enable the pgvector extension for AI semantic search capabilities -CREATE EXTENSION IF NOT EXISTS vector; +-- Stack: PostgreSQL (Standard compatible) -- 1. Notes & PYQs Module Table CREATE TABLE IF NOT EXISTS notes_pyqs ( @@ -24,7 +21,7 @@ CREATE TABLE IF NOT EXISTS ai_chat_messages ( conversation_id VARCHAR(100) NOT NULL, sender_role VARCHAR(20) NOT NULL CHECK (sender_role IN ('user', 'assistant')), content TEXT NOT NULL, - embedding vector(1536), -- Vector representation of message for semantic search (e.g. OpenAI/Gemini embeddings) + embedding TEXT, -- Text representation of vector embeddings for standard local environments timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP );