david-oplatka commited on
Commit
636ba9a
1 Parent(s): b3159ec

Update query.py

Browse files
Files changed (1) hide show
  1. query.py +3 -1
query.py CHANGED
@@ -124,6 +124,8 @@ class VectaraQuery():
124
  if key == 'data':
125
  line = json.loads(value)
126
  if line['type'] == 'generation_chunk':
127
- chunks.append(line['generation_chunk'])
 
 
128
 
129
  return ''.join(chunks)
 
124
  if key == 'data':
125
  line = json.loads(value)
126
  if line['type'] == 'generation_chunk':
127
+ chunk = line['generation_chunk']
128
+ chunks.append(chunk)
129
+ yield chunk
130
 
131
  return ''.join(chunks)