trustgraph-flow 1.1.6__tar.gz → 1.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/PKG-INFO +2 -2
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/react/agent_manager.py +12 -3
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/react/service.py +17 -3
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/react/tools.py +28 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/direct/cassandra.py +16 -0
- trustgraph-flow-1.1.8/trustgraph/embeddings/ollama/processor.py +63 -0
- trustgraph-flow-1.1.8/trustgraph/flow_version.py +1 -0
- trustgraph-flow-1.1.8/trustgraph/query/doc_embeddings/milvus/service.py +68 -0
- trustgraph-flow-1.1.8/trustgraph/query/doc_embeddings/pinecone/service.py +103 -0
- trustgraph-flow-1.1.8/trustgraph/query/graph_embeddings/milvus/service.py +95 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/pinecone/service.py +21 -56
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/falkordb/service.py +90 -114
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/memgraph/service.py +64 -101
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/neo4j/service.py +46 -85
- trustgraph-flow-1.1.8/trustgraph/storage/doc_embeddings/milvus/write.py +52 -0
- trustgraph-flow-1.1.8/trustgraph/storage/doc_embeddings/pinecone/write.py +162 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/milvus/write.py +7 -22
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/pinecone/write.py +16 -29
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/falkordb/write.py +11 -25
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/memgraph/write.py +11 -23
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/neo4j/write.py +11 -23
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- trustgraph-flow-1.1.6/trustgraph/embeddings/ollama/processor.py +0 -97
- trustgraph-flow-1.1.6/trustgraph/flow_version.py +0 -1
- trustgraph-flow-1.1.6/trustgraph/query/doc_embeddings/milvus/service.py +0 -106
- trustgraph-flow-1.1.6/trustgraph/query/doc_embeddings/pinecone/service.py +0 -147
- trustgraph-flow-1.1.6/trustgraph/query/graph_embeddings/milvus/service.py +0 -121
- trustgraph-flow-1.1.6/trustgraph/storage/doc_embeddings/milvus/write.py +0 -69
- trustgraph-flow-1.1.6/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -170
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/README.md +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/api-gateway +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/chunker-token +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/config-svc +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/document-embeddings +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/document-rag +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/graph-rag +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/kg-manager +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/kg-store +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/librarian +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/mcp-tool +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/metering +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/object-extract-row +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/pdf-ocr-mistral +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/prompt-generic +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/prompt-template +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/rev-gateway +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/run-processing +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-lmstudio +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-mistral +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-tgi +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/text-completion-vllm +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/setup.cfg +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/setup.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/mcp_tool/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/mcp_tool/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/mcp_tool/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/config/service/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/config/service/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/config/service/config.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/config/service/flow.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/config/service/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/cores/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/cores/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/cores/knowledge.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/cores/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/extract/object/row/extract.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/config/receiver.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/agent.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/config.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/core_export.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/core_import.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/document_load.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/document_rag.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/embeddings.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/entity_contexts_export.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/entity_contexts_import.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/flow.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/knowledge.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/librarian.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/manager.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/mcp_tool.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/mux.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/prompt.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/requestor.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/sender.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/serialize.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/streamer.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/text_completion.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/text_load.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/triples_export.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/triples_import.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/dispatch/triples_query.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/endpoint/constant_endpoint.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/endpoint/manager.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/endpoint/metrics.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/endpoint/socket.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/endpoint/stream_endpoint.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/endpoint/variable_endpoint.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/unused/dbpedia.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/unused/encyclopedia.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/gateway/unused/internet_search.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/librarian/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/generic/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/generic/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/generic/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/template/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/template/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/tgi/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/tgi/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/tgi/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/vllm/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/vllm/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/model/text_completion/vllm/llm.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/document_rag/document_rag.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/graph_rag/graph_rag.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/rev_gateway/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/rev_gateway/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/rev_gateway/dispatcher.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/rev_gateway/service.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/knowledge/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/knowledge/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/knowledge/store.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/tables/__init__.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/tables/config.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/tables/knowledge.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph/tables/library.py +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph_flow.egg-info/requires.txt +0 -0
- {trustgraph-flow-1.1.6 → trustgraph-flow-1.1.8}/trustgraph_flow.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.8
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v1.1.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v1.1.8.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -14,12 +14,19 @@ class AgentManager:
|
|
14
14
|
|
15
15
|
async def reason(self, question, history, context):
|
16
16
|
|
17
|
+
print(f"calling reason: {question}", flush=True)
|
18
|
+
|
17
19
|
tools = self.tools
|
18
20
|
|
21
|
+
print(f"in reason", flush=True)
|
22
|
+
print(tools, flush=True)
|
23
|
+
|
19
24
|
tool_names = ",".join([
|
20
25
|
t for t in self.tools.keys()
|
21
26
|
])
|
22
27
|
|
28
|
+
print("Tool names:", tool_names, flush=True)
|
29
|
+
|
23
30
|
variables = {
|
24
31
|
"question": question,
|
25
32
|
"tools": [
|
@@ -83,6 +90,9 @@ class AgentManager:
|
|
83
90
|
|
84
91
|
async def react(self, question, history, think, observe, context):
|
85
92
|
|
93
|
+
logger.info(f"question: {question}")
|
94
|
+
print(f"question: {question}", flush=True)
|
95
|
+
|
86
96
|
act = await self.reason(
|
87
97
|
question = question,
|
88
98
|
history = history,
|
@@ -104,13 +114,12 @@ class AgentManager:
|
|
104
114
|
else:
|
105
115
|
raise RuntimeError(f"No action for {act.name}!")
|
106
116
|
|
107
|
-
print("TOOL>>>", act)
|
117
|
+
print("TOOL>>>", act, flush=True)
|
118
|
+
|
108
119
|
resp = await action.implementation(context).invoke(
|
109
120
|
**act.arguments
|
110
121
|
)
|
111
122
|
|
112
|
-
print("RSETUL", resp)
|
113
|
-
|
114
123
|
resp = resp.strip()
|
115
124
|
|
116
125
|
logger.info(f"resp: {resp}")
|
@@ -5,13 +5,14 @@ Simple agent infrastructure broadly implements the ReAct flow.
|
|
5
5
|
import json
|
6
6
|
import re
|
7
7
|
import sys
|
8
|
+
import functools
|
8
9
|
|
9
10
|
from ... base import AgentService, TextCompletionClientSpec, PromptClientSpec
|
10
|
-
from ... base import GraphRagClientSpec
|
11
|
+
from ... base import GraphRagClientSpec, ToolClientSpec
|
11
12
|
|
12
13
|
from ... schema import AgentRequest, AgentResponse, AgentStep, Error
|
13
14
|
|
14
|
-
from . tools import KnowledgeQueryImpl, TextCompletionImpl
|
15
|
+
from . tools import KnowledgeQueryImpl, TextCompletionImpl, McpToolImpl
|
15
16
|
from . agent_manager import AgentManager
|
16
17
|
|
17
18
|
from . types import Final, Action, Tool, Argument
|
@@ -67,6 +68,13 @@ class Processor(AgentService):
|
|
67
68
|
)
|
68
69
|
)
|
69
70
|
|
71
|
+
self.register_specification(
|
72
|
+
ToolClientSpec(
|
73
|
+
request_name = "mcp-tool-request",
|
74
|
+
response_name = "mcp-tool-response",
|
75
|
+
)
|
76
|
+
)
|
77
|
+
|
70
78
|
async def on_tools_config(self, config, version):
|
71
79
|
|
72
80
|
print("Loading configuration version", version)
|
@@ -102,17 +110,21 @@ class Processor(AgentService):
|
|
102
110
|
|
103
111
|
impl_id = data.get("type")
|
104
112
|
|
113
|
+
name = data.get("name")
|
114
|
+
|
105
115
|
if impl_id == "knowledge-query":
|
106
116
|
impl = KnowledgeQueryImpl
|
107
117
|
elif impl_id == "text-completion":
|
108
118
|
impl = TextCompletionImpl
|
119
|
+
elif impl_id == "mcp-tool":
|
120
|
+
impl = functools.partial(McpToolImpl, name=k)
|
109
121
|
else:
|
110
122
|
raise RuntimeError(
|
111
123
|
f"Tool-kind {impl_id} not known"
|
112
124
|
)
|
113
125
|
|
114
126
|
tools[data.get("name")] = Tool(
|
115
|
-
name =
|
127
|
+
name = name,
|
116
128
|
description = data.get("description"),
|
117
129
|
implementation = impl,
|
118
130
|
config=data.get("config", {}),
|
@@ -181,6 +193,8 @@ class Processor(AgentService):
|
|
181
193
|
|
182
194
|
await respond(r)
|
183
195
|
|
196
|
+
print("Call React", flush=True)
|
197
|
+
|
184
198
|
act = await self.agent.react(
|
185
199
|
question = request.question,
|
186
200
|
history = history,
|
@@ -1,4 +1,6 @@
|
|
1
1
|
|
2
|
+
import json
|
3
|
+
|
2
4
|
# This tool implementation knows how to put a question to the graph RAG
|
3
5
|
# service
|
4
6
|
class KnowledgeQueryImpl:
|
@@ -23,3 +25,29 @@ class TextCompletionImpl:
|
|
23
25
|
arguments.get("question")
|
24
26
|
)
|
25
27
|
|
28
|
+
# This tool implementation knows how to do MCP tool invocation. This uses
|
29
|
+
# the mcp-tool service.
|
30
|
+
class McpToolImpl:
|
31
|
+
|
32
|
+
def __init__(self, context, name):
|
33
|
+
self.context = context
|
34
|
+
self.name = name
|
35
|
+
|
36
|
+
async def invoke(self, **arguments):
|
37
|
+
|
38
|
+
client = self.context("mcp-tool-request")
|
39
|
+
|
40
|
+
print(f"MCP tool invocation: {self.name}...", flush=True)
|
41
|
+
output = await client.invoke(
|
42
|
+
name = self.name,
|
43
|
+
parameters = {},
|
44
|
+
)
|
45
|
+
|
46
|
+
print(output)
|
47
|
+
|
48
|
+
if isinstance(output, str):
|
49
|
+
return output
|
50
|
+
else:
|
51
|
+
return json.dumps(output)
|
52
|
+
|
53
|
+
|
@@ -3,6 +3,9 @@ from cassandra.cluster import Cluster
|
|
3
3
|
from cassandra.auth import PlainTextAuthProvider
|
4
4
|
from ssl import SSLContext, PROTOCOL_TLSv1_2
|
5
5
|
|
6
|
+
# Global list to track clusters for cleanup
|
7
|
+
_active_clusters = []
|
8
|
+
|
6
9
|
class TrustGraph:
|
7
10
|
|
8
11
|
def __init__(
|
@@ -24,6 +27,9 @@ class TrustGraph:
|
|
24
27
|
else:
|
25
28
|
self.cluster = Cluster(hosts)
|
26
29
|
self.session = self.cluster.connect()
|
30
|
+
|
31
|
+
# Track this cluster globally
|
32
|
+
_active_clusters.append(self.cluster)
|
27
33
|
|
28
34
|
self.init()
|
29
35
|
|
@@ -119,3 +125,13 @@ class TrustGraph:
|
|
119
125
|
f"""select s as x from {self.table} where s = %s and p = %s and o = %s limit {limit}""",
|
120
126
|
(s, p, o)
|
121
127
|
)
|
128
|
+
|
129
|
+
def close(self):
|
130
|
+
"""Close the Cassandra session and cluster connections properly"""
|
131
|
+
if hasattr(self, 'session') and self.session:
|
132
|
+
self.session.shutdown()
|
133
|
+
if hasattr(self, 'cluster') and self.cluster:
|
134
|
+
self.cluster.shutdown()
|
135
|
+
# Remove from global tracking
|
136
|
+
if self.cluster in _active_clusters:
|
137
|
+
_active_clusters.remove(self.cluster)
|
@@ -0,0 +1,63 @@
|
|
1
|
+
|
2
|
+
"""
|
3
|
+
Embeddings service, applies an embeddings model hosted on a local Ollama.
|
4
|
+
Input is text, output is embeddings vector.
|
5
|
+
"""
|
6
|
+
from ... base import EmbeddingsService
|
7
|
+
|
8
|
+
from ollama import Client
|
9
|
+
import os
|
10
|
+
|
11
|
+
default_ident = "embeddings"
|
12
|
+
|
13
|
+
default_model="mxbai-embed-large"
|
14
|
+
default_ollama = os.getenv("OLLAMA_HOST", 'http://localhost:11434')
|
15
|
+
|
16
|
+
class Processor(EmbeddingsService):
|
17
|
+
|
18
|
+
def __init__(self, **params):
|
19
|
+
|
20
|
+
model = params.get("model", default_model)
|
21
|
+
ollama = params.get("ollama", default_ollama)
|
22
|
+
|
23
|
+
super(Processor, self).__init__(
|
24
|
+
**params | {
|
25
|
+
"ollama": ollama,
|
26
|
+
"model": model
|
27
|
+
}
|
28
|
+
)
|
29
|
+
|
30
|
+
self.client = Client(host=ollama)
|
31
|
+
self.model = model
|
32
|
+
|
33
|
+
async def on_embeddings(self, text):
|
34
|
+
|
35
|
+
embeds = self.client.embed(
|
36
|
+
model = self.model,
|
37
|
+
input = text
|
38
|
+
)
|
39
|
+
|
40
|
+
return embeds.embeddings
|
41
|
+
|
42
|
+
@staticmethod
|
43
|
+
def add_args(parser):
|
44
|
+
|
45
|
+
EmbeddingsService.add_args(parser)
|
46
|
+
|
47
|
+
parser.add_argument(
|
48
|
+
'-m', '--model',
|
49
|
+
default=default_model,
|
50
|
+
help=f'Embeddings model (default: {default_model})'
|
51
|
+
)
|
52
|
+
|
53
|
+
parser.add_argument(
|
54
|
+
'-r', '--ollama',
|
55
|
+
default=default_ollama,
|
56
|
+
help=f'ollama (default: {default_ollama})'
|
57
|
+
)
|
58
|
+
|
59
|
+
def run():
|
60
|
+
|
61
|
+
Processor.launch(default_ident, __doc__)
|
62
|
+
|
63
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "1.1.8"
|
@@ -0,0 +1,68 @@
|
|
1
|
+
|
2
|
+
"""
|
3
|
+
Document embeddings query service. Input is vector, output is an array
|
4
|
+
of chunks
|
5
|
+
"""
|
6
|
+
|
7
|
+
from .... direct.milvus_doc_embeddings import DocVectors
|
8
|
+
from .... schema import DocumentEmbeddingsResponse
|
9
|
+
from .... schema import Error, Value
|
10
|
+
from .... base import DocumentEmbeddingsQueryService
|
11
|
+
|
12
|
+
default_ident = "de-query"
|
13
|
+
default_store_uri = 'http://localhost:19530'
|
14
|
+
|
15
|
+
class Processor(DocumentEmbeddingsQueryService):
|
16
|
+
|
17
|
+
def __init__(self, **params):
|
18
|
+
|
19
|
+
store_uri = params.get("store_uri", default_store_uri)
|
20
|
+
|
21
|
+
super(Processor, self).__init__(
|
22
|
+
**params | {
|
23
|
+
"store_uri": store_uri,
|
24
|
+
}
|
25
|
+
)
|
26
|
+
|
27
|
+
self.vecstore = DocVectors(store_uri)
|
28
|
+
|
29
|
+
async def query_document_embeddings(self, msg):
|
30
|
+
|
31
|
+
try:
|
32
|
+
|
33
|
+
# Handle zero limit case
|
34
|
+
if msg.limit <= 0:
|
35
|
+
return []
|
36
|
+
|
37
|
+
chunks = []
|
38
|
+
|
39
|
+
for vec in msg.vectors:
|
40
|
+
|
41
|
+
resp = self.vecstore.search(vec, limit=msg.limit)
|
42
|
+
|
43
|
+
for r in resp:
|
44
|
+
chunk = r["entity"]["doc"]
|
45
|
+
chunks.append(chunk)
|
46
|
+
|
47
|
+
return chunks
|
48
|
+
|
49
|
+
except Exception as e:
|
50
|
+
|
51
|
+
print(f"Exception: {e}")
|
52
|
+
raise e
|
53
|
+
|
54
|
+
@staticmethod
|
55
|
+
def add_args(parser):
|
56
|
+
|
57
|
+
DocumentEmbeddingsQueryService.add_args(parser)
|
58
|
+
|
59
|
+
parser.add_argument(
|
60
|
+
'-t', '--store-uri',
|
61
|
+
default=default_store_uri,
|
62
|
+
help=f'Milvus store URI (default: {default_store_uri})'
|
63
|
+
)
|
64
|
+
|
65
|
+
def run():
|
66
|
+
|
67
|
+
Processor.launch(default_ident, __doc__)
|
68
|
+
|
@@ -0,0 +1,103 @@
|
|
1
|
+
|
2
|
+
"""
|
3
|
+
Document embeddings query service. Input is vector, output is an array
|
4
|
+
of chunks. Pinecone implementation.
|
5
|
+
"""
|
6
|
+
|
7
|
+
from pinecone import Pinecone, ServerlessSpec
|
8
|
+
from pinecone.grpc import PineconeGRPC, GRPCClientConfig
|
9
|
+
|
10
|
+
import uuid
|
11
|
+
import os
|
12
|
+
|
13
|
+
from .... base import DocumentEmbeddingsQueryService
|
14
|
+
|
15
|
+
default_ident = "de-query"
|
16
|
+
default_api_key = os.getenv("PINECONE_API_KEY", "not-specified")
|
17
|
+
|
18
|
+
class Processor(DocumentEmbeddingsQueryService):
|
19
|
+
|
20
|
+
def __init__(self, **params):
|
21
|
+
|
22
|
+
self.url = params.get("url", None)
|
23
|
+
self.api_key = params.get("api_key", default_api_key)
|
24
|
+
|
25
|
+
if self.api_key is None or self.api_key == "not-specified":
|
26
|
+
raise RuntimeError("Pinecone API key must be specified")
|
27
|
+
|
28
|
+
if self.url:
|
29
|
+
|
30
|
+
self.pinecone = PineconeGRPC(
|
31
|
+
api_key = self.api_key,
|
32
|
+
host = self.url
|
33
|
+
)
|
34
|
+
|
35
|
+
else:
|
36
|
+
|
37
|
+
self.pinecone = Pinecone(api_key = self.api_key)
|
38
|
+
|
39
|
+
super(Processor, self).__init__(
|
40
|
+
**params | {
|
41
|
+
"url": self.url,
|
42
|
+
"api_key": self.api_key,
|
43
|
+
}
|
44
|
+
)
|
45
|
+
|
46
|
+
async def query_document_embeddings(self, msg):
|
47
|
+
|
48
|
+
try:
|
49
|
+
|
50
|
+
# Handle zero limit case
|
51
|
+
if msg.limit <= 0:
|
52
|
+
return []
|
53
|
+
|
54
|
+
chunks = []
|
55
|
+
|
56
|
+
for vec in msg.vectors:
|
57
|
+
|
58
|
+
dim = len(vec)
|
59
|
+
|
60
|
+
index_name = (
|
61
|
+
"d-" + msg.user + "-" + msg.collection + "-" + str(dim)
|
62
|
+
)
|
63
|
+
|
64
|
+
index = self.pinecone.Index(index_name)
|
65
|
+
|
66
|
+
results = index.query(
|
67
|
+
vector=vec,
|
68
|
+
top_k=msg.limit,
|
69
|
+
include_values=False,
|
70
|
+
include_metadata=True
|
71
|
+
)
|
72
|
+
|
73
|
+
for r in results.matches:
|
74
|
+
doc = r.metadata["doc"]
|
75
|
+
chunks.append(doc)
|
76
|
+
|
77
|
+
return chunks
|
78
|
+
|
79
|
+
except Exception as e:
|
80
|
+
|
81
|
+
print(f"Exception: {e}")
|
82
|
+
raise e
|
83
|
+
|
84
|
+
@staticmethod
|
85
|
+
def add_args(parser):
|
86
|
+
|
87
|
+
DocumentEmbeddingsQueryService.add_args(parser)
|
88
|
+
|
89
|
+
parser.add_argument(
|
90
|
+
'-a', '--api-key',
|
91
|
+
default=default_api_key,
|
92
|
+
help='Pinecone API key. (default from PINECONE_API_KEY)'
|
93
|
+
)
|
94
|
+
|
95
|
+
parser.add_argument(
|
96
|
+
'-u', '--url',
|
97
|
+
help='Pinecone URL. If unspecified, serverless is used'
|
98
|
+
)
|
99
|
+
|
100
|
+
def run():
|
101
|
+
|
102
|
+
Processor.launch(default_ident, __doc__)
|
103
|
+
|
@@ -0,0 +1,95 @@
|
|
1
|
+
|
2
|
+
"""
|
3
|
+
Graph embeddings query service. Input is vector, output is list of
|
4
|
+
entities
|
5
|
+
"""
|
6
|
+
|
7
|
+
from .... direct.milvus_graph_embeddings import EntityVectors
|
8
|
+
from .... schema import GraphEmbeddingsResponse
|
9
|
+
from .... schema import Error, Value
|
10
|
+
from .... base import GraphEmbeddingsQueryService
|
11
|
+
|
12
|
+
default_ident = "ge-query"
|
13
|
+
default_store_uri = 'http://localhost:19530'
|
14
|
+
|
15
|
+
class Processor(GraphEmbeddingsQueryService):
|
16
|
+
|
17
|
+
def __init__(self, **params):
|
18
|
+
|
19
|
+
store_uri = params.get("store_uri", default_store_uri)
|
20
|
+
|
21
|
+
super(Processor, self).__init__(
|
22
|
+
**params | {
|
23
|
+
"store_uri": store_uri,
|
24
|
+
}
|
25
|
+
)
|
26
|
+
|
27
|
+
self.vecstore = EntityVectors(store_uri)
|
28
|
+
|
29
|
+
def create_value(self, ent):
|
30
|
+
if ent.startswith("http://") or ent.startswith("https://"):
|
31
|
+
return Value(value=ent, is_uri=True)
|
32
|
+
else:
|
33
|
+
return Value(value=ent, is_uri=False)
|
34
|
+
|
35
|
+
async def query_graph_embeddings(self, msg):
|
36
|
+
|
37
|
+
try:
|
38
|
+
|
39
|
+
entity_set = set()
|
40
|
+
entities = []
|
41
|
+
|
42
|
+
# Handle zero limit case
|
43
|
+
if msg.limit <= 0:
|
44
|
+
return []
|
45
|
+
|
46
|
+
for vec in msg.vectors:
|
47
|
+
|
48
|
+
resp = self.vecstore.search(vec, limit=msg.limit * 2)
|
49
|
+
|
50
|
+
for r in resp:
|
51
|
+
ent = r["entity"]["entity"]
|
52
|
+
|
53
|
+
# De-dupe entities
|
54
|
+
if ent not in entity_set:
|
55
|
+
entity_set.add(ent)
|
56
|
+
entities.append(ent)
|
57
|
+
|
58
|
+
# Keep adding entities until limit
|
59
|
+
if len(entity_set) >= msg.limit: break
|
60
|
+
|
61
|
+
# Keep adding entities until limit
|
62
|
+
if len(entity_set) >= msg.limit: break
|
63
|
+
|
64
|
+
ents2 = []
|
65
|
+
|
66
|
+
for ent in entities:
|
67
|
+
ents2.append(self.create_value(ent))
|
68
|
+
|
69
|
+
entities = ents2
|
70
|
+
|
71
|
+
print("Send response...", flush=True)
|
72
|
+
return entities
|
73
|
+
|
74
|
+
print("Done.", flush=True)
|
75
|
+
|
76
|
+
except Exception as e:
|
77
|
+
|
78
|
+
print(f"Exception: {e}")
|
79
|
+
raise e
|
80
|
+
|
81
|
+
@staticmethod
|
82
|
+
def add_args(parser):
|
83
|
+
|
84
|
+
GraphEmbeddingsQueryService.add_args(parser)
|
85
|
+
|
86
|
+
parser.add_argument(
|
87
|
+
'-t', '--store-uri',
|
88
|
+
default=default_store_uri,
|
89
|
+
help=f'Milvus store URI (default: {default_store_uri})'
|
90
|
+
)
|
91
|
+
|
92
|
+
def run():
|
93
|
+
|
94
|
+
Processor.launch(default_ident, __doc__)
|
95
|
+
|
@@ -10,30 +10,23 @@ from pinecone.grpc import PineconeGRPC, GRPCClientConfig
|
|
10
10
|
import uuid
|
11
11
|
import os
|
12
12
|
|
13
|
-
from .... schema import
|
13
|
+
from .... schema import GraphEmbeddingsResponse
|
14
14
|
from .... schema import Error, Value
|
15
|
-
from ....
|
16
|
-
from .... schema import graph_embeddings_response_queue
|
17
|
-
from .... base import ConsumerProducer
|
15
|
+
from .... base import GraphEmbeddingsQueryService
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
default_input_queue = graph_embeddings_request_queue
|
22
|
-
default_output_queue = graph_embeddings_response_queue
|
23
|
-
default_subscriber = module
|
17
|
+
default_ident = "ge-query"
|
24
18
|
default_api_key = os.getenv("PINECONE_API_KEY", "not-specified")
|
25
19
|
|
26
|
-
class Processor(
|
20
|
+
class Processor(GraphEmbeddingsQueryService):
|
27
21
|
|
28
22
|
def __init__(self, **params):
|
29
23
|
|
30
|
-
input_queue = params.get("input_queue", default_input_queue)
|
31
|
-
output_queue = params.get("output_queue", default_output_queue)
|
32
|
-
subscriber = params.get("subscriber", default_subscriber)
|
33
|
-
|
34
24
|
self.url = params.get("url", None)
|
35
25
|
self.api_key = params.get("api_key", default_api_key)
|
36
26
|
|
27
|
+
if self.api_key is None or self.api_key == "not-specified":
|
28
|
+
raise RuntimeError("Pinecone API key must be specified")
|
29
|
+
|
37
30
|
if self.url:
|
38
31
|
|
39
32
|
self.pinecone = PineconeGRPC(
|
@@ -47,12 +40,8 @@ class Processor(ConsumerProducer):
|
|
47
40
|
|
48
41
|
super(Processor, self).__init__(
|
49
42
|
**params | {
|
50
|
-
"input_queue": input_queue,
|
51
|
-
"output_queue": output_queue,
|
52
|
-
"subscriber": subscriber,
|
53
|
-
"input_schema": GraphEmbeddingsRequest,
|
54
|
-
"output_schema": GraphEmbeddingsResponse,
|
55
43
|
"url": self.url,
|
44
|
+
"api_key": self.api_key,
|
56
45
|
}
|
57
46
|
)
|
58
47
|
|
@@ -62,26 +51,23 @@ class Processor(ConsumerProducer):
|
|
62
51
|
else:
|
63
52
|
return Value(value=ent, is_uri=False)
|
64
53
|
|
65
|
-
async def
|
54
|
+
async def query_graph_embeddings(self, msg):
|
66
55
|
|
67
56
|
try:
|
68
57
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
id = msg.properties()["id"]
|
73
|
-
|
74
|
-
print(f"Handling input {id}...", flush=True)
|
58
|
+
# Handle zero limit case
|
59
|
+
if msg.limit <= 0:
|
60
|
+
return []
|
75
61
|
|
76
62
|
entity_set = set()
|
77
63
|
entities = []
|
78
64
|
|
79
|
-
for vec in
|
65
|
+
for vec in msg.vectors:
|
80
66
|
|
81
67
|
dim = len(vec)
|
82
68
|
|
83
69
|
index_name = (
|
84
|
-
"t-" +
|
70
|
+
"t-" + msg.user + "-" + msg.collection + "-" + str(dim)
|
85
71
|
)
|
86
72
|
|
87
73
|
index = self.pinecone.Index(index_name)
|
@@ -89,9 +75,8 @@ class Processor(ConsumerProducer):
|
|
89
75
|
# Heuristic hack, get (2*limit), so that we have more chance
|
90
76
|
# of getting (limit) entities
|
91
77
|
results = index.query(
|
92
|
-
namespace=v.collection,
|
93
78
|
vector=vec,
|
94
|
-
top_k=
|
79
|
+
top_k=msg.limit * 2,
|
95
80
|
include_values=False,
|
96
81
|
include_metadata=True
|
97
82
|
)
|
@@ -106,10 +91,10 @@ class Processor(ConsumerProducer):
|
|
106
91
|
entities.append(ent)
|
107
92
|
|
108
93
|
# Keep adding entities until limit
|
109
|
-
if len(entity_set) >=
|
94
|
+
if len(entity_set) >= msg.limit: break
|
110
95
|
|
111
96
|
# Keep adding entities until limit
|
112
|
-
if len(entity_set) >=
|
97
|
+
if len(entity_set) >= msg.limit: break
|
113
98
|
|
114
99
|
ents2 = []
|
115
100
|
|
@@ -118,37 +103,17 @@ class Processor(ConsumerProducer):
|
|
118
103
|
|
119
104
|
entities = ents2
|
120
105
|
|
121
|
-
|
122
|
-
r = GraphEmbeddingsResponse(entities=entities, error=None)
|
123
|
-
await self.send(r, properties={"id": id})
|
124
|
-
|
125
|
-
print("Done.", flush=True)
|
106
|
+
return entities
|
126
107
|
|
127
108
|
except Exception as e:
|
128
109
|
|
129
110
|
print(f"Exception: {e}")
|
130
|
-
|
131
|
-
print("Send error response...", flush=True)
|
132
|
-
|
133
|
-
r = GraphEmbeddingsResponse(
|
134
|
-
error=Error(
|
135
|
-
type = "llm-error",
|
136
|
-
message = str(e),
|
137
|
-
),
|
138
|
-
entities=None,
|
139
|
-
)
|
140
|
-
|
141
|
-
await self.send(r, properties={"id": id})
|
142
|
-
|
143
|
-
self.consumer.acknowledge(msg)
|
111
|
+
raise e
|
144
112
|
|
145
113
|
@staticmethod
|
146
114
|
def add_args(parser):
|
147
115
|
|
148
|
-
|
149
|
-
parser, default_input_queue, default_subscriber,
|
150
|
-
default_output_queue,
|
151
|
-
)
|
116
|
+
GraphEmbeddingsQueryService.add_args(parser)
|
152
117
|
|
153
118
|
parser.add_argument(
|
154
119
|
'-a', '--api-key',
|
@@ -163,5 +128,5 @@ class Processor(ConsumerProducer):
|
|
163
128
|
|
164
129
|
def run():
|
165
130
|
|
166
|
-
Processor.launch(
|
131
|
+
Processor.launch(default_ident, __doc__)
|
167
132
|
|