JPBianchi commited on
Commit
b4cbaad
1 Parent(s): 32c34c0
Files changed (1) hide show
  1. app/engine/vectorstore.py +6 -3
app/engine/vectorstore.py CHANGED
@@ -55,6 +55,7 @@ class VectorStore:
55
  }
56
 
57
  self.model_path = model_path
 
58
  try:
59
  print("We were here")
60
  print("key", os.environ.get('FINRAG_WEAVIATE_API_KEY'))
@@ -62,13 +63,15 @@ class VectorStore:
62
  # self.url = os.environ.get('FINRAG_WEAVIATE_ENDPOINT')
63
  print('Before client creation')
64
  self.client = WeaviateWCS(endpoint="https://finrag-uflmnhbp.weaviate.network",
65
- api_key=s1+'OOf',
66
- model_name_or_path=self.model_path)
67
  print('After client creation')
 
68
  except Exception as e:
69
  # raise Exception(f"Could not create Weaviate client: {e}")
70
- pass
71
 
 
72
  assert self.client._client.is_live(), "Weaviate is not live"
73
  assert self.client._client.is_ready(), "Weaviate is not ready"
74
  # careful with accessing '_client' since the weaviate helper usually closes the connection every time
 
55
  }
56
 
57
  self.model_path = model_path
58
+
59
  try:
60
  print("We were here")
61
  print("key", os.environ.get('FINRAG_WEAVIATE_API_KEY'))
 
63
  # self.url = os.environ.get('FINRAG_WEAVIATE_ENDPOINT')
64
  print('Before client creation')
65
  self.client = WeaviateWCS(endpoint="https://finrag-uflmnhbp.weaviate.network",
66
+ api_key=s1+'OOf',
67
+ model_name_or_path=self.model_path)
68
  print('After client creation')
69
+
70
  except Exception as e:
71
  # raise Exception(f"Could not create Weaviate client: {e}")
72
+ print(f"Could not create Weaviate client: {e}")
73
 
74
+ print("URL", os.environ.get('FINRAG_WEAVIATE_ENDPOINT'))
75
  assert self.client._client.is_live(), "Weaviate is not live"
76
  assert self.client._client.is_ready(), "Weaviate is not ready"
77
  # careful with accessing '_client' since the weaviate helper usually closes the connection every time