Spaces:
Sleeping
Sleeping
Update services/qa_service/qna.py
Browse files
services/qa_service/qna.py
CHANGED
@@ -11,9 +11,9 @@ class QAService:
|
|
11 |
if session_key != "":
|
12 |
self.pinecones = pinecone.run(namespace=session_key) # need some security to determine whether it was one of the keys generated.
|
13 |
|
14 |
-
self.pc =
|
15 |
self.pc_index = self.pc.Index(self.conf['embeddings']['index_name'])
|
16 |
-
self.embedder =
|
17 |
self.model_pipeline = model_pipeline
|
18 |
self.question = question
|
19 |
self.goals = goals
|
|
|
11 |
if session_key != "":
|
12 |
self.pinecones = pinecone.run(namespace=session_key) # need some security to determine whether it was one of the keys generated.
|
13 |
|
14 |
+
self.pc = self.pinecones['connection']
|
15 |
self.pc_index = self.pc.Index(self.conf['embeddings']['index_name'])
|
16 |
+
self.embedder = self.pinecones['embedder']
|
17 |
self.model_pipeline = model_pipeline
|
18 |
self.question = question
|
19 |
self.goals = goals
|