Solshine commited on
Commit
c10340e
1 Parent(s): 85d2afe

Update query.py

Browse files
Files changed (1) hide show
  1. query.py +3 -3
query.py CHANGED
@@ -13,7 +13,7 @@ class VectaraQuery():
13
  self.customer_id = customer_id
14
  self.corpus_ids = corpus_ids
15
  self.api_key = api_key
16
- # self.conv_id = ""
17
 
18
  def submit_query(self, query_str: str):
19
  corpora_key_list = [{
@@ -58,7 +58,7 @@ class VectaraQuery():
58
  'summarizerPromptName': 'vectara-experimental-summary-ext-2023-12-11-sml',
59
  'chat': {
60
  'store': True,
61
- 'conversationId': 'conversationId'
62
  },
63
  'debug': True,
64
  }
@@ -89,7 +89,7 @@ class VectaraQuery():
89
  # return 'Sorry, chat turns exceeds plan limit.'
90
  # return 'Sorry, something went wrong in my brain. Please try again later.'
91
 
92
- self.conv_id = res['responseSet'][0]['summary'][0]['chat'] # ['conversationId']
93
  print("BIG CHANGE")
94
 
95
 
 
13
  self.customer_id = customer_id
14
  self.corpus_ids = corpus_ids
15
  self.api_key = api_key
16
+ self.conv_id = "1dc2c542-925f-4b48-aab5-e3df6f2a3a64"
17
 
18
  def submit_query(self, query_str: str):
19
  corpora_key_list = [{
 
58
  'summarizerPromptName': 'vectara-experimental-summary-ext-2023-12-11-sml',
59
  'chat': {
60
  'store': True,
61
+ 'conversationId': self.conv_id
62
  },
63
  'debug': True,
64
  }
 
89
  # return 'Sorry, chat turns exceeds plan limit.'
90
  # return 'Sorry, something went wrong in my brain. Please try again later.'
91
 
92
+ self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
93
  print("BIG CHANGE")
94
 
95