Spaces:
Runtime error
Runtime error
Update query.py
Browse files
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 |
-
|
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':
|
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']
|
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 |
|