nv-ingest-client 2025.8.10.dev20250810__py3-none-any.whl → 2025.8.11.dev20250811__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.
Potentially problematic release.
This version of nv-ingest-client might be problematic. Click here for more details.
- nv_ingest_client/util/transport.py +2 -2
- nv_ingest_client/util/vdb/milvus.py +23 -17
- {nv_ingest_client-2025.8.10.dev20250810.dist-info → nv_ingest_client-2025.8.11.dev20250811.dist-info}/METADATA +1 -1
- {nv_ingest_client-2025.8.10.dev20250810.dist-info → nv_ingest_client-2025.8.11.dev20250811.dist-info}/RECORD +8 -8
- {nv_ingest_client-2025.8.10.dev20250810.dist-info → nv_ingest_client-2025.8.11.dev20250811.dist-info}/WHEEL +0 -0
- {nv_ingest_client-2025.8.10.dev20250810.dist-info → nv_ingest_client-2025.8.11.dev20250811.dist-info}/entry_points.txt +0 -0
- {nv_ingest_client-2025.8.10.dev20250810.dist-info → nv_ingest_client-2025.8.11.dev20250811.dist-info}/licenses/LICENSE +0 -0
- {nv_ingest_client-2025.8.10.dev20250810.dist-info → nv_ingest_client-2025.8.11.dev20250811.dist-info}/top_level.txt +0 -0
|
@@ -26,7 +26,7 @@ def infer_microservice(
|
|
|
26
26
|
client = NimClient(
|
|
27
27
|
model_interface=EmbeddingModelInterface(),
|
|
28
28
|
protocol="grpc",
|
|
29
|
-
endpoints=(embedding_endpoint,
|
|
29
|
+
endpoints=(embedding_endpoint, None),
|
|
30
30
|
auth_token=nvidia_api_key,
|
|
31
31
|
)
|
|
32
32
|
return client.infer(
|
|
@@ -43,7 +43,7 @@ def infer_microservice(
|
|
|
43
43
|
client = NimClient(
|
|
44
44
|
model_interface=EmbeddingModelInterface(),
|
|
45
45
|
protocol="http",
|
|
46
|
-
endpoints=(
|
|
46
|
+
endpoints=(None, embedding_endpoint),
|
|
47
47
|
auth_token=nvidia_api_key,
|
|
48
48
|
)
|
|
49
49
|
return client.infer(data, model_name, input_type=input_type, truncate=truncate, batch_size=batch_size)
|
|
@@ -757,25 +757,31 @@ def bulk_insert_milvus(
|
|
|
757
757
|
|
|
758
758
|
connections.connect(uri=milvus_uri)
|
|
759
759
|
t_bulk_start = time.time()
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
760
|
+
task_ids = []
|
|
761
|
+
for files in writer.batch_files:
|
|
762
|
+
task_id = utility.do_bulk_insert(
|
|
763
|
+
collection_name=collection_name,
|
|
764
|
+
files=files,
|
|
765
|
+
consistency_level=CONSISTENCY,
|
|
766
|
+
)
|
|
767
|
+
task_ids.append(task_id)
|
|
766
768
|
# list_bulk_insert_tasks = utility.list_bulk_insert_tasks(collection_name=collection_name)
|
|
767
|
-
|
|
768
|
-
while state != "Completed":
|
|
769
|
-
task = utility.get_bulk_insert_state(task_id=task_id)
|
|
770
|
-
state = task.state_name
|
|
771
|
-
if state == "Completed":
|
|
772
|
-
t_bulk_end = time.time()
|
|
773
|
-
logger.info("Start time:", task.create_time_str)
|
|
774
|
-
logger.info("Imported row count:", task.row_count)
|
|
775
|
-
logger.info(f"Bulk {collection_name} upload took {t_bulk_end - t_bulk_start} s")
|
|
776
|
-
if task.state == BulkInsertState.ImportFailed:
|
|
777
|
-
logger.error("Failed reason:", task.failed_reason)
|
|
769
|
+
while len(task_ids) > 0:
|
|
778
770
|
time.sleep(1)
|
|
771
|
+
for task_id in task_ids:
|
|
772
|
+
task = utility.get_bulk_insert_state(task_id=task_id)
|
|
773
|
+
state = task.state_name
|
|
774
|
+
if state == "Completed":
|
|
775
|
+
logger.info(f"Task: {task_id}")
|
|
776
|
+
logger.info(f"Start time: {task.create_time_str}")
|
|
777
|
+
logger.info(f"Imported row count: {task.row_count}")
|
|
778
|
+
task_ids.remove(task_id)
|
|
779
|
+
if task.state == BulkInsertState.ImportFailed:
|
|
780
|
+
logger.error(f"Task: {task_id}")
|
|
781
|
+
logger.error(f"Failed reason: {task.failed_reason}")
|
|
782
|
+
task_ids.remove(task_id)
|
|
783
|
+
t_bulk_end = time.time()
|
|
784
|
+
logger.info(f"Bulk {collection_name} upload took {t_bulk_end - t_bulk_start} s")
|
|
779
785
|
|
|
780
786
|
|
|
781
787
|
def create_bm25_model(
|
|
@@ -37,18 +37,18 @@ nv_ingest_client/util/milvus.py,sha256=MwBix_UBg54i7xONBIwjcqeKSBkqunxBJBK2f0bPM
|
|
|
37
37
|
nv_ingest_client/util/process_json_files.py,sha256=YKR-fGT4kM8zO2p8r5tpo5-vvFywkcLuNieozvPWvo0,3785
|
|
38
38
|
nv_ingest_client/util/processing.py,sha256=bAy8it-OUgGFO3pcy6D3ezpyZ6p2DfmoQUGhx3QmVf8,8989
|
|
39
39
|
nv_ingest_client/util/system.py,sha256=DVIRLlEWkpqftqxazCuPNdaFSjQiHGMYcHzBufJSRUM,2216
|
|
40
|
-
nv_ingest_client/util/transport.py,sha256=
|
|
40
|
+
nv_ingest_client/util/transport.py,sha256=G1wrwaJLXf8S2yTuq6ZwG1NNMf4cHfp1igLxGQ87apc,1646
|
|
41
41
|
nv_ingest_client/util/util.py,sha256=6KQkE5vXmBUoxETpjLdtPYm1pNCYCnqwC-Df56ETGQ4,14748
|
|
42
42
|
nv_ingest_client/util/zipkin.py,sha256=p2tMtTVAqrZGxmAxWKE42wkx7U5KywiX5munI7rJt_k,4473
|
|
43
43
|
nv_ingest_client/util/file_processing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
44
|
nv_ingest_client/util/file_processing/extract.py,sha256=uXEATBYZXjxdymGTNQvvzDD2eHgpuq4PdU6HsMl0Lp0,4662
|
|
45
45
|
nv_ingest_client/util/vdb/__init__.py,sha256=ZmoEzeM9LzwwrVvu_DVUnjRNx-x8ahkNeIrSfSKzbAk,513
|
|
46
46
|
nv_ingest_client/util/vdb/adt_vdb.py,sha256=UubzAMSfyrqqpD-OQErpBs25hC2Mw8zGZ4waenGXPOk,515
|
|
47
|
-
nv_ingest_client/util/vdb/milvus.py,sha256=
|
|
47
|
+
nv_ingest_client/util/vdb/milvus.py,sha256=0WrJg0L8kFrbCJnAlDoRs8qrFX2GLnOrAkxhVB-GJcQ,73727
|
|
48
48
|
nv_ingest_client/util/vdb/opensearch.py,sha256=I4FzF95VWCOkyzhfm-szdfK1Zd9ugUc8AxxpAdEMWGE,7538
|
|
49
|
-
nv_ingest_client-2025.8.
|
|
50
|
-
nv_ingest_client-2025.8.
|
|
51
|
-
nv_ingest_client-2025.8.
|
|
52
|
-
nv_ingest_client-2025.8.
|
|
53
|
-
nv_ingest_client-2025.8.
|
|
54
|
-
nv_ingest_client-2025.8.
|
|
49
|
+
nv_ingest_client-2025.8.11.dev20250811.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
50
|
+
nv_ingest_client-2025.8.11.dev20250811.dist-info/METADATA,sha256=taoo_JPimeMWMcK-cFUe8pymGiML4Ob_TVqY70sHOWE,30737
|
|
51
|
+
nv_ingest_client-2025.8.11.dev20250811.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
52
|
+
nv_ingest_client-2025.8.11.dev20250811.dist-info/entry_points.txt,sha256=3uQVZkTZIjO08_bjTV-g0CDF5H1nrP1zWXU9gJOweuI,137
|
|
53
|
+
nv_ingest_client-2025.8.11.dev20250811.dist-info/top_level.txt,sha256=1eMhBFD3SiWmpXnod2LM66C1HrSLSk96ninZi5XX-cE,17
|
|
54
|
+
nv_ingest_client-2025.8.11.dev20250811.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|