trustgraph-flow 1.3.7__tar.gz → 1.3.9__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.3.7 → trustgraph_flow-1.3.9}/PKG-INFO +1 -1
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/react/service.py +15 -2
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/react/tools.py +37 -0
- trustgraph_flow-1.3.9/trustgraph/flow_version.py +1 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/nlp_query/service.py +28 -14
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/structured_query/service.py +6 -6
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph_flow.egg-info/PKG-INFO +1 -1
- trustgraph_flow-1.3.7/trustgraph/flow_version.py +0 -1
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/README.md +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/pyproject.toml +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/setup.cfg +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/mcp_tool/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/mcp_tool/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/mcp_tool/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/react/types.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/agent/tool_filter.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/config/service/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/config/service/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/config/service/config.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/config/service/flow.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/config/service/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/cores/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/cores/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/cores/knowledge.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/cores/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/direct/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/external/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/agent/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/agent/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/agent/extract.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/objects/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/objects/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/objects/processor.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/auth.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/config/receiver.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/agent.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/config.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/core_export.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/core_import.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/document_load.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/document_rag.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/embeddings.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/entity_contexts_export.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/entity_contexts_import.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/flow.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/knowledge.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/librarian.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/manager.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/mcp_tool.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/mux.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/nlp_query.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/objects_query.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/prompt.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/requestor.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/sender.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/serialize.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/streamer.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/structured_query.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/text_completion.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/text_load.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/triples_export.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/triples_import.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/triples_query.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/constant_endpoint.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/manager.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/metrics.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/socket.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/stream_endpoint.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/variable_endpoint.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/running.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/unused/dbpedia.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/unused/encyclopedia.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/unused/internet_search.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/librarian/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/metering/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/metering/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/metering/counter.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/tgi/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/tgi/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/tgi/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/vllm/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/vllm/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/vllm/llm.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/processing/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/processing/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/processing/processing.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/prompt/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/prompt/template/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/prompt/template/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/prompt/template/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/objects/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/objects/cassandra/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/objects/cassandra/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/objects/cassandra/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/document_rag/document_rag.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/graph_rag/graph_rag.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/nlp_query/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/nlp_query/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/structured_query/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/structured_query/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/rev_gateway/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/rev_gateway/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/rev_gateway/dispatcher.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/rev_gateway/service.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/knowledge/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/knowledge/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/knowledge/store.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/objects/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/objects/cassandra/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/objects/cassandra/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/objects/cassandra/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/tables/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/tables/config.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/tables/knowledge.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/tables/library.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/template/__init__.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/template/prompt_manager.py +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph_flow.egg-info/entry_points.txt +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph_flow.egg-info/requires.txt +0 -0
- {trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph_flow.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.9
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
@@ -12,11 +12,11 @@ import logging
|
|
12
12
|
logger = logging.getLogger(__name__)
|
13
13
|
|
14
14
|
from ... base import AgentService, TextCompletionClientSpec, PromptClientSpec
|
15
|
-
from ... base import GraphRagClientSpec, ToolClientSpec
|
15
|
+
from ... base import GraphRagClientSpec, ToolClientSpec, StructuredQueryClientSpec
|
16
16
|
|
17
17
|
from ... schema import AgentRequest, AgentResponse, AgentStep, Error
|
18
18
|
|
19
|
-
from . tools import KnowledgeQueryImpl, TextCompletionImpl, McpToolImpl, PromptImpl
|
19
|
+
from . tools import KnowledgeQueryImpl, TextCompletionImpl, McpToolImpl, PromptImpl, StructuredQueryImpl
|
20
20
|
from . agent_manager import AgentManager
|
21
21
|
from ..tool_filter import validate_tool_config, filter_tools_by_group_and_state, get_next_state
|
22
22
|
|
@@ -80,6 +80,13 @@ class Processor(AgentService):
|
|
80
80
|
)
|
81
81
|
)
|
82
82
|
|
83
|
+
self.register_specification(
|
84
|
+
StructuredQueryClientSpec(
|
85
|
+
request_name = "structured-query-request",
|
86
|
+
response_name = "structured-query-response",
|
87
|
+
)
|
88
|
+
)
|
89
|
+
|
83
90
|
async def on_tools_config(self, config, version):
|
84
91
|
|
85
92
|
logger.info(f"Loading configuration version {version}")
|
@@ -138,6 +145,12 @@ class Processor(AgentService):
|
|
138
145
|
template_id=data.get("template"),
|
139
146
|
arguments=arguments
|
140
147
|
)
|
148
|
+
elif impl_id == "structured-query":
|
149
|
+
impl = functools.partial(
|
150
|
+
StructuredQueryImpl,
|
151
|
+
collection=data.get("collection")
|
152
|
+
)
|
153
|
+
arguments = StructuredQueryImpl.get_arguments()
|
141
154
|
else:
|
142
155
|
raise RuntimeError(
|
143
156
|
f"Tool type {impl_id} not known"
|
@@ -85,6 +85,43 @@ class McpToolImpl:
|
|
85
85
|
return json.dumps(output)
|
86
86
|
|
87
87
|
|
88
|
+
# This tool implementation knows how to query structured data using natural language
|
89
|
+
class StructuredQueryImpl:
|
90
|
+
def __init__(self, context, collection=None):
|
91
|
+
self.context = context
|
92
|
+
self.collection = collection # For multi-tenant scenarios
|
93
|
+
|
94
|
+
@staticmethod
|
95
|
+
def get_arguments():
|
96
|
+
return [
|
97
|
+
Argument(
|
98
|
+
name="question",
|
99
|
+
type="string",
|
100
|
+
description="Natural language question about structured data (tables, databases, etc.)"
|
101
|
+
)
|
102
|
+
]
|
103
|
+
|
104
|
+
async def invoke(self, **arguments):
|
105
|
+
client = self.context("structured-query-request")
|
106
|
+
logger.debug("Structured query question...")
|
107
|
+
|
108
|
+
result = await client.structured_query(
|
109
|
+
arguments.get("question")
|
110
|
+
)
|
111
|
+
|
112
|
+
# Format the result for the agent
|
113
|
+
if isinstance(result, dict):
|
114
|
+
if result.get("error"):
|
115
|
+
return f"Error: {result['error']['message']}"
|
116
|
+
elif result.get("data"):
|
117
|
+
# Pretty format JSON data for agent consumption
|
118
|
+
return json.dumps(result["data"], indent=2)
|
119
|
+
else:
|
120
|
+
return "No data returned"
|
121
|
+
else:
|
122
|
+
return str(result)
|
123
|
+
|
124
|
+
|
88
125
|
# This tool implementation knows how to execute prompt templates
|
89
126
|
class PromptImpl:
|
90
127
|
def __init__(self, context, template_id, arguments=None):
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "1.3.9"
|
@@ -122,7 +122,7 @@ class Processor(FlowProcessor):
|
|
122
122
|
|
123
123
|
logger.info(f"Schema configuration loaded: {len(self.schemas)} schemas")
|
124
124
|
|
125
|
-
async def phase1_select_schemas(self, question: str) -> List[str]:
|
125
|
+
async def phase1_select_schemas(self, question: str, flow) -> List[str]:
|
126
126
|
"""Phase 1: Use prompt service to select relevant schemas for the question"""
|
127
127
|
logger.info("Starting Phase 1: Schema selection")
|
128
128
|
|
@@ -144,20 +144,27 @@ class Processor(FlowProcessor):
|
|
144
144
|
}
|
145
145
|
|
146
146
|
# Call prompt service for schema selection
|
147
|
+
# Convert variables to JSON-encoded terms
|
148
|
+
terms = {k: json.dumps(v) for k, v in variables.items()}
|
147
149
|
prompt_request = PromptRequest(
|
148
|
-
|
149
|
-
|
150
|
+
id=self.schema_selection_template,
|
151
|
+
terms=terms
|
150
152
|
)
|
151
153
|
|
152
154
|
try:
|
153
|
-
response = await
|
155
|
+
response = await flow("prompt-request").request(prompt_request)
|
154
156
|
|
155
157
|
if response.error is not None:
|
156
158
|
raise Exception(f"Prompt service error: {response.error}")
|
157
159
|
|
158
160
|
# Parse the response to get selected schema names
|
159
|
-
#
|
160
|
-
|
161
|
+
# Response could be in either text or object field
|
162
|
+
response_data = response.text if response.text else response.object
|
163
|
+
if response_data is None:
|
164
|
+
raise Exception("Prompt service returned empty response")
|
165
|
+
|
166
|
+
# Parse JSON array of schema names
|
167
|
+
selected_schemas = json.loads(response_data)
|
161
168
|
|
162
169
|
logger.info(f"Phase 1 selected schemas: {selected_schemas}")
|
163
170
|
return selected_schemas
|
@@ -166,7 +173,7 @@ class Processor(FlowProcessor):
|
|
166
173
|
logger.error(f"Phase 1 schema selection failed: {e}")
|
167
174
|
raise
|
168
175
|
|
169
|
-
async def phase2_generate_graphql(self, question: str, selected_schemas: List[str]) -> Dict[str, Any]:
|
176
|
+
async def phase2_generate_graphql(self, question: str, selected_schemas: List[str], flow) -> Dict[str, Any]:
|
170
177
|
"""Phase 2: Generate GraphQL query using selected schemas"""
|
171
178
|
logger.info(f"Starting Phase 2: GraphQL generation for schemas: {selected_schemas}")
|
172
179
|
|
@@ -200,20 +207,27 @@ class Processor(FlowProcessor):
|
|
200
207
|
}
|
201
208
|
|
202
209
|
# Call prompt service for GraphQL generation
|
210
|
+
# Convert variables to JSON-encoded terms
|
211
|
+
terms = {k: json.dumps(v) for k, v in variables.items()}
|
203
212
|
prompt_request = PromptRequest(
|
204
|
-
|
205
|
-
|
213
|
+
id=self.graphql_generation_template,
|
214
|
+
terms=terms
|
206
215
|
)
|
207
216
|
|
208
217
|
try:
|
209
|
-
response = await
|
218
|
+
response = await flow("prompt-request").request(prompt_request)
|
210
219
|
|
211
220
|
if response.error is not None:
|
212
221
|
raise Exception(f"Prompt service error: {response.error}")
|
213
222
|
|
214
223
|
# Parse the response to get GraphQL query and variables
|
215
|
-
#
|
216
|
-
|
224
|
+
# Response could be in either text or object field
|
225
|
+
response_data = response.text if response.text else response.object
|
226
|
+
if response_data is None:
|
227
|
+
raise Exception("Prompt service returned empty response")
|
228
|
+
|
229
|
+
# Parse JSON with "query" and "variables" fields
|
230
|
+
result = json.loads(response_data)
|
217
231
|
|
218
232
|
logger.info(f"Phase 2 generated GraphQL: {result.get('query', '')[:100]}...")
|
219
233
|
return result
|
@@ -234,10 +248,10 @@ class Processor(FlowProcessor):
|
|
234
248
|
logger.info(f"Handling NLP query request {id}: {request.question[:100]}...")
|
235
249
|
|
236
250
|
# Phase 1: Select relevant schemas
|
237
|
-
selected_schemas = await self.phase1_select_schemas(request.question)
|
251
|
+
selected_schemas = await self.phase1_select_schemas(request.question, flow)
|
238
252
|
|
239
253
|
# Phase 2: Generate GraphQL query
|
240
|
-
graphql_result = await self.phase2_generate_graphql(request.question, selected_schemas)
|
254
|
+
graphql_result = await self.phase2_generate_graphql(request.question, selected_schemas, flow)
|
241
255
|
|
242
256
|
# Create response
|
243
257
|
response = QuestionToStructuredQueryResponse(
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/retrieval/structured_query/service.py
RENAMED
@@ -87,7 +87,7 @@ class Processor(FlowProcessor):
|
|
87
87
|
max_results=100 # Default limit
|
88
88
|
)
|
89
89
|
|
90
|
-
nlp_response = await
|
90
|
+
nlp_response = await flow("nlp-query-request").request(nlp_request)
|
91
91
|
|
92
92
|
if nlp_response.error is not None:
|
93
93
|
raise Exception(f"NLP query service error: {nlp_response.error.message}")
|
@@ -111,17 +111,17 @@ class Processor(FlowProcessor):
|
|
111
111
|
else:
|
112
112
|
variables_as_strings[key] = str(value)
|
113
113
|
|
114
|
-
#
|
115
|
-
#
|
114
|
+
# Use standard TrustGraph user/collection values
|
115
|
+
# These should eventually come from authentication/context
|
116
116
|
objects_request = ObjectsQueryRequest(
|
117
|
-
user="
|
118
|
-
collection="default", #
|
117
|
+
user="trustgraph", # Standard TrustGraph user
|
118
|
+
collection="default", # Standard default collection
|
119
119
|
query=nlp_response.graphql_query,
|
120
120
|
variables=variables_as_strings,
|
121
121
|
operation_name=None
|
122
122
|
)
|
123
123
|
|
124
|
-
objects_response = await
|
124
|
+
objects_response = await flow("objects-query-request").request(objects_request)
|
125
125
|
|
126
126
|
if objects_response.error is not None:
|
127
127
|
raise Exception(f"Objects query service error: {objects_response.error.message}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.9
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "1.3.7"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/decoding/mistral_ocr/processor.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/direct/milvus_graph_embeddings.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/direct/milvus_object_embeddings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/fastembed/processor.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/graph_embeddings/__init__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/graph_embeddings/__main__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/embeddings/graph_embeddings/embeddings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/definitions/__init__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/definitions/__main__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/definitions/extract.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/relationships/__init__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/relationships/__main__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/extract/kg/relationships/extract.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/document_load.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/objects_query.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/structured_query.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/text_completion.py
RENAMED
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/triples_export.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/triples_import.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/dispatch/triples_query.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/constant_endpoint.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/stream_endpoint.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/endpoint/variable_endpoint.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/gateway/unused/internet_search.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/__init__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure/__init__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure/__main__.py
RENAMED
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure/llm.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{trustgraph_flow-1.3.7 → trustgraph_flow-1.3.9}/trustgraph/model/text_completion/azure_openai/llm.py
RENAMED
File without changes
|