Spaces:
Runtime error
Runtime error
Update query.py
Browse files
query.py
CHANGED
@@ -94,17 +94,14 @@ class VectaraQuery():
|
|
94 |
try:
|
95 |
# Step 1a: Check for 'responseSet'
|
96 |
if res is not None and 'responseSet' in res:
|
97 |
-
response_set = res['responseSet']
|
98 |
print("BIG 1")
|
99 |
|
100 |
# Step 1b: Check for 'summary' within the first item
|
101 |
if len(response_set) > 0 and 'summary' in response_set[0]:
|
102 |
-
summary = response_set[0]['summary']
|
103 |
print("BIG 2")
|
104 |
|
105 |
# Step 1c: Check for 'chat' within the first summary
|
106 |
if len(summary) > 0 and 'chat' in summary[0]:
|
107 |
-
chat = summary[0]['chat']
|
108 |
print("BIG 3")
|
109 |
|
110 |
#Removed: Step 1d: Finally, access 'conversationId'
|
|
|
94 |
try:
|
95 |
# Step 1a: Check for 'responseSet'
|
96 |
if res is not None and 'responseSet' in res:
|
|
|
97 |
print("BIG 1")
|
98 |
|
99 |
# Step 1b: Check for 'summary' within the first item
|
100 |
if len(response_set) > 0 and 'summary' in response_set[0]:
|
|
|
101 |
print("BIG 2")
|
102 |
|
103 |
# Step 1c: Check for 'chat' within the first summary
|
104 |
if len(summary) > 0 and 'chat' in summary[0]:
|
|
|
105 |
print("BIG 3")
|
106 |
|
107 |
#Removed: Step 1d: Finally, access 'conversationId'
|