trustgraph-flow 0.16.5__tar.gz → 0.16.7__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.
Files changed (217) hide show
  1. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/PKG-INFO +2 -2
  2. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/api/gateway/service.py +293 -25
  3. trustgraph-flow-0.16.7/trustgraph/flow_version.py +1 -0
  4. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph_flow.egg-info/PKG-INFO +2 -2
  5. trustgraph-flow-0.16.5/trustgraph/flow_version.py +0 -1
  6. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/README.md +0 -0
  7. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/agent-manager-react +0 -0
  8. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/api-gateway +0 -0
  9. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/chunker-recursive +0 -0
  10. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/chunker-token +0 -0
  11. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/de-query-milvus +0 -0
  12. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/de-query-qdrant +0 -0
  13. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/de-write-milvus +0 -0
  14. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/de-write-qdrant +0 -0
  15. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/document-rag +0 -0
  16. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/embeddings-ollama +0 -0
  17. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/embeddings-vectorize +0 -0
  18. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/ge-query-milvus +0 -0
  19. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/ge-query-pinecone +0 -0
  20. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/ge-query-qdrant +0 -0
  21. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/ge-write-milvus +0 -0
  22. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/ge-write-pinecone +0 -0
  23. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/ge-write-qdrant +0 -0
  24. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/graph-rag +0 -0
  25. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/kg-extract-definitions +0 -0
  26. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/kg-extract-relationships +0 -0
  27. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/kg-extract-topics +0 -0
  28. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/metering +0 -0
  29. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/object-extract-row +0 -0
  30. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/oe-write-milvus +0 -0
  31. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/pdf-decoder +0 -0
  32. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/prompt-generic +0 -0
  33. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/prompt-template +0 -0
  34. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/rows-write-cassandra +0 -0
  35. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/run-processing +0 -0
  36. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/text-completion-azure +0 -0
  37. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/text-completion-azure-openai +0 -0
  38. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/text-completion-claude +0 -0
  39. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/text-completion-cohere +0 -0
  40. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/text-completion-googleaistudio +0 -0
  41. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/text-completion-llamafile +0 -0
  42. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/text-completion-ollama +0 -0
  43. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/text-completion-openai +0 -0
  44. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/triples-query-cassandra +0 -0
  45. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/triples-query-neo4j +0 -0
  46. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/triples-write-cassandra +0 -0
  47. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/scripts/triples-write-neo4j +0 -0
  48. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/setup.cfg +0 -0
  49. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/setup.py +0 -0
  50. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/__init__.py +0 -0
  51. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/agent/__init__.py +0 -0
  52. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/agent/react/__init__.py +0 -0
  53. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/agent/react/__main__.py +0 -0
  54. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/agent/react/agent_manager.py +0 -0
  55. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/agent/react/service.py +0 -0
  56. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/agent/react/tools.py +0 -0
  57. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/agent/react/types.py +0 -0
  58. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/api/__init__.py +0 -0
  59. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/api/gateway/__init__.py +0 -0
  60. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/api/gateway/__main__.py +0 -0
  61. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/chunking/__init__.py +0 -0
  62. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/chunking/recursive/__init__.py +0 -0
  63. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/chunking/recursive/__main__.py +0 -0
  64. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/chunking/recursive/chunker.py +0 -0
  65. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/chunking/token/__init__.py +0 -0
  66. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/chunking/token/__main__.py +0 -0
  67. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/chunking/token/chunker.py +0 -0
  68. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/decoding/__init__.py +0 -0
  69. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/decoding/pdf/__init__.py +0 -0
  70. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/decoding/pdf/__main__.py +0 -0
  71. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
  72. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/direct/__init__.py +0 -0
  73. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/direct/cassandra.py +0 -0
  74. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
  75. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
  76. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/direct/milvus_object_embeddings.py +0 -0
  77. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/document_rag.py +0 -0
  78. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/embeddings/__init__.py +0 -0
  79. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/embeddings/ollama/__init__.py +0 -0
  80. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/embeddings/ollama/__main__.py +0 -0
  81. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/embeddings/ollama/processor.py +0 -0
  82. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/embeddings/vectorize/__init__.py +0 -0
  83. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/embeddings/vectorize/__main__.py +0 -0
  84. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/embeddings/vectorize/vectorize.py +0 -0
  85. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/__init__.py +0 -0
  86. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/__init__.py +0 -0
  87. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/definitions/__init__.py +0 -0
  88. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/definitions/__main__.py +0 -0
  89. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/definitions/extract.py +0 -0
  90. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/relationships/__init__.py +0 -0
  91. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/relationships/__main__.py +0 -0
  92. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/relationships/extract.py +0 -0
  93. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/topics/__init__.py +0 -0
  94. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/topics/__main__.py +0 -0
  95. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/kg/topics/extract.py +0 -0
  96. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/object/__init__.py +0 -0
  97. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/object/row/__init__.py +0 -0
  98. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/object/row/__main__.py +0 -0
  99. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/extract/object/row/extract.py +0 -0
  100. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/graph_rag.py +0 -0
  101. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/metering/__init__.py +0 -0
  102. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/metering/__main__.py +0 -0
  103. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/metering/counter.py +0 -0
  104. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/metering/pricelist.py +0 -0
  105. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/__init__.py +0 -0
  106. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/__init__.py +0 -0
  107. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/generic/__init__.py +0 -0
  108. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/generic/__main__.py +0 -0
  109. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/generic/prompts.py +0 -0
  110. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/generic/service.py +0 -0
  111. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/template/__init__.py +0 -0
  112. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/template/__main__.py +0 -0
  113. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
  114. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/prompt/template/service.py +0 -0
  115. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/__init__.py +0 -0
  116. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/azure/__init__.py +0 -0
  117. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/azure/__main__.py +0 -0
  118. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/azure/llm.py +0 -0
  119. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
  120. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
  121. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
  122. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/claude/__init__.py +0 -0
  123. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/claude/__main__.py +0 -0
  124. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/claude/llm.py +0 -0
  125. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
  126. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
  127. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/cohere/llm.py +0 -0
  128. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
  129. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
  130. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
  131. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
  132. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
  133. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
  134. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
  135. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
  136. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/ollama/llm.py +0 -0
  137. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/openai/__init__.py +0 -0
  138. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/openai/__main__.py +0 -0
  139. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/model/text_completion/openai/llm.py +0 -0
  140. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/processing/__init__.py +0 -0
  141. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/processing/__main__.py +0 -0
  142. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/processing/processing.py +0 -0
  143. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/__init__.py +0 -0
  144. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/__init__.py +0 -0
  145. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
  146. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
  147. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
  148. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
  149. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
  150. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
  151. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
  152. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
  153. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
  154. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/__init__.py +0 -0
  155. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
  156. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
  157. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
  158. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
  159. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
  160. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
  161. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
  162. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
  163. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
  164. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/triples/__init__.py +0 -0
  165. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/triples/cassandra/__init__.py +0 -0
  166. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/triples/cassandra/__main__.py +0 -0
  167. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/triples/cassandra/service.py +0 -0
  168. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/triples/neo4j/__init__.py +0 -0
  169. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/triples/neo4j/__main__.py +0 -0
  170. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/query/triples/neo4j/service.py +0 -0
  171. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/retrieval/__init__.py +0 -0
  172. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/retrieval/document_rag/__init__.py +0 -0
  173. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/retrieval/document_rag/__main__.py +0 -0
  174. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/retrieval/document_rag/rag.py +0 -0
  175. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
  176. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
  177. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/retrieval/graph_rag/rag.py +0 -0
  178. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/__init__.py +0 -0
  179. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
  180. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
  181. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
  182. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
  183. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
  184. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
  185. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
  186. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
  187. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
  188. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
  189. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
  190. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
  191. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
  192. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
  193. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
  194. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
  195. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
  196. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
  197. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
  198. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
  199. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/object_embeddings/__init__.py +0 -0
  200. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
  201. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
  202. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
  203. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/rows/__init__.py +0 -0
  204. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
  205. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
  206. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/rows/cassandra/write.py +0 -0
  207. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/triples/__init__.py +0 -0
  208. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
  209. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
  210. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/triples/cassandra/write.py +0 -0
  211. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
  212. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
  213. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph/storage/triples/neo4j/write.py +0 -0
  214. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
  215. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
  216. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph_flow.egg-info/requires.txt +0 -0
  217. {trustgraph-flow-0.16.5 → trustgraph-flow-0.16.7}/trustgraph_flow.egg-info/top_level.txt +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-flow
