Spaces:
Sleeping
Sleeping
Download RAG_FULL_APPLICATION_BACKEND/fix_rls.sql from Pkiran/RAG-Generation: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/spaces/Pkiran/RAG-Generation/resolve/main/RAG_FULL_APPLICATION_BACKEND/fix_rls.sql
- Command line
-
hf download hf://spaces/Pkiran/RAG-Generation/RAG_FULL_APPLICATION_BACKEND/fix_rls.sql
-
curl -L -o fix_rls.sql https://huggingface.co/spaces/Pkiran/RAG-Generation/resolve/main/RAG_FULL_APPLICATION_BACKEND/fix_rls.sql
395 Bytes
| -- Disable RLS for local testing demo | |
| ALTER TABLE users DISABLE ROW LEVEL SECURITY; | |
| ALTER TABLE documents DISABLE ROW LEVEL SECURITY; | |
| ALTER TABLE chunks DISABLE ROW LEVEL SECURITY; | |
| ALTER TABLE chunk_vectors DISABLE ROW LEVEL SECURITY; | |
| ALTER TABLE colbert_tokens DISABLE ROW LEVEL SECURITY; | |
| -- Ensure the 'admin' user is seeded if we can | |
| -- (The backend seed_admin will do this once RLS is off) | |