JPBianchi commited on
Commit
36eaee6
1 Parent(s): d811058

weaviate client test

Browse files
Files changed (1) hide show
  1. app/engine/vectorstore.py +4 -0
app/engine/vectorstore.py CHANGED
@@ -56,11 +56,15 @@ class VectorStore:
56
 
57
  self.model_path = model_path
58
  try:
 
 
59
  self.api_key = os.environ.get('FINRAG_WEAVIATE_API_KEY')
60
  self.url = os.environ.get('FINRAG_WEAVIATE_ENDPOINT')
 
61
  self.client = WeaviateWCS(endpoint=self.url,
62
  api_key=self.api_key,
63
  model_name_or_path=self.model_path)
 
64
  except Exception as e:
65
  # raise Exception(f"Could not create Weaviate client: {e}")
66
  pass
 
56
 
57
  self.model_path = model_path
58
  try:
59
+ print("We were here")
60
+ print("key", os.environ.get('FINRAG_WEAVIATE_API_KEY'))
61
  self.api_key = os.environ.get('FINRAG_WEAVIATE_API_KEY')
62
  self.url = os.environ.get('FINRAG_WEAVIATE_ENDPOINT')
63
+ print('Before client creation')
64
  self.client = WeaviateWCS(endpoint=self.url,
65
  api_key=self.api_key,
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