3
- Version: 0.16.5
3
+ Version: 0.16.7
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
6
  Author: trustgraph.ai
7
7
  Author-email: security@trustgraph.ai
8
8
  License: UNKNOWN
9
- Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.16.5.tar.gz
9
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.16.7.tar.gz
10
10
  Platform: UNKNOWN
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
@@ -14,7 +14,7 @@ module = ".".join(__name__.split(".")[1:-1])
14
14
 
15
15
  import asyncio
16
16
  import argparse
17
- from aiohttp import web
17
+ from aiohttp import web, WSMsgType
18
18
  import json
19
19
  import logging
20
20
  import uuid
@@ -47,9 +47,13 @@ from ... schema import GraphRagQuery, GraphRagResponse
47
47
  from ... schema import graph_rag_request_queue
48
48
  from ... schema import graph_rag_response_queue
49
49
 
50
- from ... schema import TriplesQueryRequest, TriplesQueryResponse
50
+ from ... schema import TriplesQueryRequest, TriplesQueryResponse, Triples
51
51
  from ... schema import triples_request_queue
52
52
  from ... schema import triples_response_queue
53
+ from ... schema import triples_store_queue
54
+
55
+ from ... schema import GraphEmbeddings
56
+ from ... schema import graph_embeddings_store_queue
53
57
 
