sunholo 0.129.2__py3-none-any.whl → 0.130.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sunholo/agents/flask/vac_routes.py +2 -7
- sunholo/database/alloydb_client.py +3 -1
- {sunholo-0.129.2.dist-info → sunholo-0.130.2.dist-info}/METADATA +1 -1
- {sunholo-0.129.2.dist-info → sunholo-0.130.2.dist-info}/RECORD +8 -8
- {sunholo-0.129.2.dist-info → sunholo-0.130.2.dist-info}/WHEEL +0 -0
- {sunholo-0.129.2.dist-info → sunholo-0.130.2.dist-info}/entry_points.txt +0 -0
- {sunholo-0.129.2.dist-info → sunholo-0.130.2.dist-info}/licenses/LICENSE.txt +0 -0
- {sunholo-0.129.2.dist-info → sunholo-0.130.2.dist-info}/top_level.txt +0 -0
@@ -238,12 +238,10 @@ if __name__ == "__main__":
|
|
238
238
|
|
239
239
|
log.info(f'Streaming data with: {all_input}')
|
240
240
|
if span:
|
241
|
-
|
241
|
+
span.update(
|
242
242
|
name="start_streaming_chat",
|
243
243
|
metadata=vac_config.configs_by_kind,
|
244
|
-
input=all_input
|
245
|
-
completion_start_time=str(int(datetime.datetime.now().timestamp())),
|
246
|
-
model=vac_config.vacConfig("model") or vac_config.vacConfig("llm")
|
244
|
+
input=all_input
|
247
245
|
)
|
248
246
|
|
249
247
|
def generate_response_content():
|
@@ -272,7 +270,6 @@ if __name__ == "__main__":
|
|
272
270
|
if trace:
|
273
271
|
chunk["trace_id"] = trace.id
|
274
272
|
chunk["trace_url"] = trace.get_trace_url()
|
275
|
-
generation.end(output=json.dumps(chunk))
|
276
273
|
span.end(output=json.dumps(chunk))
|
277
274
|
trace.update(output=json.dumps(chunk))
|
278
275
|
archive_qa(chunk, vector_name)
|
@@ -314,7 +311,6 @@ if __name__ == "__main__":
|
|
314
311
|
chunk["trace_url"] = trace.get_trace_url()
|
315
312
|
archive_qa(chunk, vector_name)
|
316
313
|
if trace:
|
317
|
-
generation.end(output=json.dumps(chunk))
|
318
314
|
span.end(output=json.dumps(chunk))
|
319
315
|
trace.update(output=json.dumps(chunk))
|
320
316
|
yield json.dumps(chunk)
|
@@ -330,7 +326,6 @@ if __name__ == "__main__":
|
|
330
326
|
|
331
327
|
log.debug(f"streaming response: {response}")
|
332
328
|
if trace:
|
333
|
-
generation.end(output=response)
|
334
329
|
span.end(output=response)
|
335
330
|
trace.update(output=response)
|
336
331
|
self.langfuse_eval_response(trace_id=trace.id, eval_percent=all_input.get('eval_percent'))
|
@@ -1167,7 +1167,8 @@ class AlloyDBClient:
|
|
1167
1167
|
'total_rows': len(rows),
|
1168
1168
|
'inserted_rows': 0,
|
1169
1169
|
'failed_rows': 0,
|
1170
|
-
'errors': []
|
1170
|
+
'errors': [],
|
1171
|
+
'return_ids': []
|
1171
1172
|
}
|
1172
1173
|
|
1173
1174
|
for i, row in enumerate(rows):
|
@@ -1197,6 +1198,7 @@ class AlloyDBClient:
|
|
1197
1198
|
|
1198
1199
|
# Insert the row
|
1199
1200
|
result = await self._insert_single_row(table_name, filtered_row, primary_key_column=primary_key_column)
|
1201
|
+
results['return_ids'].append(result)
|
1200
1202
|
results['inserted_rows'] += 1
|
1201
1203
|
|
1202
1204
|
except Exception as e:
|
@@ -15,7 +15,7 @@ sunholo/agents/fastapi/qna_routes.py,sha256=lKHkXPmwltu9EH3RMwmD153-J6pE7kWQ4BhB
|
|
15
15
|
sunholo/agents/flask/__init__.py,sha256=poJDKMr2qj8qMb99JqCvCPSiEt1tj2tLQ3hKW3f2aVw,107
|
16
16
|
sunholo/agents/flask/base.py,sha256=HLz3Z5efWaewTwSFEM6JH48NA9otoJBoVFJlARGk9L8,788
|
17
17
|
sunholo/agents/flask/qna_routes.py,sha256=uwUD1yrzOPH27m2AXpiQrPk_2VfJOQOM6dAynOWQtoQ,22532
|
18
|
-
sunholo/agents/flask/vac_routes.py,sha256=
|
18
|
+
sunholo/agents/flask/vac_routes.py,sha256=9bytTeoOJQOYxsPGLIXLItDmnbB9zDXmYM0lBIwDe8w,28335
|
19
19
|
sunholo/archive/__init__.py,sha256=qNHWm5rGPVOlxZBZCpA1wTYPbalizRT7f8X4rs2t290,31
|
20
20
|
sunholo/archive/archive.py,sha256=PxVfDtO2_2ZEEbnhXSCbXLdeoHoQVImo4y3Jr2XkCFY,1204
|
21
21
|
sunholo/auth/__init__.py,sha256=TeP-OY0XGxYV_8AQcVGoh35bvyWhNUcMRfhuD5l44Sk,91
|
@@ -60,7 +60,7 @@ sunholo/components/retriever.py,sha256=Wmchv3huAM4w7DIS-a5Lp9Hi7M8pE6vZdxgseiT9S
|
|
60
60
|
sunholo/components/vectorstore.py,sha256=k7GS1Y5c6ZGXSDAJvyCes6dTjhDAi0fjGbVLqpyfzBc,5918
|
61
61
|
sunholo/database/__init__.py,sha256=bpB5Nk21kwqYj-qdVnvNgXjLsbflnH4g-San7OHMqR4,283
|
62
62
|
sunholo/database/alloydb.py,sha256=x1zUMB-EVWbE2Zvp4nAs2Z-tB_kOZmS45H2lwVHdYnk,11678
|
63
|
-
sunholo/database/alloydb_client.py,sha256=
|
63
|
+
sunholo/database/alloydb_client.py,sha256=WthupnQM-pI03YFjrZnIzt5Pe_wiv0a0SAPZ4STK1nE,53231
|
64
64
|
sunholo/database/database.py,sha256=VqhZdkXUNdvWn8sUcUV3YNby1JDVf7IykPVXWBtxo9U,7361
|
65
65
|
sunholo/database/lancedb.py,sha256=DyfZntiFKBlVPaFooNN1Z6Pl-LAs4nxWKKuq8GBqN58,715
|
66
66
|
sunholo/database/static_dbs.py,sha256=8cvcMwUK6c32AS2e_WguKXWMkFf5iN3g9WHzsh0C07Q,442
|
@@ -168,9 +168,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
168
168
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
169
169
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
170
170
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
171
|
-
sunholo-0.
|
172
|
-
sunholo-0.
|
173
|
-
sunholo-0.
|
174
|
-
sunholo-0.
|
175
|
-
sunholo-0.
|
176
|
-
sunholo-0.
|
171
|
+
sunholo-0.130.2.dist-info/licenses/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
172
|
+
sunholo-0.130.2.dist-info/METADATA,sha256=Jzlwyc-jOKQkE8eUDs0iyFCd0vj6n2axdv8Usa5rxus,10084
|
173
|
+
sunholo-0.130.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
174
|
+
sunholo-0.130.2.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
175
|
+
sunholo-0.130.2.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
176
|
+
sunholo-0.130.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|