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

no secrets

Browse files
Files changed (2) hide show
  1. app/engine/vectorstore.py +5 -5
  2. app/settings.py +1 -0
app/engine/vectorstore.py CHANGED
@@ -6,7 +6,7 @@ from weaviate.classes.config import Property, DataType
6
  from .weaviate_interface_v4 import WeaviateWCS, WeaviateIndexer
7
  from .logger import logger
8
 
9
- from settings import parquet_file
10
 
11
  class VectorStore:
12
  def __init__(self, model_path:str = 'sentence-transformers/all-mpnet-base-v2'):
@@ -58,11 +58,11 @@ class VectorStore:
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:
 
6
  from .weaviate_interface_v4 import WeaviateWCS, WeaviateIndexer
7
  from .logger import logger
8
 
9
+ from settings import parquet_file, s1
10
 
11
  class VectorStore:
12
  def __init__(self, model_path:str = 'sentence-transformers/all-mpnet-base-v2'):
 
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=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:
app/settings.py CHANGED
@@ -2,3 +2,4 @@ import os
2
 
3
  datadir = '../data' # will be used in main.py
4
  parquet_file = os.path.join(datadir, 'text_vectors.parquet') # used by the files in 'engine'
 
 
2
 
3
  datadir = '../data' # will be used in main.py
4
  parquet_file = os.path.join(datadir, 'text_vectors.parquet') # used by the files in 'engine'
5
+ s1 = "ypgRtW7Ri0MoAmKWzjanItFXT9K1S34t6"