trustgraph-flow 1.0.7__tar.gz → 1.0.8__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.
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/PKG-INFO +2 -2
- trustgraph-flow-1.0.8/trustgraph/flow_version.py +1 -0
- trustgraph-flow-1.0.8/trustgraph/gateway/dispatch/core_export.py +97 -0
- trustgraph-flow-1.0.8/trustgraph/gateway/dispatch/core_import.py +94 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/manager.py +22 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/endpoint/manager.py +11 -1
- trustgraph-flow-1.0.8/trustgraph/gateway/endpoint/stream_endpoint.py +72 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/endpoint/variable_endpoint.py +0 -1
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph_flow.egg-info/SOURCES.txt +3 -0
- trustgraph-flow-1.0.7/trustgraph/flow_version.py +0 -1
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/README.md +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/api-gateway +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/chunker-token +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/config-svc +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/document-embeddings +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/document-rag +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/graph-rag +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/kg-manager +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/kg-store +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/librarian +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/metering +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/object-extract-row +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/pdf-ocr-mistral +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/prompt-generic +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/prompt-template +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/run-processing +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-lmstudio +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-mistral +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/text-completion-tgi +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/setup.cfg +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/setup.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/agent/react/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/config/service/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/config/service/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/config/service/config.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/config/service/flow.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/config/service/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/cores/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/cores/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/cores/knowledge.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/cores/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/extract/object/row/extract.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/config/receiver.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/agent.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/config.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/document_load.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/document_rag.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/embeddings.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/entity_contexts_export.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/entity_contexts_import.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/flow.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/knowledge.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/librarian.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/mux.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/prompt.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/requestor.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/sender.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/serialize.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/streamer.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/text_completion.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/text_load.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/triples_export.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/triples_import.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/dispatch/triples_query.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/endpoint/constant_endpoint.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/endpoint/metrics.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/endpoint/socket.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/unused/dbpedia.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/unused/encyclopedia.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/gateway/unused/internet_search.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/librarian/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/generic/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/generic/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/generic/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/template/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/template/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/tgi/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/tgi/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/model/text_completion/tgi/llm.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/document_rag/document_rag.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/graph_rag/graph_rag.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/knowledge/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/knowledge/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/knowledge/store.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/tables/__init__.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/tables/config.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/tables/knowledge.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/tables/library.py +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph_flow.egg-info/requires.txt +0 -0
- {trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph_flow.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.8
|
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
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v1.0.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v1.0.8.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "1.0.8"
|
@@ -0,0 +1,97 @@
|
|
1
|
+
|
2
|
+
import asyncio
|
3
|
+
import json
|
4
|
+
import uuid
|
5
|
+
import msgpack
|
6
|
+
from . knowledge import KnowledgeRequestor
|
7
|
+
|
8
|
+
class CoreExport:
|
9
|
+
|
10
|
+
def __init__(self, pulsar_client):
|
11
|
+
self.pulsar_client = pulsar_client
|
12
|
+
|
13
|
+
async def process(self, data, error, ok, params):
|
14
|
+
|
15
|
+
id = params["id"]
|
16
|
+
user = params["user"]
|
17
|
+
|
18
|
+
response = await ok()
|
19
|
+
|
20
|
+
kr = KnowledgeRequestor(
|
21
|
+
pulsar_client = self.pulsar_client,
|
22
|
+
consumer = "api-gateway-core-export-" + str(uuid.uuid4()),
|
23
|
+
subscriber = "api-gateway-core-export-" + str(uuid.uuid4()),
|
24
|
+
)
|
25
|
+
|
26
|
+
try:
|
27
|
+
|
28
|
+
await kr.start()
|
29
|
+
|
30
|
+
async def responder(resp, fin):
|
31
|
+
|
32
|
+
if "graph-embeddings" in resp:
|
33
|
+
|
34
|
+
data = resp["graph-embeddings"]
|
35
|
+
|
36
|
+
msg = (
|
37
|
+
"ge",
|
38
|
+
{
|
39
|
+
"m": {
|
40
|
+
"i": data["metadata"]["id"],
|
41
|
+
"m": data["metadata"]["metadata"],
|
42
|
+
"u": data["metadata"]["user"],
|
43
|
+
"c": data["metadata"]["collection"],
|
44
|
+
},
|
45
|
+
"e": [
|
46
|
+
{
|
47
|
+
"e": ent["entity"],
|
48
|
+
"v": ent["vectors"],
|
49
|
+
}
|
50
|
+
for ent in data["entities"]
|
51
|
+
]
|
52
|
+
}
|
53
|
+
)
|
54
|
+
|
55
|
+
enc = msgpack.packb(msg)
|
56
|
+
await response.write(enc)
|
57
|
+
|
58
|
+
if "triples" in resp:
|
59
|
+
|
60
|
+
data = resp["triples"]
|
61
|
+
msg = (
|
62
|
+
"t",
|
63
|
+
{
|
64
|
+
"m": {
|
65
|
+
"i": data["metadata"]["id"],
|
66
|
+
"m": data["metadata"]["metadata"],
|
67
|
+
"u": data["metadata"]["user"],
|
68
|
+
"c": data["metadata"]["collection"],
|
69
|
+
},
|
70
|
+
"t": data["triples"],
|
71
|
+
}
|
72
|
+
)
|
73
|
+
|
74
|
+
enc = msgpack.packb(msg)
|
75
|
+
await response.write(enc)
|
76
|
+
|
77
|
+
await kr.process(
|
78
|
+
{
|
79
|
+
"operation": "get-kg-core",
|
80
|
+
"user": user,
|
81
|
+
"id": id,
|
82
|
+
},
|
83
|
+
responder
|
84
|
+
)
|
85
|
+
|
86
|
+
except Exception as e:
|
87
|
+
|
88
|
+
print("Exception:", e)
|
89
|
+
|
90
|
+
finally:
|
91
|
+
|
92
|
+
await kr.stop()
|
93
|
+
|
94
|
+
await response.write_eof()
|
95
|
+
|
96
|
+
return response
|
97
|
+
|
@@ -0,0 +1,94 @@
|
|
1
|
+
|
2
|
+
import asyncio
|
3
|
+
import json
|
4
|
+
import uuid
|
5
|
+
import msgpack
|
6
|
+
from . knowledge import KnowledgeRequestor
|
7
|
+
|
8
|
+
class CoreImport:
|
9
|
+
|
10
|
+
def __init__(self, pulsar_client):
|
11
|
+
self.pulsar_client = pulsar_client
|
12
|
+
|
13
|
+
async def process(self, data, error, ok, params):
|
14
|
+
|
15
|
+
id = params["id"]
|
16
|
+
user = params["user"]
|
17
|
+
|
18
|
+
kr = KnowledgeRequestor(
|
19
|
+
pulsar_client = self.pulsar_client,
|
20
|
+
consumer = "api-gateway-core-import-" + str(uuid.uuid4()),
|
21
|
+
subscriber = "api-gateway-core-import-" + str(uuid.uuid4()),
|
22
|
+
)
|
23
|
+
|
24
|
+
await kr.start()
|
25
|
+
|
26
|
+
try:
|
27
|
+
|
28
|
+
unpacker = msgpack.Unpacker()
|
29
|
+
|
30
|
+
while True:
|
31
|
+
buf = await data.read(128*1024)
|
32
|
+
if not buf: break
|
33
|
+
|
34
|
+
unpacker.feed(buf)
|
35
|
+
|
36
|
+
for unpacked in unpacker:
|
37
|
+
|
38
|
+
if unpacked[0] == "t":
|
39
|
+
msg = unpacked[1]
|
40
|
+
msg = {
|
41
|
+
"operation": "put-kg-core",
|
42
|
+
"user": user,
|
43
|
+
"id": id,
|
44
|
+
"triples": {
|
45
|
+
"metadata": {
|
46
|
+
"id": id,
|
47
|
+
"metadata": msg["m"]["m"],
|
48
|
+
"user": user,
|
49
|
+
"collection": "default", # Not used?
|
50
|
+
},
|
51
|
+
"triples": msg["t"],
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
await kr.process(msg)
|
56
|
+
|
57
|
+
elif unpacked[0] == "ge":
|
58
|
+
msg = unpacked[1]
|
59
|
+
msg = {
|
60
|
+
"operation": "put-kg-core",
|
61
|
+
"user": user,
|
62
|
+
"id": id,
|
63
|
+
"graph-embeddings": {
|
64
|
+
"metadata": {
|
65
|
+
"id": id,
|
66
|
+
"metadata": msg["m"]["m"],
|
67
|
+
"user": user,
|
68
|
+
"collection": "default", # Not used?
|
69
|
+
},
|
70
|
+
"entities": [
|
71
|
+
{
|
72
|
+
"entity": ent["e"],
|
73
|
+
"vectors": ent["v"],
|
74
|
+
}
|
75
|
+
for ent in msg["e"]
|
76
|
+
]
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
await kr.process(msg)
|
81
|
+
|
82
|
+
except Exception as e:
|
83
|
+
print("Exception:", e)
|
84
|
+
await error(str(e))
|
85
|
+
|
86
|
+
finally:
|
87
|
+
|
88
|
+
await kr.stop()
|
89
|
+
|
90
|
+
print("All done.")
|
91
|
+
response = await ok()
|
92
|
+
await response.write_eof()
|
93
|
+
|
94
|
+
return response
|
@@ -1,6 +1,9 @@
|
|
1
1
|
|
2
2
|
import asyncio
|
3
|
+
from aiohttp import web
|
3
4
|
import uuid
|
5
|
+
import json
|
6
|
+
import msgpack
|
4
7
|
|
5
8
|
from . config import ConfigRequestor
|
6
9
|
from . flow import FlowRequestor
|
@@ -30,6 +33,9 @@ from . graph_embeddings_import import GraphEmbeddingsImport
|
|
30
33
|
from . document_embeddings_import import DocumentEmbeddingsImport
|
31
34
|
from . entity_contexts_import import EntityContextsImport
|
32
35
|
|
36
|
+
from . core_export import CoreExport
|
37
|
+
from . core_import import CoreImport
|
38
|
+
|
33
39
|
from . mux import Mux
|
34
40
|
|
35
41
|
request_response_dispatchers = {
|
@@ -98,6 +104,22 @@ class DispatcherManager:
|
|
98
104
|
def dispatch_global_service(self):
|
99
105
|
return DispatcherWrapper(self.process_global_service)
|
100
106
|
|
107
|
+
def dispatch_core_export(self):
|
108
|
+
return DispatcherWrapper(self.process_core_export)
|
109
|
+
|
110
|
+
def dispatch_core_import(self):
|
111
|
+
return DispatcherWrapper(self.process_core_import)
|
112
|
+
|
113
|
+
async def process_core_import(self, data, error, ok, params):
|
114
|
+
|
115
|
+
ci = CoreImport(self.pulsar_client)
|
116
|
+
return await ci.process(data, error, ok, params)
|
117
|
+
|
118
|
+
async def process_core_export(self, data, error, ok, params):
|
119
|
+
|
120
|
+
ce = CoreExport(self.pulsar_client)
|
121
|
+
return await ce.process(data, error, ok, params)
|
122
|
+
|
101
123
|
async def process_global_service(self, data, responder, params):
|
102
124
|
|
103
125
|
kind = params.get("kind")
|
@@ -3,7 +3,7 @@ import asyncio
|
|
3
3
|
|
4
4
|
from aiohttp import web
|
5
5
|
|
6
|
-
from .
|
6
|
+
from . stream_endpoint import StreamEndpoint
|
7
7
|
from . variable_endpoint import VariableEndpoint
|
8
8
|
from . socket import SocketEndpoint
|
9
9
|
from . metrics import MetricsEndpoint
|
@@ -52,6 +52,16 @@ class EndpointManager:
|
|
52
52
|
auth = auth,
|
53
53
|
dispatcher = dispatcher_manager.dispatch_flow_export()
|
54
54
|
),
|
55
|
+
StreamEndpoint(
|
56
|
+
endpoint_path = "/api/v1/import-core/{user}/{id:.*}",
|
57
|
+
auth = auth,
|
58
|
+
dispatcher = dispatcher_manager.dispatch_core_import(),
|
59
|
+
),
|
60
|
+
StreamEndpoint(
|
61
|
+
endpoint_path = "/api/v1/export-core/{user}/{id:.*}",
|
62
|
+
auth = auth,
|
63
|
+
dispatcher = dispatcher_manager.dispatch_core_export(),
|
64
|
+
),
|
55
65
|
]
|
56
66
|
|
57
67
|
def add_routes(self, app):
|
@@ -0,0 +1,72 @@
|
|
1
|
+
|
2
|
+
import asyncio
|
3
|
+
from aiohttp import web
|
4
|
+
import logging
|
5
|
+
|
6
|
+
logger = logging.getLogger("endpoint")
|
7
|
+
logger.setLevel(logging.INFO)
|
8
|
+
|
9
|
+
class StreamEndpoint:
|
10
|
+
|
11
|
+
def __init__(self, endpoint_path, auth, dispatcher):
|
12
|
+
|
13
|
+
self.path = endpoint_path
|
14
|
+
|
15
|
+
self.auth = auth
|
16
|
+
self.operation = "service"
|
17
|
+
|
18
|
+
self.dispatcher = dispatcher
|
19
|
+
|
20
|
+
async def start(self):
|
21
|
+
pass
|
22
|
+
|
23
|
+
def add_routes(self, app):
|
24
|
+
|
25
|
+
app.add_routes([
|
26
|
+
web.post(self.path, self.handle),
|
27
|
+
])
|
28
|
+
|
29
|
+
async def handle(self, request):
|
30
|
+
|
31
|
+
print(request.path, "...")
|
32
|
+
|
33
|
+
try:
|
34
|
+
ht = request.headers["Authorization"]
|
35
|
+
tokens = ht.split(" ", 2)
|
36
|
+
if tokens[0] != "Bearer":
|
37
|
+
return web.HTTPUnauthorized()
|
38
|
+
token = tokens[1]
|
39
|
+
except:
|
40
|
+
token = ""
|
41
|
+
|
42
|
+
if not self.auth.permitted(token, self.operation):
|
43
|
+
return web.HTTPUnauthorized()
|
44
|
+
|
45
|
+
try:
|
46
|
+
|
47
|
+
data = request.content
|
48
|
+
|
49
|
+
async def error(err):
|
50
|
+
return web.HTTPInternalServerError(text = err)
|
51
|
+
|
52
|
+
async def ok(status=200, reason="OK", type="application/octet-stream"):
|
53
|
+
response = web.StreamResponse(
|
54
|
+
status = status, reason = reason,
|
55
|
+
headers = {"Content-Type": type}
|
56
|
+
)
|
57
|
+
await response.prepare(request)
|
58
|
+
return response
|
59
|
+
|
60
|
+
resp = await self.dispatcher.process(
|
61
|
+
data, error, ok, request.match_info
|
62
|
+
)
|
63
|
+
|
64
|
+
return resp
|
65
|
+
|
66
|
+
except Exception as e:
|
67
|
+
logging.error(f"Exception: {e}")
|
68
|
+
|
69
|
+
return web.json_response(
|
70
|
+
{ "error": str(e) }
|
71
|
+
)
|
72
|
+
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.8
|
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
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v1.0.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v1.0.8.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -135,6 +135,8 @@ trustgraph/gateway/service.py
|
|
135
135
|
trustgraph/gateway/config/receiver.py
|
136
136
|
trustgraph/gateway/dispatch/agent.py
|
137
137
|
trustgraph/gateway/dispatch/config.py
|
138
|
+
trustgraph/gateway/dispatch/core_export.py
|
139
|
+
trustgraph/gateway/dispatch/core_import.py
|
138
140
|
trustgraph/gateway/dispatch/document_embeddings_export.py
|
139
141
|
trustgraph/gateway/dispatch/document_embeddings_import.py
|
140
142
|
trustgraph/gateway/dispatch/document_load.py
|
@@ -165,6 +167,7 @@ trustgraph/gateway/endpoint/constant_endpoint.py
|
|
165
167
|
trustgraph/gateway/endpoint/manager.py
|
166
168
|
trustgraph/gateway/endpoint/metrics.py
|
167
169
|
trustgraph/gateway/endpoint/socket.py
|
170
|
+
trustgraph/gateway/endpoint/stream_endpoint.py
|
168
171
|
trustgraph/gateway/endpoint/variable_endpoint.py
|
169
172
|
trustgraph/gateway/unused/dbpedia.py
|
170
173
|
trustgraph/gateway/unused/encyclopedia.py
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "1.0.7"
|
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
|
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-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/decoding/mistral_ocr/processor.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-flow-1.0.7 → trustgraph-flow-1.0.8}/trustgraph/direct/milvus_graph_embeddings.py
RENAMED
File without changes
|