no secrets
Browse files- app/engine/vectorstore.py +5 -5
- 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=
|
65 |
-
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"
|