54
58
  from ... schema import AgentRequest, AgentResponse
55
59
  from ... schema import agent_request_queue
@@ -69,10 +73,7 @@ default_timeout = 600
69
73
  default_port = 8088
70
74
 
71
75
  def to_value(x):
72
- if x.startswith("http:") or x.startswith("https:"):
73
- return Value(value=x, is_uri=True)
74
- else:
75
- return Value(value=x, is_uri=False)
76
+ return Value(value=x["v"], is_uri=x["e"])
76
77
 
77
78
  def to_subgraph(x):
78
79
  return [
@@ -84,6 +85,11 @@ def to_subgraph(x):
84
85
  for t in x
85
86
  ]
86
87
 
88
+ class Running:
89
+ def __init__(self): self.running = True
90
+ def get(self): return self.running
91
+ def stop(self): self.running = False
92
+
87
93
  class Publisher:
88
94
 
89
95
  def __init__(self, pulsar_host, topic, schema=None, max_size=10,
@@ -132,6 +138,7 @@ class Subscriber:
132
138
  self.consumer_name = consumer_name
133
139
  self.schema = schema
134
140
  self.q = {}
141
+ self.full = {}
135
142
 
136
143
  async def run(self):
137
144
  while True:
@@ -145,10 +152,22 @@ class Subscriber:
145
152
  ) as consumer:
146
153
  while True:
147
154
  msg = await consumer.receive()
148
- id = msg.properties()["id"]
155
+
156
+ # Acknowledge successful reception of the message
157
+ await consumer.acknowledge(msg)
158
+
159
+ try:
160
+ id = msg.properties()["id"]
161
+ except:
162
+ id = None
163
+
149
164
  value = msg.value()
150
165
  if id in self.q:
151
166
  await self.q[id].put(value)
167
+
168
+ for q in self.full.values():
169
+ await q.put(value)
170
+
152
171
  except Exception as e:
153
172
  print("Exception:", e, flush=True)
154
173
 
@@ -164,6 +183,57 @@ class Subscriber:
164
183
  if id in self.q:
165
184
  del self.q[id]
166
185
 
186
+ async def subscribe_all(self, id):
187
+ q = asyncio.Queue()
188
+ self.full[id] = q
189
+ return q
190
+
191
+ async def unsubscribe_all(self, id):
192
+ if id in self.full:
193
+ del self.full[id]
194
+
195
+ def serialize_value(v):
196
+ return {
197
+ "v": v.value,
198
+ "e": v.is_uri,
199
+ }
200
+
201
+ def serialize_triple(t):
202
+ return {
203
+ "s": serialize_value(t.s),
204
+ "p": serialize_value(t.p),
205
+ "o": serialize_value(t.o)
206
+ }
207
+
208
+ def serialize_subgraph(sg):
209
+ return [
210
+ serialize_triple(t)
211
+ for t in sg
212
+ ]
213
+
214
+ def serialize_triples(message):
215
+ return {
216
+ "metadata": {
217
+ "id": message.metadata.id,
218
+ "metadata": serialize_subgraph(message.metadata.metadata),
219
+ "user": message.metadata.user,
220
+ "collection": message.metadata.collection,
221
+ },
222
+ "triples": serialize_subgraph(message.triples),
223
+ }
224
+
225
+ def serialize_graph_embeddings(message):
226
+ return {
227
+ "metadata": {
228
+ "id": message.metadata.id,
229
+ "metadata": serialize_subgraph(message.metadata.metadata),
230
+ "user": message.metadata.user,
231
+ "collection": message.metadata.collection,
232
+ },
233
+ "vectors": message.vectors,
234
+ "entity": message.entity.value,
235
+ }
236
+
167
237
  class Api:
168
238
 
169
239
  def __init__(self, **config):
