ORromu commited on
Commit
c61d7ba
·
verified ·
1 Parent(s): 91630bb

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +3 -1
agent.py CHANGED
@@ -25,6 +25,8 @@ from langchain_community.vectorstores import SupabaseVectorStore
25
  from supabase.client import Client, create_client
26
 
27
  HUGGINGFACEHUB_API_TOKEN = getenv("HUGGINGFACEHUB_API_TOKEN")
 
 
28
 
29
 
30
  # load the system prompt from the file
@@ -36,7 +38,7 @@ embeddings = HuggingFaceEmbeddings(
36
  model_name="sentence-transformers/all-mpnet-base-v2"
37
  ) # dim=768
38
  supabase: Client = create_client(
39
- os.environ.get("SUPABASE_URL"), os.environ.get("SUPABASE_SERVICE_ROLE_KEY")
40
  )
41
  vector_store = SupabaseVectorStore(
42
  client=supabase,
 
25
  from supabase.client import Client, create_client
26
 
27
  HUGGINGFACEHUB_API_TOKEN = getenv("HUGGINGFACEHUB_API_TOKEN")
28
+ SUPABASE_URL = getenv("SUPABASE_URL")
29
+ SUPABASE_SERVICE_ROLE_KEY = getenv("SUPABASE_URL")
30
 
31
 
32
  # load the system prompt from the file
 
38
  model_name="sentence-transformers/all-mpnet-base-v2"
39
  ) # dim=768
40
  supabase: Client = create_client(
41
+ SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY
42
  )
43
  vector_store = SupabaseVectorStore(
44
  client=supabase,