trustgraph-flow 0.23.16__tar.gz → 0.23.18__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-0.23.16 → trustgraph-flow-0.23.18}/PKG-INFO +2 -2
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/config/service/config.py +15 -15
- trustgraph-flow-0.23.18/trustgraph/cores/knowledge.py +285 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/cores/service.py +3 -0
- trustgraph-flow-0.23.18/trustgraph/flow_version.py +1 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/knowledge.py +2 -6
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/tables/config.py +7 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/tables/knowledge.py +8 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/tables/library.py +9 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- trustgraph-flow-0.23.16/trustgraph/cores/knowledge.py +0 -124
- trustgraph-flow-0.23.16/trustgraph/flow_version.py +0 -1
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/README.md +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/api-gateway +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/chunker-token +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/config-svc +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/document-embeddings +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/document-rag +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/graph-rag +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/kg-manager +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/kg-store +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/librarian +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/metering +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/object-extract-row +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/pdf-ocr-mistral +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/prompt-generic +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/prompt-template +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/run-processing +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-lmstudio +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-mistral +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/setup.cfg +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/setup.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/agent/react/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/config/service/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/config/service/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/config/service/flow.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/config/service/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/cores/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/cores/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/extract/object/row/extract.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/config/receiver.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/agent.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/config.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/document_load.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/document_rag.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/embeddings.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/flow.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/librarian.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/manager.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/mux.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/prompt.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/requestor.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/sender.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/serialize.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/streamer.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/text_completion.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/text_load.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/triples_export.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/triples_import.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/triples_query.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/endpoint/constant_endpoint.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/endpoint/manager.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/endpoint/metrics.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/endpoint/socket.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/endpoint/variable_endpoint.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/unused/dbpedia.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/unused/encyclopedia.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/unused/internet_search.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/librarian/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/generic/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/generic/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/generic/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/template/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/template/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/document_rag/document_rag.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/graph_rag/graph_rag.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/knowledge/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/knowledge/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/knowledge/store.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/tables/__init__.py +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph_flow.egg-info/requires.txt +0 -0
- {trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/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: 0.23.
|
3
|
+
Version: 0.23.18
|
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/v0.23.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.23.18.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -120,31 +120,31 @@ class Configuration:
|
|
120
120
|
|
121
121
|
async def handle_getvalues(self, v):
|
122
122
|
|
123
|
-
if v.type not in self:
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
123
|
+
# if v.type not in self:
|
124
|
+
|
125
|
+
# return ConfigResponse(
|
126
|
+
# version = None,
|
127
|
+
# values = None,
|
128
|
+
# directory = None,
|
129
|
+
# config = None,
|
130
|
+
# error = Error(
|
131
|
+
# type = "key-error",
|
132
|
+
# message = f"Key error"
|
133
|
+
# )
|
134
|
+
# )
|
135
135
|
|
136
|
-
|
136
|
+
vals = await self.table_store.get_values(v.type)
|
137
137
|
|
138
138
|
values = map(
|
139
139
|
lambda x: ConfigValue(
|
140
140
|
type = v.type, key = x[0], value = x[1]
|
141
141
|
),
|
142
|
-
|
142
|
+
vals
|
143
143
|
)
|
144
144
|
|
145
145
|
return ConfigResponse(
|
146
146
|
version = await self.get_version(),
|
147
|
-
values = values,
|
147
|
+
values = list(values),
|
148
148
|
directory = None,
|
149
149
|
config = None,
|
150
150
|
error = None,
|
@@ -0,0 +1,285 @@
|
|
1
|
+
|
2
|
+
from .. schema import KnowledgeResponse, Error, Triples, GraphEmbeddings
|
3
|
+
from .. knowledge import hash
|
4
|
+
from .. exceptions import RequestError
|
5
|
+
from .. tables.knowledge import KnowledgeTableStore
|
6
|
+
from .. base import Publisher
|
7
|
+
|
8
|
+
import base64
|
9
|
+
import asyncio
|
10
|
+
import uuid
|
11
|
+
|
12
|
+
class KnowledgeManager:
|
13
|
+
|
14
|
+
def __init__(
|
15
|
+
self, cassandra_host, cassandra_user, cassandra_password,
|
16
|
+
keyspace, flow_config,
|
17
|
+
):
|
18
|
+
|
19
|
+
self.table_store = KnowledgeTableStore(
|
20
|
+
cassandra_host, cassandra_user, cassandra_password, keyspace
|
21
|
+
)
|
22
|
+
|
23
|
+
self.loader_queue = asyncio.Queue(maxsize=20)
|
24
|
+
self.background_task = None
|
25
|
+
self.flow_config = flow_config
|
26
|
+
|
27
|
+
async def delete_kg_core(self, request, respond):
|
28
|
+
|
29
|
+
print("Deleting core...", flush=True)
|
30
|
+
|
31
|
+
await self.table_store.delete_kg_core(
|
32
|
+
request.user, request.id
|
33
|
+
)
|
34
|
+
|
35
|
+
await respond(
|
36
|
+
KnowledgeResponse(
|
37
|
+
error = None,
|
38
|
+
ids = None,
|
39
|
+
eos = False,
|
40
|
+
triples = None,
|
41
|
+
graph_embeddings = None,
|
42
|
+
)
|
43
|
+
)
|
44
|
+
|
45
|
+
async def get_kg_core(self, request, respond):
|
46
|
+
|
47
|
+
print("Get core...", flush=True)
|
48
|
+
|
49
|
+
async def publish_triples(t):
|
50
|
+
await respond(
|
51
|
+
KnowledgeResponse(
|
52
|
+
error = None,
|
53
|
+
ids = None,
|
54
|
+
eos = False,
|
55
|
+
triples = t,
|
56
|
+
graph_embeddings = None,
|
57
|
+
)
|
58
|
+
)
|
59
|
+
|
60
|
+
# Remove doc table row
|
61
|
+
await self.table_store.get_triples(
|
62
|
+
request.user,
|
63
|
+
request.id,
|
64
|
+
publish_triples,
|
65
|
+
)
|
66
|
+
|
67
|
+
async def publish_ge(g):
|
68
|
+
await respond(
|
69
|
+
KnowledgeResponse(
|
70
|
+
error = None,
|
71
|
+
ids = None,
|
72
|
+
eos = False,
|
73
|
+
triples = None,
|
74
|
+
graph_embeddings = g,
|
75
|
+
)
|
76
|
+
)
|
77
|
+
|
78
|
+
# Remove doc table row
|
79
|
+
await self.table_store.get_graph_embeddings(
|
80
|
+
request.user,
|
81
|
+
request.id,
|
82
|
+
publish_ge,
|
83
|
+
)
|
84
|
+
|
85
|
+
print("Get complete", flush=True)
|
86
|
+
|
87
|
+
await respond(
|
88
|
+
KnowledgeResponse(
|
89
|
+
error = None,
|
90
|
+
ids = None,
|
91
|
+
eos = True,
|
92
|
+
triples = None,
|
93
|
+
graph_embeddings = None,
|
94
|
+
)
|
95
|
+
)
|
96
|
+
|
97
|
+
async def list_kg_cores(self, request, respond):
|
98
|
+
|
99
|
+
ids = await self.table_store.list_kg_cores(request.user)
|
100
|
+
|
101
|
+
await respond(
|
102
|
+
KnowledgeResponse(
|
103
|
+
error = None,
|
104
|
+
ids = ids,
|
105
|
+
eos = False,
|
106
|
+
triples = None,
|
107
|
+
graph_embeddings = None
|
108
|
+
)
|
109
|
+
)
|
110
|
+
|
111
|
+
async def put_kg_core(self, request, respond):
|
112
|
+
|
113
|
+
if request.triples:
|
114
|
+
await self.table_store.add_triples(request.triples)
|
115
|
+
|
116
|
+
if request.graph_embeddings:
|
117
|
+
await self.table_store.add_graph_embeddings(
|
118
|
+
request.graph_embeddings
|
119
|
+
)
|
120
|
+
|
121
|
+
await respond(
|
122
|
+
KnowledgeResponse(
|
123
|
+
error = None,
|
124
|
+
ids = None,
|
125
|
+
eos = False,
|
126
|
+
triples = None,
|
127
|
+
graph_embeddings = None
|
128
|
+
)
|
129
|
+
)
|
130
|
+
|
131
|
+
async def load_kg_core(self, request, respond):
|
132
|
+
|
133
|
+
if self.background_task is None:
|
134
|
+
self.background_task = asyncio.create_task(
|
135
|
+
self.core_loader()
|
136
|
+
)
|
137
|
+
# Wait for it to start (yuck)
|
138
|
+
# await asyncio.sleep(0.5)
|
139
|
+
|
140
|
+
await self.loader_queue.put((request, respond))
|
141
|
+
|
142
|
+
# Not sending a response, the loader thread can do that
|
143
|
+
|
144
|
+
async def unload_kg_core(self, request, respond):
|
145
|
+
|
146
|
+
await respond(
|
147
|
+
KnowledgeResponse(
|
148
|
+
error = Error(
|
149
|
+
type = "not-implemented",
|
150
|
+
message = "Not implemented"
|
151
|
+
),
|
152
|
+
ids = None,
|
153
|
+
eos = False,
|
154
|
+
triples = None,
|
155
|
+
graph_embeddings = None
|
156
|
+
)
|
157
|
+
)
|
158
|
+
|
159
|
+
async def core_loader(self):
|
160
|
+
|
161
|
+
print("Running...", flush=True)
|
162
|
+
while True:
|
163
|
+
|
164
|
+
print("Wait for next load...", flush=True)
|
165
|
+
request, respond = await self.loader_queue.get()
|
166
|
+
|
167
|
+
print("Loading...", request.id, flush=True)
|
168
|
+
|
169
|
+
try:
|
170
|
+
|
171
|
+
if request.id is None:
|
172
|
+
raise RuntimeError("Core ID must be specified")
|
173
|
+
|
174
|
+
if request.flow is None:
|
175
|
+
raise RuntimeError("Flow ID must be specified")
|
176
|
+
|
177
|
+
if request.flow not in self.flow_config.flows:
|
178
|
+
raise RuntimeError("Invalid flow")
|
179
|
+
|
180
|
+
flow = self.flow_config.flows[request.flow]
|
181
|
+
|
182
|
+
if "interfaces" not in flow:
|
183
|
+
raise RuntimeError("No defined interfaces")
|
184
|
+
|
185
|
+
if "triples-store" not in flow["interfaces"]:
|
186
|
+
raise RuntimeError("Flow has no triples-store")
|
187
|
+
|
188
|
+
if "graph-embeddings-store" not in flow["interfaces"]:
|
189
|
+
raise RuntimeError("Flow has no graph-embeddings-store")
|
190
|
+
|
191
|
+
t_q = flow["interfaces"]["triples-store"]
|
192
|
+
ge_q = flow["interfaces"]["graph-embeddings-store"]
|
193
|
+
|
194
|
+
# Got this far, it should all work
|
195
|
+
await respond(
|
196
|
+
KnowledgeResponse(
|
197
|
+
error = None,
|
198
|
+
ids = None,
|
199
|
+
eos = False,
|
200
|
+
triples = None,
|
201
|
+
graph_embeddings = None
|
202
|
+
)
|
203
|
+
)
|
204
|
+
|
205
|
+
except Exception as e:
|
206
|
+
|
207
|
+
print("Exception:", e, flush=True)
|
208
|
+
await respond(
|
209
|
+
KnowledgeResponse(
|
210
|
+
error = Error(
|
211
|
+
type = "load-error",
|
212
|
+
message = str(e),
|
213
|
+
),
|
214
|
+
ids = None,
|
215
|
+
eos = False,
|
216
|
+
triples = None,
|
217
|
+
graph_embeddings = None
|
218
|
+
)
|
219
|
+
)
|
220
|
+
|
221
|
+
|
222
|
+
print("Going to start loading...", flush=True)
|
223
|
+
|
224
|
+
try:
|
225
|
+
|
226
|
+
t_pub = None
|
227
|
+
ge_pub = None
|
228
|
+
|
229
|
+
print(t_q, flush=True)
|
230
|
+
print(ge_q, flush=True)
|
231
|
+
|
232
|
+
t_pub = Publisher(
|
233
|
+
self.flow_config.pulsar_client, t_q,
|
234
|
+
schema=Triples,
|
235
|
+
)
|
236
|
+
ge_pub = Publisher(
|
237
|
+
self.flow_config.pulsar_client, ge_q,
|
238
|
+
schema=GraphEmbeddings
|
239
|
+
)
|
240
|
+
|
241
|
+
print("Start publishers...", flush=True)
|
242
|
+
|
243
|
+
await t_pub.start()
|
244
|
+
await ge_pub.start()
|
245
|
+
|
246
|
+
async def publish_triples(t):
|
247
|
+
await t_pub.send(None, t)
|
248
|
+
|
249
|
+
print("Publish triples...", flush=True)
|
250
|
+
|
251
|
+
# Remove doc table row
|
252
|
+
await self.table_store.get_triples(
|
253
|
+
request.user,
|
254
|
+
request.id,
|
255
|
+
publish_triples,
|
256
|
+
)
|
257
|
+
|
258
|
+
async def publish_ge(g):
|
259
|
+
await ge_pub.send(None, g)
|
260
|
+
|
261
|
+
print("Publish GEs...", flush=True)
|
262
|
+
|
263
|
+
# Remove doc table row
|
264
|
+
await self.table_store.get_graph_embeddings(
|
265
|
+
request.user,
|
266
|
+
request.id,
|
267
|
+
publish_ge,
|
268
|
+
)
|
269
|
+
|
270
|
+
print("Completed that.", flush=True)
|
271
|
+
|
272
|
+
except Exception as e:
|
273
|
+
|
274
|
+
print("Exception:", e, flush=True)
|
275
|
+
|
276
|
+
finally:
|
277
|
+
|
278
|
+
print("Stopping publishers...", flush=True)
|
279
|
+
|
280
|
+
if t_pub: await t_pub.stop()
|
281
|
+
if ge_pub: await ge_pub.stop()
|
282
|
+
|
283
|
+
print("Done", flush=True)
|
284
|
+
|
285
|
+
continue
|
@@ -89,6 +89,7 @@ class Processor(AsyncProcessor):
|
|
89
89
|
cassandra_user = cassandra_user,
|
90
90
|
cassandra_password = cassandra_password,
|
91
91
|
keyspace = keyspace,
|
92
|
+
flow_config = self,
|
92
93
|
)
|
93
94
|
|
94
95
|
self.register_config_handler(self.on_knowledge_config)
|
@@ -128,6 +129,8 @@ class Processor(AsyncProcessor):
|
|
128
129
|
"get-kg-core": self.knowledge.get_kg_core,
|
129
130
|
"delete-kg-core": self.knowledge.delete_kg_core,
|
130
131
|
"put-kg-core": self.knowledge.put_kg_core,
|
132
|
+
"load-kg-core": self.knowledge.load_kg_core,
|
133
|
+
"unload-kg-core": self.knowledge.unload_kg_core,
|
131
134
|
}
|
132
135
|
|
133
136
|
if v.operation not in impls:
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.23.18"
|
{trustgraph-flow-0.23.16 → trustgraph-flow-0.23.18}/trustgraph/gateway/dispatch/knowledge.py
RENAMED
@@ -61,29 +61,26 @@ class KnowledgeRequestor(ServiceRequestor):
|
|
61
61
|
operation = body.get("operation", None),
|
62
62
|
user = body.get("user", None),
|
63
63
|
id = body.get("id", None),
|
64
|
+
flow = body.get("flow", None),
|
65
|
+
collection = body.get("collection", None),
|
64
66
|
triples = triples,
|
65
67
|
graph_embeddings = ge,
|
66
68
|
)
|
67
69
|
|
68
70
|
def from_response(self, message):
|
69
71
|
|
70
|
-
print("Processing message")
|
71
|
-
|
72
72
|
# Response to list,
|
73
73
|
if message.ids is not None:
|
74
|
-
print("-> IDS")
|
75
74
|
return {
|
76
75
|
"ids": message.ids
|
77
76
|
}, True
|
78
77
|
|
79
78
|
if message.triples:
|
80
|
-
print("-> triples")
|
81
79
|
return {
|
82
80
|
"triples": serialize_triples(message.triples)
|
83
81
|
}, False
|
84
82
|
|
85
83
|
if message.graph_embeddings:
|
86
|
-
print("-> ge")
|
87
84
|
return {
|
88
85
|
"graph-embeddings": serialize_graph_embeddings(
|
89
86
|
message.graph_embeddings
|
@@ -91,7 +88,6 @@ class KnowledgeRequestor(ServiceRequestor):
|
|
91
88
|
}, False
|
92
89
|
|
93
90
|
if message.eos is True:
|
94
|
-
print("-> eos")
|
95
91
|
return {
|
96
92
|
"eos": True
|
97
93
|
}, True
|
@@ -161,6 +161,7 @@ class ConfigTableStore:
|
|
161
161
|
except Exception as e:
|
162
162
|
|
163
163
|
print("Exception:", type(e))
|
164
|
+
raise e
|
164
165
|
print(f"{e}, retry...", flush=True)
|
165
166
|
await asyncio.sleep(1)
|
166
167
|
|
@@ -180,6 +181,7 @@ class ConfigTableStore:
|
|
180
181
|
except Exception as e:
|
181
182
|
|
182
183
|
print("Exception:", type(e))
|
184
|
+
raise e
|
183
185
|
print(f"{e}, retry...", flush=True)
|
184
186
|
await asyncio.sleep(1)
|
185
187
|
|
@@ -204,6 +206,7 @@ class ConfigTableStore:
|
|
204
206
|
except Exception as e:
|
205
207
|
|
206
208
|
print("Exception:", type(e))
|
209
|
+
raise e
|
207
210
|
print(f"{e}, retry...", flush=True)
|
208
211
|
await asyncio.sleep(1)
|
209
212
|
|
@@ -228,6 +231,7 @@ class ConfigTableStore:
|
|
228
231
|
except Exception as e:
|
229
232
|
|
230
233
|
print("Exception:", type(e))
|
234
|
+
raise e
|
231
235
|
print(f"{e}, retry...", flush=True)
|
232
236
|
await asyncio.sleep(1)
|
233
237
|
|
@@ -251,6 +255,7 @@ class ConfigTableStore:
|
|
251
255
|
except Exception as e:
|
252
256
|
|
253
257
|
print("Exception:", type(e))
|
258
|
+
raise e
|
254
259
|
print(f"{e}, retry...", flush=True)
|
255
260
|
await asyncio.sleep(1)
|
256
261
|
|
@@ -275,6 +280,7 @@ class ConfigTableStore:
|
|
275
280
|
except Exception as e:
|
276
281
|
|
277
282
|
print("Exception:", type(e))
|
283
|
+
raise e
|
278
284
|
print(f"{e}, retry...", flush=True)
|
279
285
|
await asyncio.sleep(1)
|
280
286
|
|
@@ -297,6 +303,7 @@ class ConfigTableStore:
|
|
297
303
|
|
298
304
|
except Exception as e:
|
299
305
|
print("Exception:", type(e))
|
306
|
+
raise e
|
300
307
|
print(f"{e}, retry...", flush=True)
|
301
308
|
await asyncio.sleep(1)
|
302
309
|
|
@@ -232,6 +232,7 @@ class KnowledgeTableStore:
|
|
232
232
|
except Exception as e:
|
233
233
|
|
234
234
|
print("Exception:", type(e))
|
235
|
+
raise e
|
235
236
|
print(f"{e}, retry...", flush=True)
|
236
237
|
await asyncio.sleep(1)
|
237
238
|
|
@@ -276,6 +277,7 @@ class KnowledgeTableStore:
|
|
276
277
|
except Exception as e:
|
277
278
|
|
278
279
|
print("Exception:", type(e))
|
280
|
+
raise e
|
279
281
|
print(f"{e}, retry...", flush=True)
|
280
282
|
await asyncio.sleep(1)
|
281
283
|
|
@@ -320,6 +322,7 @@ class KnowledgeTableStore:
|
|
320
322
|
except Exception as e:
|
321
323
|
|
322
324
|
print("Exception:", type(e))
|
325
|
+
raise e
|
323
326
|
print(f"{e}, retry...", flush=True)
|
324
327
|
await asyncio.sleep(1)
|
325
328
|
|
@@ -340,6 +343,7 @@ class KnowledgeTableStore:
|
|
340
343
|
|
341
344
|
except Exception as e:
|
342
345
|
print("Exception:", type(e))
|
346
|
+
raise e
|
343
347
|
print(f"{e}, retry...", flush=True)
|
344
348
|
await asyncio.sleep(1)
|
345
349
|
|
@@ -370,6 +374,7 @@ class KnowledgeTableStore:
|
|
370
374
|
|
371
375
|
except Exception as e:
|
372
376
|
print("Exception:", type(e))
|
377
|
+
raise e
|
373
378
|
print(f"{e}, retry...", flush=True)
|
374
379
|
await asyncio.sleep(1)
|
375
380
|
|
@@ -386,6 +391,7 @@ class KnowledgeTableStore:
|
|
386
391
|
|
387
392
|
except Exception as e:
|
388
393
|
print("Exception:", type(e))
|
394
|
+
raise e
|
389
395
|
print(f"{e}, retry...", flush=True)
|
390
396
|
await asyncio.sleep(1)
|
391
397
|
|
@@ -406,6 +412,7 @@ class KnowledgeTableStore:
|
|
406
412
|
|
407
413
|
except Exception as e:
|
408
414
|
print("Exception:", type(e))
|
415
|
+
raise e
|
409
416
|
print(f"{e}, retry...", flush=True)
|
410
417
|
await asyncio.sleep(1)
|
411
418
|
|
@@ -463,6 +470,7 @@ class KnowledgeTableStore:
|
|
463
470
|
|
464
471
|
except Exception as e:
|
465
472
|
print("Exception:", type(e))
|
473
|
+
raise e
|
466
474
|
print(f"{e}, retry...", flush=True)
|
467
475
|
await asyncio.sleep(1)
|
468
476
|
|
@@ -232,6 +232,7 @@ class LibraryTableStore:
|
|
232
232
|
except Exception as e:
|
233
233
|
|
234
234
|
print("Exception:", type(e))
|
235
|
+
raise e
|
235
236
|
print(f"{e}, retry...", flush=True)
|
236
237
|
await asyncio.sleep(1)
|
237
238
|
|
@@ -267,6 +268,7 @@ class LibraryTableStore:
|
|
267
268
|
except Exception as e:
|
268
269
|
|
269
270
|
print("Exception:", type(e))
|
271
|
+
raise e
|
270
272
|
print(f"{e}, retry...", flush=True)
|
271
273
|
await asyncio.sleep(1)
|
272
274
|
|
@@ -292,6 +294,7 @@ class LibraryTableStore:
|
|
292
294
|
except Exception as e:
|
293
295
|
|
294
296
|
print("Exception:", type(e))
|
297
|
+
raise e
|
295
298
|
print(f"{e}, retry...", flush=True)
|
296
299
|
await asyncio.sleep(1)
|
297
300
|
|
@@ -314,6 +317,7 @@ class LibraryTableStore:
|
|
314
317
|
|
315
318
|
except Exception as e:
|
316
319
|
print("Exception:", type(e))
|
320
|
+
raise e
|
317
321
|
print(f"{e}, retry...", flush=True)
|
318
322
|
await asyncio.sleep(1)
|
319
323
|
|
@@ -361,6 +365,7 @@ class LibraryTableStore:
|
|
361
365
|
|
362
366
|
except Exception as e:
|
363
367
|
print("Exception:", type(e))
|
368
|
+
raise e
|
364
369
|
print(f"{e}, retry...", flush=True)
|
365
370
|
await asyncio.sleep(1)
|
366
371
|
|
@@ -407,6 +412,7 @@ class LibraryTableStore:
|
|
407
412
|
|
408
413
|
except Exception as e:
|
409
414
|
print("Exception:", type(e))
|
415
|
+
raise e
|
410
416
|
print(f"{e}, retry...", flush=True)
|
411
417
|
await asyncio.sleep(1)
|
412
418
|
|
@@ -455,6 +461,7 @@ class LibraryTableStore:
|
|
455
461
|
except Exception as e:
|
456
462
|
|
457
463
|
print("Exception:", type(e))
|
464
|
+
raise e
|
458
465
|
print(f"{e}, retry...", flush=True)
|
459
466
|
await asyncio.sleep(1)
|
460
467
|
|
@@ -480,6 +487,7 @@ class LibraryTableStore:
|
|
480
487
|
except Exception as e:
|
481
488
|
|
482
489
|
print("Exception:", type(e))
|
490
|
+
raise e
|
483
491
|
print(f"{e}, retry...", flush=True)
|
484
492
|
await asyncio.sleep(1)
|
485
493
|
|
@@ -502,6 +510,7 @@ class LibraryTableStore:
|
|
502
510
|
|
503
511
|
except Exception as e:
|
504
512
|
print("Exception:", type(e))
|
513
|
+
raise e
|
505
514
|
print(f"{e}, retry...", flush=True)
|
506
515
|
await asyncio.sleep(1)
|
507
516
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 0.23.
|
3
|
+
Version: 0.23.18
|
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/v0.23.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.23.18.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|