tykiww commited on
Commit
f282311
·
verified ·
1 Parent(s): de7aae1

Update services/qa_service/qna.py

Browse files
Files changed (1) hide show
  1. services/qa_service/qna.py +2 -2
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 = pinecone['connection']
15
  self.pc_index = self.pc.Index(self.conf['embeddings']['index_name'])
16
- self.embedder = pinecone['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