Spaces:
Running
Running
Update query.py
Browse files
query.py
CHANGED
@@ -68,7 +68,7 @@ class VectaraQuery():
|
|
68 |
summary = res['responseSet'][0]['summary'][0]['text']
|
69 |
responses = res['responseSet'][0]['response']
|
70 |
docs = res['responseSet'][0]['document']
|
71 |
-
self.conv_id = summary[0]['chat']['conversationId']
|
72 |
pattern = r'\[\d{1,2}\]'
|
73 |
matches = [match.span() for match in re.finditer(pattern, summary)]
|
74 |
|
|
|
68 |
summary = res['responseSet'][0]['summary'][0]['text']
|
69 |
responses = res['responseSet'][0]['response']
|
70 |
docs = res['responseSet'][0]['document']
|
71 |
+
self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
|
72 |
pattern = r'\[\d{1,2}\]'
|
73 |
matches = [match.span() for match in re.finditer(pattern, summary)]
|
74 |
|