@@ -243,6 +313,28 @@ class Api:
243
313
  JsonSchema(EmbeddingsResponse)
244
314
  )
245
315
 
316
+ self.triples_tap = Subscriber(
317
+ self.pulsar_host, triples_store_queue,
318
+ "api-gateway", "api-gateway",
319
+ schema=JsonSchema(Triples)
320
+ )
321
+
322
+ self.triples_pub = Publisher(
323
+ self.pulsar_host, triples_store_queue,
324
+ schema=JsonSchema(Triples)
325
+ )
326
+
327
+ self.graph_embeddings_tap = Subscriber(
328
+ self.pulsar_host, graph_embeddings_store_queue,
329
+ "api-gateway", "api-gateway",
330
+ schema=JsonSchema(GraphEmbeddings)
331
+ )
332
+
333
+ self.graph_embeddings_pub = Publisher(
334
+ self.pulsar_host, graph_embeddings_store_queue,
335
+ schema=JsonSchema(GraphEmbeddings)
336
+ )
337
+
246
338
  self.document_out = Publisher(
247
339
  self.pulsar_host, document_ingest_queue,
248
340
  schema=JsonSchema(Document),
@@ -264,6 +356,20 @@ class Api:
264
356
  web.post("/api/v1/embeddings", self.embeddings),
265
357
  web.post("/api/v1/load/document", self.load_document),
266
358
  web.post("/api/v1/load/text", self.load_text),
359
+ web.get("/api/v1/ws", self.socket),
360
+
361
+ web.get("/api/v1/stream/triples", self.stream_triples),
362
+ web.get(
363
+ "/api/v1/stream/graph-embeddings",
364
+ self.stream_graph_embeddings
365
+ ),
366
+
367
+ web.get("/api/v1/load/triples", self.load_triples),
368
+ web.get(
369
+ "/api/v1/load/graph-embeddings",
370
+ self.load_graph_embeddings
371
+ ),
372
+
267
373
  ])
268
374
 
269
375
  async def llm(self, request):
@@ -452,23 +558,7 @@ class Api:
452
558
 
453
559
  return web.json_response(
454
560
  {
455
- "response": [
456
- {
457
- "s": {
458
- "v": t.s.value,
459
- "e": t.s.is_uri,
460
- },
461
- "p": {
462
- "v": t.p.value,
463
- "e": t.p.is_uri,
464
- },
465
- "o": {
466
- "v": t.o.value,
467
- "e": t.o.is_uri,
468
- }
469
- }
470
- for t in resp.triples
471
- ]
561
+ "response": serialize_subgraph(resp.triples),
472
562
  }
473
563
  )
474
564
 
@@ -660,6 +750,169 @@ class Api:
660
750
  { "error": str(e) }
661
751
  )
662
752
 
