File size: 857 Bytes
4b3a33f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import asyncio
import os
from supabase import create_client
from dotenv import load_dotenv

load_dotenv()

SUPABASE_URL = os.environ.get("SUPABASE_URL")
SUPABASE_KEY = os.environ.get("SUPABASE_SERVICE_ROLE_KEY") or os.environ.get("SUPABASE_KEY")
client = create_client(SUPABASE_URL, SUPABASE_KEY)

async def inspect():
    print("--- Profile Embeddings Sample ---")
    p_res = client.table("profile_embeddings").select("*").limit(1).execute()
    if p_res.data:
        print(", ".join(p_res.data[0].keys()))
    else:
        print("No profile embeddings found")

    print("\n--- Job Embeddings Sample ---")
    j_res = client.table("job_embeddings").select("*").limit(1).execute()
    if j_res.data:
        print(", ".join(j_res.data[0].keys()))
    else:
        print("No job embeddings found")

if __name__ == "__main__":
    asyncio.run(inspect())