trustgraph-flow 0.21.19__tar.gz → 0.22.0__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.21.19 → trustgraph-flow-0.22.0}/PKG-INFO +2 -2
- trustgraph-flow-0.22.0/scripts/config-svc +6 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/setup.py +2 -1
- trustgraph-flow-0.22.0/trustgraph/config/service/service.py +312 -0
- {trustgraph-flow-0.21.19/trustgraph/gateway → trustgraph-flow-0.22.0/trustgraph/external/wikipedia}/__main__.py +0 -0
- trustgraph-flow-0.22.0/trustgraph/flow_version.py +1 -0
- trustgraph-flow-0.22.0/trustgraph/gateway/config.py +77 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/service.py +9 -0
- trustgraph-flow-0.22.0/trustgraph/model/prompt/template/__main__.py +7 -0
- trustgraph-flow-0.22.0/trustgraph/query/triples/neo4j/__init__.py +3 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph_flow.egg-info/SOURCES.txt +5 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph_flow.egg-info/requires.txt +1 -1
- trustgraph-flow-0.21.19/trustgraph/flow_version.py +0 -1
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/README.md +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/api-gateway +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/chunker-token +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/document-embeddings +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/document-rag +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/graph-rag +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/librarian +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/metering +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/object-extract-row +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/pdf-ocr-mistral +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/prompt-generic +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/prompt-template +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/run-processing +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-lmstudio +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-mistral +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/setup.cfg +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/agent/react/service.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/external/wikipedia → trustgraph-flow-0.22.0/trustgraph/config/service}/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/external/wikipedia → trustgraph-flow-0.22.0/trustgraph/config/service}/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/document_rag.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/gateway → trustgraph-flow-0.22.0/trustgraph/external/wikipedia}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/extract/object/row/extract.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/librarian → trustgraph-flow-0.22.0/trustgraph/gateway}/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/librarian → trustgraph-flow-0.22.0/trustgraph/gateway}/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/agent.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/dbpedia.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/document_embeddings_load.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/document_embeddings_stream.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/document_load.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/document_rag.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/embeddings.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/encyclopedia.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/endpoint.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/graph_embeddings_load.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/graph_embeddings_query.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/graph_embeddings_stream.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/graph_rag.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/internet_search.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/librarian.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/metrics.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/mux.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/prompt.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/requestor.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/sender.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/serialize.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/socket.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/text_completion.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/text_load.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/triples_load.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/triples_query.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/gateway/triples_stream.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/graph_rag.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/model/prompt/generic → trustgraph-flow-0.22.0/trustgraph/librarian}/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/model/prompt/generic → trustgraph-flow-0.22.0/trustgraph/librarian}/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/librarian/service.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/librarian/table_store.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/metering/pricelist.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/model/prompt/template → trustgraph-flow-0.22.0/trustgraph/model/prompt/generic}/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/model/prompt/template → trustgraph-flow-0.22.0/trustgraph/model/prompt/generic}/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/prompt/generic/service.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/doc_embeddings/milvus → trustgraph-flow-0.22.0/trustgraph/model/prompt/template}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/doc_embeddings/pinecone → trustgraph-flow-0.22.0/trustgraph/query/doc_embeddings/milvus}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/doc_embeddings/qdrant → trustgraph-flow-0.22.0/trustgraph/query/doc_embeddings/pinecone}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/graph_embeddings/milvus → trustgraph-flow-0.22.0/trustgraph/query/doc_embeddings/qdrant}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/graph_embeddings/pinecone → trustgraph-flow-0.22.0/trustgraph/query/graph_embeddings/milvus}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/graph_embeddings/qdrant → trustgraph-flow-0.22.0/trustgraph/query/graph_embeddings/pinecone}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/triples/cassandra → trustgraph-flow-0.22.0/trustgraph/query/graph_embeddings/qdrant}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/triples/falkordb → trustgraph-flow-0.22.0/trustgraph/query/triples/cassandra}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/triples/memgraph → trustgraph-flow-0.22.0/trustgraph/query/triples/falkordb}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph-flow-0.21.19/trustgraph/query/triples/neo4j → trustgraph-flow-0.22.0/trustgraph/query/triples/memgraph}/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-0.21.19 → trustgraph-flow-0.22.0}/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.
|
3
|
+
Version: 0.22.0
|
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.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.22.0.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -34,7 +34,7 @@ setuptools.setup(
|
|
34
34
|
python_requires='>=3.8',
|
35
35
|
download_url = "https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v" + version + ".tar.gz",
|
36
36
|
install_requires=[
|
37
|
-
"trustgraph-base>=0.
|
37
|
+
"trustgraph-base>=0.22,<0.23",
|
38
38
|
"aiohttp",
|
39
39
|
"anthropic",
|
40
40
|
"cassandra-driver",
|
@@ -73,6 +73,7 @@ setuptools.setup(
|
|
73
73
|
"scripts/api-gateway",
|
74
74
|
"scripts/chunker-recursive",
|
75
75
|
"scripts/chunker-token",
|
76
|
+
"scripts/config-svc",
|
76
77
|
"scripts/de-query-milvus",
|
77
78
|
"scripts/de-query-pinecone",
|
78
79
|
"scripts/de-query-qdrant",
|
@@ -0,0 +1,312 @@
|
|
1
|
+
|
2
|
+
"""
|
3
|
+
Config service. Fetchs an extract from the Wikipedia page
|
4
|
+
using the API.
|
5
|
+
"""
|
6
|
+
|
7
|
+
from pulsar.schema import JsonSchema
|
8
|
+
|
9
|
+
from trustgraph.schema import ConfigRequest, ConfigResponse, ConfigPush
|
10
|
+
from trustgraph.schema import ConfigValue, Error
|
11
|
+
from trustgraph.schema import config_request_queue, config_response_queue
|
12
|
+
from trustgraph.schema import config_push_queue
|
13
|
+
from trustgraph.log_level import LogLevel
|
14
|
+
from trustgraph.base import ConsumerProducer
|
15
|
+
|
16
|
+
module = ".".join(__name__.split(".")[1:-1])
|
17
|
+
|
18
|
+
default_input_queue = config_request_queue
|
19
|
+
default_output_queue = config_response_queue
|
20
|
+
default_push_queue = config_push_queue
|
21
|
+
default_subscriber = module
|
22
|
+
|
23
|
+
# This behaves just like a dict, should be easier to add persistent storage
|
24
|
+
# later
|
25
|
+
|
26
|
+
class ConfigurationItems(dict):
|
27
|
+
pass
|
28
|
+
|
29
|
+
class Configuration(dict):
|
30
|
+
|
31
|
+
def __getitem__(self, key):
|
32
|
+
if key not in self:
|
33
|
+
self[key] = ConfigurationItems()
|
34
|
+
return dict.__getitem__(self, key)
|
35
|
+
|
36
|
+
class Processor(ConsumerProducer):
|
37
|
+
|
38
|
+
def __init__(self, **params):
|
39
|
+
|
40
|
+
input_queue = params.get("input_queue", default_input_queue)
|
41
|
+
output_queue = params.get("output_queue", default_output_queue)
|
42
|
+
push_queue = params.get("push_queue", default_push_queue)
|
43
|
+
subscriber = params.get("subscriber", default_subscriber)
|
44
|
+
|
45
|
+
super(Processor, self).__init__(
|
46
|
+
**params | {
|
47
|
+
"input_queue": input_queue,
|
48
|
+
"output_queue": output_queue,
|
49
|
+
"push_queue": output_queue,
|
50
|
+
"subscriber": subscriber,
|
51
|
+
"input_schema": ConfigRequest,
|
52
|
+
"output_schema": ConfigResponse,
|
53
|
+
"push_schema": ConfigPush,
|
54
|
+
}
|
55
|
+
)
|
56
|
+
|
57
|
+
self.push_prod = self.client.create_producer(
|
58
|
+
topic=push_queue,
|
59
|
+
schema=JsonSchema(ConfigPush),
|
60
|
+
)
|
61
|
+
|
62
|
+
# FIXME: The state is held internally. This only works if there's
|
63
|
+
# one config service. Should be more than one, and use a
|
64
|
+
# back-end state store.
|
65
|
+
self.config = Configuration()
|
66
|
+
|
67
|
+
# Version counter
|
68
|
+
self.version = 0
|
69
|
+
|
70
|
+
async def start(self):
|
71
|
+
await self.push()
|
72
|
+
|
73
|
+
async def handle_get(self, v, id):
|
74
|
+
|
75
|
+
for k in v.keys:
|
76
|
+
if k.type not in self.config or k.key not in self.config[k.type]:
|
77
|
+
return ConfigResponse(
|
78
|
+
version = None,
|
79
|
+
values = None,
|
80
|
+
directory = None,
|
81
|
+
config = None,
|
82
|
+
error = Error(
|
83
|
+
code = "key-error",
|
84
|
+
message = f"Key error"
|
85
|
+
)
|
86
|
+
)
|
87
|
+
|
88
|
+
values = [
|
89
|
+
ConfigValue(
|
90
|
+
type = k.type,
|
91
|
+
key = k.key,
|
92
|
+
value = self.config[k.type][k.key]
|
93
|
+
)
|
94
|
+
for k in v.keys
|
95
|
+
]
|
96
|
+
|
97
|
+
return ConfigResponse(
|
98
|
+
version = self.version,
|
99
|
+
values = values,
|
100
|
+
directory = None,
|
101
|
+
config = None,
|
102
|
+
error = None,
|
103
|
+
)
|
104
|
+
|
105
|
+
async def handle_list(self, v, id):
|
106
|
+
|
107
|
+
if v.type not in self.config:
|
108
|
+
|
109
|
+
return ConfigResponse(
|
110
|
+
version = None,
|
111
|
+
values = None,
|
112
|
+
directory = None,
|
113
|
+
config = None,
|
114
|
+
error = Error(
|
115
|
+
code="key-error",
|
116
|
+
message="No such type",
|
117
|
+
),
|
118
|
+
)
|
119
|
+
|
120
|
+
return ConfigResponse(
|
121
|
+
version = self.version,
|
122
|
+
values = None,
|
123
|
+
directory = list(self.config[v.type].keys()),
|
124
|
+
config = None,
|
125
|
+
error = None,
|
126
|
+
)
|
127
|
+
|
128
|
+
async def handle_getvalues(self, v, id):
|
129
|
+
|
130
|
+
if v.type not in self.config:
|
131
|
+
|
132
|
+
return ConfigResponse(
|
133
|
+
version = None,
|
134
|
+
values = None,
|
135
|
+
directory = None,
|
136
|
+
config = None,
|
137
|
+
error = Error(
|
138
|
+
code = "key-error",
|
139
|
+
message = f"Key error"
|
140
|
+
)
|
141
|
+
)
|
142
|
+
|
143
|
+
values = [
|
144
|
+
ConfigValue(
|
145
|
+
type = v.type,
|
146
|
+
key = k,
|
147
|
+
value = self.config[v.type][k],
|
148
|
+
)
|
149
|
+
for k in self.config[v.type]
|
150
|
+
]
|
151
|
+
|
152
|
+
return ConfigResponse(
|
153
|
+
version = self.version,
|
154
|
+
values = values,
|
155
|
+
directory = None,
|
156
|
+
config = None,
|
157
|
+
error = None,
|
158
|
+
)
|
159
|
+
|
160
|
+
async def handle_delete(self, v, id):
|
161
|
+
|
162
|
+
for k in v.keys:
|
163
|
+
if k.type not in self.config or k.key not in self.config[k.type]:
|
164
|
+
return ConfigResponse(
|
165
|
+
version = None,
|
166
|
+
values = None,
|
167
|
+
directory = None,
|
168
|
+
config = None,
|
169
|
+
error = Error(
|
170
|
+
code = "key-error",
|
171
|
+
message = f"Key error"
|
172
|
+
)
|
173
|
+
)
|
174
|
+
|
175
|
+
for k in v.keys:
|
176
|
+
del self.config[k.type][k.key]
|
177
|
+
|
178
|
+
self.version += 1
|
179
|
+
|
180
|
+
await self.push()
|
181
|
+
|
182
|
+
return ConfigResponse(
|
183
|
+
version = None,
|
184
|
+
value = None,
|
185
|
+
directory = None,
|
186
|
+
values = None,
|
187
|
+
config = None,
|
188
|
+
error = None,
|
189
|
+
)
|
190
|
+
|
191
|
+
async def handle_put(self, v, id):
|
192
|
+
|
193
|
+
for k in v.values:
|
194
|
+
self.config[k.type][k.key] = k.value
|
195
|
+
|
196
|
+
self.version += 1
|
197
|
+
|
198
|
+
await self.push()
|
199
|
+
|
200
|
+
return ConfigResponse(
|
201
|
+
version = None,
|
202
|
+
value = None,
|
203
|
+
directory = None,
|
204
|
+
values = None,
|
205
|
+
error = None,
|
206
|
+
)
|
207
|
+
|
208
|
+
async def handle_config(self, v, id):
|
209
|
+
|
210
|
+
return ConfigResponse(
|
211
|
+
version = self.version,
|
212
|
+
value = None,
|
213
|
+
directory = None,
|
214
|
+
values = None,
|
215
|
+
config = self.config,
|
216
|
+
error = None,
|
217
|
+
)
|
218
|
+
|
219
|
+
async def push(self):
|
220
|
+
|
221
|
+
resp = ConfigPush(
|
222
|
+
version = self.version,
|
223
|
+
value = None,
|
224
|
+
directory = None,
|
225
|
+
values = None,
|
226
|
+
config = self.config,
|
227
|
+
error = None,
|
228
|
+
)
|
229
|
+
self.push_prod.send(resp)
|
230
|
+
print("Pushed.")
|
231
|
+
|
232
|
+
async def handle(self, msg):
|
233
|
+
|
234
|
+
v = msg.value()
|
235
|
+
|
236
|
+
# Sender-produced ID
|
237
|
+
id = msg.properties()["id"]
|
238
|
+
|
239
|
+
print(f"Handling {id}...", flush=True)
|
240
|
+
|
241
|
+
try:
|
242
|
+
|
243
|
+
if v.operation == "get":
|
244
|
+
|
245
|
+
resp = await self.handle_get(v, id)
|
246
|
+
|
247
|
+
elif v.operation == "list":
|
248
|
+
|
249
|
+
resp = await self.handle_list(v, id)
|
250
|
+
|
251
|
+
elif v.operation == "getvalues":
|
252
|
+
|
253
|
+
resp = await self.handle_getvalues(v, id)
|
254
|
+
|
255
|
+
elif v.operation == "delete":
|
256
|
+
|
257
|
+
resp = await self.handle_delete(v, id)
|
258
|
+
|
259
|
+
elif v.operation == "put":
|
260
|
+
|
261
|
+
resp = await self.handle_put(v, id)
|
262
|
+
|
263
|
+
elif v.operation == "config":
|
264
|
+
|
265
|
+
resp = await self.handle_config(v, id)
|
266
|
+
|
267
|
+
else:
|
268
|
+
|
269
|
+
resp = ConfigResponse(
|
270
|
+
value=None,
|
271
|
+
directory=None,
|
272
|
+
values=None,
|
273
|
+
error=Error(
|
274
|
+
code="bad-operation",
|
275
|
+
message="Bad operation"
|
276
|
+
)
|
277
|
+
)
|
278
|
+
|
279
|
+
await self.send(resp, properties={"id": id})
|
280
|
+
|
281
|
+
self.consumer.acknowledge(msg)
|
282
|
+
|
283
|
+
except Exception as e:
|
284
|
+
|
285
|
+
resp = ConfigResponse(
|
286
|
+
error=Error(
|
287
|
+
type = "unexpected-error",
|
288
|
+
message = str(e),
|
289
|
+
),
|
290
|
+
text=None,
|
291
|
+
)
|
292
|
+
await self.send(resp, properties={"id": id})
|
293
|
+
self.consumer.acknowledge(msg)
|
294
|
+
|
295
|
+
@staticmethod
|
296
|
+
def add_args(parser):
|
297
|
+
|
298
|
+
ConsumerProducer.add_args(
|
299
|
+
parser, default_input_queue, default_subscriber,
|
300
|
+
default_output_queue,
|
301
|
+
)
|
302
|
+
|
303
|
+
parser.add_argument(
|
304
|
+
'-q', '--push-queue',
|
305
|
+
default=default_push_queue,
|
306
|
+
help=f'Config push queue (default: {default_push_queue})'
|
307
|
+
)
|
308
|
+
|
309
|
+
def run():
|
310
|
+
|
311
|
+
Processor.launch(module, __doc__)
|
312
|
+
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.22.0"
|
@@ -0,0 +1,77 @@
|
|
1
|
+
|
2
|
+
from .. schema import ConfigRequest, ConfigResponse, ConfigKey, ConfigValue
|
3
|
+
from .. schema import config_request_queue
|
4
|
+
from .. schema import config_response_queue
|
5
|
+
|
6
|
+
from . endpoint import ServiceEndpoint
|
7
|
+
from . requestor import ServiceRequestor
|
8
|
+
|
9
|
+
class ConfigRequestor(ServiceRequestor):
|
10
|
+
def __init__(self, pulsar_client, timeout, auth):
|
11
|
+
|
12
|
+
super(ConfigRequestor, self).__init__(
|
13
|
+
pulsar_client=pulsar_client,
|
14
|
+
request_queue=config_request_queue,
|
15
|
+
response_queue=config_response_queue,
|
16
|
+
request_schema=ConfigRequest,
|
17
|
+
response_schema=ConfigResponse,
|
18
|
+
timeout=timeout,
|
19
|
+
)
|
20
|
+
|
21
|
+
def to_request(self, body):
|
22
|
+
|
23
|
+
if "keys" in body:
|
24
|
+
keys = [
|
25
|
+
ConfigKey(
|
26
|
+
type = k["type"],
|
27
|
+
key = k["key"],
|
28
|
+
)
|
29
|
+
for k in body["keys"]
|
30
|
+
]
|
31
|
+
else:
|
32
|
+
keys = None
|
33
|
+
|
34
|
+
if "values" in body:
|
35
|
+
values = [
|
36
|
+
ConfigValue(
|
37
|
+
type = v["type"],
|
38
|
+
key = v["key"],
|
39
|
+
value = v["value"],
|
40
|
+
)
|
41
|
+
for v in body["values"]
|
42
|
+
]
|
43
|
+
else:
|
44
|
+
values = None
|
45
|
+
|
46
|
+
return ConfigRequest(
|
47
|
+
operation = body.get("operation", None),
|
48
|
+
keys = keys,
|
49
|
+
type = body.get("type", None),
|
50
|
+
values = values
|
51
|
+
)
|
52
|
+
|
53
|
+
def from_response(self, message):
|
54
|
+
|
55
|
+
response = { }
|
56
|
+
|
57
|
+
if message.version:
|
58
|
+
response["version"] = message.version
|
59
|
+
|
60
|
+
if message.values:
|
61
|
+
response["values"] = [
|
62
|
+
{
|
63
|
+
"type": v.type,
|
64
|
+
"key": v.key,
|
65
|
+
"value": v.value,
|
66
|
+
}
|
67
|
+
for v in message.values
|
68
|
+
]
|
69
|
+
|
70
|
+
if message.directory:
|
71
|
+
response["directory"] = message.directory
|
72
|
+
|
73
|
+
if message.config:
|
74
|
+
response["config"] = message.config
|
75
|
+
|
76
|
+
return response, True
|
77
|
+
|
@@ -38,6 +38,7 @@ from . agent import AgentRequestor
|
|
38
38
|
from . dbpedia import DbpediaRequestor
|
39
39
|
from . internet_search import InternetSearchRequestor
|
40
40
|
from . librarian import LibrarianRequestor
|
41
|
+
from . config import ConfigRequestor
|
41
42
|
from . triples_stream import TriplesStreamEndpoint
|
42
43
|
from . graph_embeddings_stream import GraphEmbeddingsStreamEndpoint
|
43
44
|
from . document_embeddings_stream import DocumentEmbeddingsStreamEndpoint
|
@@ -141,6 +142,10 @@ class Api:
|
|
141
142
|
pulsar_client=self.pulsar_client, timeout=self.timeout,
|
142
143
|
auth = self.auth,
|
143
144
|
),
|
145
|
+
"config": ConfigRequestor(
|
146
|
+
pulsar_client=self.pulsar_client, timeout=self.timeout,
|
147
|
+
auth = self.auth,
|
148
|
+
),
|
144
149
|
"encyclopedia": EncyclopediaRequestor(
|
145
150
|
pulsar_client=self.pulsar_client, timeout=self.timeout,
|
146
151
|
auth = self.auth,
|
@@ -199,6 +204,10 @@ class Api:
|
|
199
204
|
endpoint_path = "/api/v1/librarian", auth=self.auth,
|
200
205
|
requestor = self.services["librarian"],
|
201
206
|
),
|
207
|
+
ServiceEndpoint(
|
208
|
+
endpoint_path = "/api/v1/config", auth=self.auth,
|
209
|
+
requestor = self.services["config"],
|
210
|
+
),
|
202
211
|
ServiceEndpoint(
|
203
212
|
endpoint_path = "/api/v1/encyclopedia", auth=self.auth,
|
204
213
|
requestor = self.services["encyclopedia"],
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.22.0
|
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.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.22.0.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -4,6 +4,7 @@ scripts/agent-manager-react
|
|
4
4
|
scripts/api-gateway
|
5
5
|
scripts/chunker-recursive
|
6
6
|
scripts/chunker-token
|
7
|
+
scripts/config-svc
|
7
8
|
scripts/de-query-milvus
|
8
9
|
scripts/de-query-pinecone
|
9
10
|
scripts/de-query-qdrant
|
@@ -72,6 +73,9 @@ trustgraph/chunking/recursive/chunker.py
|
|
72
73
|
trustgraph/chunking/token/__init__.py
|
73
74
|
trustgraph/chunking/token/__main__.py
|
74
75
|
trustgraph/chunking/token/chunker.py
|
76
|
+
trustgraph/config/service/__init__.py
|
77
|
+
trustgraph/config/service/__main__.py
|
78
|
+
trustgraph/config/service/service.py
|
75
79
|
trustgraph/decoding/__init__.py
|
76
80
|
trustgraph/decoding/mistral_ocr/__init__.py
|
77
81
|
trustgraph/decoding/mistral_ocr/__main__.py
|
@@ -120,6 +124,7 @@ trustgraph/gateway/__init__.py
|
|
120
124
|
trustgraph/gateway/__main__.py
|
121
125
|
trustgraph/gateway/agent.py
|
122
126
|
trustgraph/gateway/auth.py
|
127
|
+
trustgraph/gateway/config.py
|
123
128
|
trustgraph/gateway/dbpedia.py
|
124
129
|
trustgraph/gateway/document_embeddings_load.py
|
125
130
|
trustgraph/gateway/document_embeddings_stream.py
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.21.19"
|
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
|