Spaces:
Sleeping
Sleeping
Download supabase_setup_minimal.sql from muyeong/119_ChatBot: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/muyeong/119_ChatBot/resolve/main/supabase_setup_minimal.sql
- Command line
-
hf download hf://spaces/muyeong/119_ChatBot/supabase_setup_minimal.sql
-
curl -L -o supabase_setup_minimal.sql https://huggingface.co/spaces/muyeong/119_ChatBot/resolve/main/supabase_setup_minimal.sql
723 Bytes
| -- 가장 기본적인 Supabase 설정 | |
| -- 모든 복잡한 기능을 제거하고 최소한의 기능만 포함 | |
| -- 1. pgvector 확장 활성화 | |
| CREATE EXTENSION IF NOT EXISTS vector; | |
| -- 2. 가장 간단한 documents 테이블 생성 | |
| CREATE TABLE IF NOT EXISTS documents ( | |
| id SERIAL PRIMARY KEY, | |
| content TEXT NOT NULL, | |
| metadata JSONB DEFAULT '{}', | |
| embedding vector(1536), -- OpenAI text-embedding-3-small 차원 | |
| created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() | |
| ); | |
| -- 3. 성공 메시지 | |
| SELECT 'Minimal Supabase setup completed!' as status; | |
| -- 4. 테이블 구조 확인 | |
| SELECT | |
| column_name, | |
| data_type | |
| FROM information_schema.columns | |
| WHERE table_name = 'documents' | |
| ORDER BY ordinal_position; |