wt002 commited on
Commit
82ecd8b
·
verified ·
1 Parent(s): b0eca46

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +4 -0
agent.py CHANGED
@@ -148,6 +148,7 @@ supabase: Client = create_client(
148
  )
149
 
150
  # Initialize Supabase vector store
 
151
  vector_store = SupabaseVectorStore(
152
  client=supabase,
153
  embedding=embeddings,
@@ -161,6 +162,9 @@ create_retriever_tool = create_retriever_tool(
161
  name="Question Search",
162
  description="A tool to retrieve similar questions from a vector store."
163
  )
 
 
 
164
 
165
 
166
  tools = [
 
148
  )
149
 
150
  # Initialize Supabase vector store
151
+ try:
152
  vector_store = SupabaseVectorStore(
153
  client=supabase,
154
  embedding=embeddings,
 
162
  name="Question Search",
163
  description="A tool to retrieve similar questions from a vector store."
164
  )
165
+ except Exception as e:
166
+ print(f"Error: {e}")
167
+
168
 
169
 
170
  tools = [