trustgraph-cli 1.3.11__tar.gz → 1.3.12__tar.gz
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 trustgraph-cli might be problematic. Click here for more details.
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/PKG-INFO +1 -1
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/load_structured_data.py +32 -5
- trustgraph_cli-1.3.12/trustgraph/cli_version.py +1 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph_cli.egg-info/PKG-INFO +1 -1
- trustgraph_cli-1.3.11/trustgraph/cli_version.py +0 -1
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/README.md +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/pyproject.toml +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/setup.cfg +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/__init__.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/add_library_document.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/delete_config_item.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/delete_flow_class.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/delete_kg_core.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/delete_mcp_tool.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/delete_tool.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/dump_msgpack.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/get_config_item.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/get_flow_class.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/get_kg_core.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/graph_to_turtle.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/init_pulsar_manager.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/init_trustgraph.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_agent.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_document_rag.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_graph_rag.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_llm.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_mcp_tool.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_nlp_query.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_objects_query.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_prompt.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/invoke_structured_query.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/list_config_items.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/load_doc_embeds.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/load_kg_core.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/load_knowledge.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/load_pdf.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/load_sample_documents.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/load_text.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/load_turtle.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/put_config_item.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/put_flow_class.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/put_kg_core.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/remove_library_document.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/save_doc_embeds.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/set_mcp_tool.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/set_prompt.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/set_token_costs.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/set_tool.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_config.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_flow_classes.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_flow_state.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_flows.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_graph.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_kg_cores.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_library_documents.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_library_processing.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_mcp_tools.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_processor_state.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_prompts.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_token_costs.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_token_rate.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/show_tools.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/start_flow.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/start_library_processing.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/stop_flow.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/stop_library_processing.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph/cli/unload_kg_core.py +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph_cli.egg-info/SOURCES.txt +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph_cli.egg-info/dependency_links.txt +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph_cli.egg-info/entry_points.txt +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph_cli.egg-info/requires.txt +0 -0
- {trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.12
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -804,7 +804,18 @@ def load_structured_data(
|
|
|
804
804
|
print(f"Target schema: {schema_name}")
|
|
805
805
|
print(f"Sample record:")
|
|
806
806
|
if processed_records:
|
|
807
|
-
|
|
807
|
+
# Show what the batched format will look like
|
|
808
|
+
sample_batch = processed_records[:min(3, len(processed_records))]
|
|
809
|
+
batch_values = [record["values"] for record in sample_batch]
|
|
810
|
+
first_record = processed_records[0]
|
|
811
|
+
batched_sample = {
|
|
812
|
+
"metadata": first_record["metadata"],
|
|
813
|
+
"schema_name": first_record["schema_name"],
|
|
814
|
+
"values": batch_values,
|
|
815
|
+
"confidence": first_record["confidence"],
|
|
816
|
+
"source_span": first_record["source_span"]
|
|
817
|
+
}
|
|
818
|
+
print(json.dumps(batched_sample, indent=2))
|
|
808
819
|
return
|
|
809
820
|
|
|
810
821
|
# Import to TrustGraph using objects import endpoint via WebSocket
|
|
@@ -828,10 +839,26 @@ def load_structured_data(
|
|
|
828
839
|
async with connect(objects_url) as ws:
|
|
829
840
|
imported_count = 0
|
|
830
841
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
842
|
+
# Process records in batches
|
|
843
|
+
for i in range(0, len(processed_records), batch_size):
|
|
844
|
+
batch_records = processed_records[i:i + batch_size]
|
|
845
|
+
|
|
846
|
+
# Extract values from each record in the batch
|
|
847
|
+
batch_values = [record["values"] for record in batch_records]
|
|
848
|
+
|
|
849
|
+
# Create batched ExtractedObject message using first record as template
|
|
850
|
+
first_record = batch_records[0]
|
|
851
|
+
batched_record = {
|
|
852
|
+
"metadata": first_record["metadata"],
|
|
853
|
+
"schema_name": first_record["schema_name"],
|
|
854
|
+
"values": batch_values, # Array of value dictionaries
|
|
855
|
+
"confidence": first_record["confidence"],
|
|
856
|
+
"source_span": first_record["source_span"]
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
# Send batched ExtractedObject
|
|
860
|
+
await ws.send(json.dumps(batched_record))
|
|
861
|
+
imported_count += len(batch_records)
|
|
835
862
|
|
|
836
863
|
if imported_count % 100 == 0:
|
|
837
864
|
logger.info(f"Imported {imported_count}/{len(processed_records)} records...")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.3.12"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.12
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.3.11"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-1.3.11 → trustgraph_cli-1.3.12}/trustgraph_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|