753
+ async def socket(self, request):
754
+
755
+ ws = web.WebSocketResponse()
756
+ await ws.prepare(request)
757
+
758
+ async for msg in ws:
759
+ if msg.type == WSMsgType.TEXT:
760
+ if msg.data == 'close':
761
+ await ws.close()
762
+ else:
763
+ await ws.send_str(msg.data + '/answer')
764
+ elif msg.type == WSMsgType.ERROR:
765
+ print('ws connection closed with exception %s' %
766
+ ws.exception())
767
+
768
+ print('websocket connection closed')
769
+
770
+ return ws
771
+
772
+ async def stream(self, q, ws, running, fn):
773
+
774
+ while running.get():
775
+ try:
776
+ resp = await asyncio.wait_for(q.get(), 0.5)
777
+ await ws.send_json(fn(resp))
778
+
779
+ except TimeoutError:
780
+ continue
781
+
782
+ except Exception as e:
783
+ print(f"Exception: {str(e)}", flush=True)
784
+
785
+ async def stream_triples(self, request):
786
+
787
+ id = str(uuid.uuid4())
788
+
789
+ q = await self.triples_tap.subscribe_all(id)
790
+ running = Running()
791
+
792
+ ws = web.WebSocketResponse()
793
+ await ws.prepare(request)
794
+
795
+ tsk = asyncio.create_task(self.stream(
796
+ q,
797
+ ws,
798
+ running,
799
+ serialize_triples,
800
+ ))
801
+
802
+ async for msg in ws:
803
+ if msg.type == WSMsgType.ERROR:
804
+ break
805
+ else:
806
+ # Ignore incoming messages
807
+ pass
808
+
809
+ running.stop()
810
+
811
+ await self.triples_tap.unsubscribe_all(id)
812
+ await tsk
813
+
814
+ return ws
815
+
816
+ async def stream_graph_embeddings(self, request):
817
+
818
+ id = str(uuid.uuid4())
819
+
820
+ q = await self.graph_embeddings_tap.subscribe_all(id)
821
+ running = Running()
822
+
823
+ ws = web.WebSocketResponse()
824
+ await ws.prepare(request)
825
+
826
+ tsk = asyncio.create_task(self.stream(
827
+ q,
828
+ ws,
829
+ running,
830
+ serialize_graph_embeddings,
831
+ ))
832
+
833
+ async for msg in ws:
834
+ if msg.type == WSMsgType.ERROR:
835
+ break
836
+ else:
837
+ # Ignore incoming messages
838
+ pass
839
+
840
+ running.stop()
841
+
842
+ await self.graph_embeddings_tap.unsubscribe_all(id)
843
+ await tsk
844
+
845
+ return ws
846
+
847
+ async def load_triples(self, request):
848
+
849
+ ws = web.WebSocketResponse()
850
+ await ws.prepare(request)
851
+
852
+ async for msg in ws:
853
+
854
+ try:
855
+
856
+ if msg.type == WSMsgType.TEXT:
857
+
858
+ data = msg.json()
859
+
860
+ elt = Triples(
861
+ metadata=Metadata(
862
+ id=data["metadata"]["id"],
863
+ metadata=to_subgraph(data["metadata"]["metadata"]),
864
+ user=data["metadata"]["user"],
865
+ collection=data["metadata"]["collection"],
866
+ ),
867
+ triples=to_subgraph(data["triples"]),
868
+ )
869
+
870
+ await self.triples_pub.send(None, elt)
871
+
872
+ elif msg.type == WSMsgType.ERROR:
873
+ break
874
+
875
+ except Exception as e:
876
+
877
+ print("Exception:", e)
878
+
879
+ return ws
880
+
881
+ async def load_graph_embeddings(self, request):
882
+
883
+ ws = web.WebSocketResponse()
884
+ await ws.prepare(request)
885
+
886
+ async for msg in ws:
887
+
888
+ try:
889
+
890
+ if msg.type == WSMsgType.TEXT:
891
+
892
+ data = msg.json()
893
+
894
+ elt = GraphEmbeddings(
895
+ metadata=Metadata(
896
+ id=data["metadata"]["id"],
897
+ metadata=to_subgraph(data["metadata"]["metadata"]),
898
+ user=data["metadata"]["user"],
899
+ collection=data["metadata"]["collection"],
900
+ ),
901
+ entity=to_value(data["entity"]),
902
+ vectors=data["vectors"],
903
+ )
904
+
905
+ await self.graph_embeddings_pub.send(None, elt)
906
+
907
+ elif msg.type == WSMsgType.ERROR:
908
+ break
909
+
910
+ except Exception as e:
911
+
912
+ print("Exception:", e)
913
+
914
+ return ws
915
+
663
916
  async def app_factory(self):
664
917
 
665
918
  self.llm_pub_task = asyncio.create_task(self.llm_in.run())
@@ -688,6 +941,22 @@ class Api:
688
941
  self.embeddings_out.run()
689
942
  )
690
943
 
944
+ self.triples_tap_task = asyncio.create_task(
945
+ self.triples_tap.run()
946
+ )
947
+
948
+ self.triples_pub_task = asyncio.create_task(
949
+ self.triples_pub.run()
950
+ )
951
+
952
+ self.graph_embeddings_tap_task = asyncio.create_task(
953
+ self.graph_embeddings_tap.run()
954
+ )
955
+
956
+ self.graph_embeddings_pub_task = asyncio.create_task(
957
+ self.graph_embeddings_pub.run()
958
+ )
959
+
691
960
  self.doc_ingest_pub_task = asyncio.create_task(self.document_out.run())
692
961
 
693
962
  self.text_ingest_pub_task = asyncio.create_task(self.text_out.run())
@@ -699,7 +968,6 @@ class Api:
699
968
 
700
969
  def run():
701
970
 
702
-
703
971
  parser = argparse.ArgumentParser(
704
972
  prog="api-gateway",
705
973
  description=__doc__
@@ -0,0 +1 @@
1
+ __version__ = "0.16.7"
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-flow
3
- Version: 0.16.5
3
+ Version: 0.16.7
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
6
  Author: trustgraph.ai
7
7
  Author-email: security@trustgraph.ai
8
8
  License: UNKNOWN
9
- Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.16.5.tar.gz
9
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.16.7.tar.gz
10
10
  Platform: UNKNOWN
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
@@ -1 +0,0 @@
1
- __version__ = "0.16.5"