Spaces:
Sleeping
Sleeping
Update connections/pinecone.py
Browse files- connections/pinecone.py +3 -3
connections/pinecone.py
CHANGED
@@ -18,15 +18,15 @@ class PineconeConnector:
|
|
18 |
self.pc = self.connect()
|
19 |
print("Retrieving Embedder")
|
20 |
self.embedder = HuggingFaceEmbedding(model_name=embedding)
|
21 |
-
|
22 |
-
def _connection(self):
|
23 |
-
return self.pc
|
24 |
|
25 |
def connect(self):
|
26 |
"""Connects to vectorstore"""
|
27 |
# connect
|
28 |
pc = PineconeGRPC(api_key=self.pinecone_api_key)
|
29 |
return pc
|
|
|
|
|
|
|
30 |
|
31 |
def create_pipeline(self, namespace): # , namespace
|
32 |
"""Create a pipeline given an index name"""
|
|
|
18 |
self.pc = self.connect()
|
19 |
print("Retrieving Embedder")
|
20 |
self.embedder = HuggingFaceEmbedding(model_name=embedding)
|
|
|
|
|
|
|
21 |
|
22 |
def connect(self):
|
23 |
"""Connects to vectorstore"""
|
24 |
# connect
|
25 |
pc = PineconeGRPC(api_key=self.pinecone_api_key)
|
26 |
return pc
|
27 |
+
|
28 |
+
def _connection(self):
|
29 |
+
return self.pc
|
30 |
|
31 |
def create_pipeline(self, namespace): # , namespace
|
32 |
"""Create a pipeline given an index name"""
|