chore: remove pgvector dependency for local postgres compatibility
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
-- ─── DATABASE INITIALIZATION SCHEMA FOR RIT FRESHERS HUB ───
|
-- ─── DATABASE INITIALIZATION SCHEMA FOR RIT FRESHERS HUB ───
|
||||||
-- Stack: PostgreSQL 16 + pgvector
|
-- Stack: PostgreSQL (Standard compatible)
|
||||||
|
|
||||||
-- Enable the pgvector extension for AI semantic search capabilities
|
|
||||||
CREATE EXTENSION IF NOT EXISTS vector;
|
|
||||||
|
|
||||||
-- 1. Notes & PYQs Module Table
|
-- 1. Notes & PYQs Module Table
|
||||||
CREATE TABLE IF NOT EXISTS notes_pyqs (
|
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,
|
conversation_id VARCHAR(100) NOT NULL,
|
||||||
sender_role VARCHAR(20) NOT NULL CHECK (sender_role IN ('user', 'assistant')),
|
sender_role VARCHAR(20) NOT NULL CHECK (sender_role IN ('user', 'assistant')),
|
||||||
content TEXT NOT NULL,
|
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
|
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user