trustgraph-flow 0.13.0__tar.gz → 0.13.1__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 (190) hide show
  1. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/PKG-INFO +2 -2
  2. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/chunking/recursive/chunker.py +1 -9
  3. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/chunking/token/chunker.py +1 -9
  4. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/decoding/pdf/pdf_decoder.py +1 -8
  5. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/definitions/extract.py +42 -6
  6. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/relationships/extract.py +63 -30
  7. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/topics/extract.py +6 -3
  8. trustgraph-flow-0.13.1/trustgraph/flow_version.py +1 -0
  9. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/triples/cassandra/write.py +9 -8
  10. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/triples/neo4j/write.py +10 -8
  11. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph_flow.egg-info/PKG-INFO +2 -2
  12. trustgraph-flow-0.13.0/trustgraph/flow_version.py +0 -1
  13. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/README.md +0 -0
  14. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/chunker-recursive +0 -0
  15. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/chunker-token +0 -0
  16. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/de-query-milvus +0 -0
  17. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/de-query-qdrant +0 -0
  18. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/de-write-milvus +0 -0
  19. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/de-write-qdrant +0 -0
  20. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/document-rag +0 -0
  21. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/embeddings-ollama +0 -0
  22. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/embeddings-vectorize +0 -0
  23. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/ge-query-milvus +0 -0
  24. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/ge-query-qdrant +0 -0
  25. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/ge-write-milvus +0 -0
  26. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/ge-write-qdrant +0 -0
  27. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/graph-rag +0 -0
  28. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/kg-extract-definitions +0 -0
  29. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/kg-extract-relationships +0 -0
  30. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/kg-extract-topics +0 -0
  31. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/metering +0 -0
  32. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/object-extract-row +0 -0
  33. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/oe-write-milvus +0 -0
  34. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/pdf-decoder +0 -0
  35. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/prompt-generic +0 -0
  36. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/prompt-template +0 -0
  37. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/rows-write-cassandra +0 -0
  38. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/run-processing +0 -0
  39. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/text-completion-azure +0 -0
  40. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/text-completion-azure-openai +0 -0
  41. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/text-completion-claude +0 -0
  42. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/text-completion-cohere +0 -0
  43. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/text-completion-googleaistudio +0 -0
  44. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/text-completion-llamafile +0 -0
  45. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/text-completion-ollama +0 -0
  46. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/text-completion-openai +0 -0
  47. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/triples-query-cassandra +0 -0
  48. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/triples-query-neo4j +0 -0
  49. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/triples-write-cassandra +0 -0
  50. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/scripts/triples-write-neo4j +0 -0
  51. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/setup.cfg +0 -0
  52. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/setup.py +0 -0
  53. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/__init__.py +0 -0
  54. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/chunking/__init__.py +0 -0
  55. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/chunking/recursive/__init__.py +0 -0
  56. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/chunking/recursive/__main__.py +0 -0
  57. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/chunking/token/__init__.py +0 -0
  58. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/chunking/token/__main__.py +0 -0
  59. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/decoding/__init__.py +0 -0
  60. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/decoding/pdf/__init__.py +0 -0
  61. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/decoding/pdf/__main__.py +0 -0
  62. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/direct/__init__.py +0 -0
  63. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/direct/cassandra.py +0 -0
  64. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
  65. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
  66. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/direct/milvus_object_embeddings.py +0 -0
  67. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/document_rag.py +0 -0
  68. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/embeddings/__init__.py +0 -0
  69. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/embeddings/ollama/__init__.py +0 -0
  70. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/embeddings/ollama/__main__.py +0 -0
  71. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/embeddings/ollama/processor.py +0 -0
  72. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/embeddings/vectorize/__init__.py +0 -0
  73. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/embeddings/vectorize/__main__.py +0 -0
  74. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/embeddings/vectorize/vectorize.py +0 -0
  75. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/__init__.py +0 -0
  76. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/__init__.py +0 -0
  77. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/definitions/__init__.py +0 -0
  78. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/definitions/__main__.py +0 -0
  79. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/relationships/__init__.py +0 -0
  80. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/relationships/__main__.py +0 -0
  81. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/topics/__init__.py +0 -0
  82. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/kg/topics/__main__.py +0 -0
  83. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/object/__init__.py +0 -0
  84. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/object/row/__init__.py +0 -0
  85. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/object/row/__main__.py +0 -0
  86. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/extract/object/row/extract.py +0 -0
  87. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/graph_rag.py +0 -0
  88. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/metering/__init__.py +0 -0
  89. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/metering/__main__.py +0 -0
  90. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/metering/counter.py +0 -0
  91. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/metering/pricelist.py +0 -0
  92. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/__init__.py +0 -0
  93. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/__init__.py +0 -0
  94. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/generic/__init__.py +0 -0
  95. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/generic/__main__.py +0 -0
  96. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/generic/prompts.py +0 -0
  97. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/generic/service.py +0 -0
  98. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/template/__init__.py +0 -0
  99. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/template/__main__.py +0 -0
  100. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/template/prompts.py +0 -0
  101. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/prompt/template/service.py +0 -0
  102. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/__init__.py +0 -0
  103. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/azure/__init__.py +0 -0
  104. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/azure/__main__.py +0 -0
  105. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/azure/llm.py +0 -0
  106. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
  107. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
  108. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
  109. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/claude/__init__.py +0 -0
  110. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/claude/__main__.py +0 -0
  111. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/claude/llm.py +0 -0
  112. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
  113. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
  114. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/cohere/llm.py +0 -0
  115. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
  116. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
  117. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
  118. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
  119. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
  120. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
  121. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
  122. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
  123. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/ollama/llm.py +0 -0
  124. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/openai/__init__.py +0 -0
  125. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/openai/__main__.py +0 -0
  126. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/model/text_completion/openai/llm.py +0 -0
  127. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/processing/__init__.py +0 -0
  128. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/processing/__main__.py +0 -0
  129. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/processing/processing.py +0 -0
  130. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/__init__.py +0 -0
  131. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/doc_embeddings/__init__.py +0 -0
  132. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
  133. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
  134. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
  135. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
  136. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
  137. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
  138. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/graph_embeddings/__init__.py +0 -0
  139. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
  140. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
  141. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
  142. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
  143. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
  144. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
  145. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/triples/__init__.py +0 -0
  146. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/triples/cassandra/__init__.py +0 -0
  147. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/triples/cassandra/__main__.py +0 -0
  148. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/triples/cassandra/service.py +0 -0
  149. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/triples/neo4j/__init__.py +0 -0
  150. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/triples/neo4j/__main__.py +0 -0
  151. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/query/triples/neo4j/service.py +0 -0
  152. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/retrieval/__init__.py +0 -0
  153. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/retrieval/document_rag/__init__.py +0 -0
  154. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/retrieval/document_rag/__main__.py +0 -0
  155. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/retrieval/document_rag/rag.py +0 -0
  156. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
  157. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
  158. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/retrieval/graph_rag/rag.py +0 -0
  159. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/__init__.py +0 -0
  160. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
  161. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
  162. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
  163. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
  164. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
  165. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
  166. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
  167. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
  168. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
  169. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
  170. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
  171. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
  172. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
  173. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
  174. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/object_embeddings/__init__.py +0 -0
  175. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
  176. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
  177. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
  178. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/rows/__init__.py +0 -0
  179. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
  180. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
  181. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/rows/cassandra/write.py +0 -0
  182. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/triples/__init__.py +0 -0
  183. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
  184. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
  185. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
  186. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
  187. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
  188. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
  189. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/trustgraph_flow.egg-info/requires.txt +0 -0
  190. {trustgraph-flow-0.13.0 → trustgraph-flow-0.13.1}/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.13.0
3
+ Version: 0.13.1
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.13.0.tar.gz
9
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.13.1.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+)
@@ -63,16 +63,8 @@ class Processor(ConsumerProducer):
63
63
 
64
64
  for ix, chunk in enumerate(texts):
65
65
 
66
- id = v.metadata.id + "-c" + str(ix)
67
-
68
66
  r = Chunk(
69
- metadata=Metadata(
70
- source=v.metadata.source,
71
- id=id,
72
- title=v.metadata.title,
73
- user=v.metadata.user,
74
- collection=v.metadata.collection,
75
- ),
67
+ metadata=v.metadata,
76
68
  chunk=chunk.page_content.encode("utf-8"),
77
69
  )
78
70
 
@@ -62,16 +62,8 @@ class Processor(ConsumerProducer):
62
62
 
63
63
  for ix, chunk in enumerate(texts):
64
64
 
65
- id = v.metadata.id + "-c" + str(ix)
66
-
67
65
  r = Chunk(
68
- metadata=Metadata(
69
- source=v.metadata.source,
70
- id=id,
71
- title=v.metadata.title,
72
- user=v.metadata.user,
73
- collection=v.metadata.collection,
74
- ),
66
+ metadata=v.metadata,
75
67
  chunk=chunk.page_content.encode("utf-8"),
76
68
  )
77
69
 
@@ -59,15 +59,8 @@ class Processor(ConsumerProducer):
59
59
 
60
60
  for ix, page in enumerate(pages):
61
61
 
62
- id = v.metadata.id + "-p" + str(ix)
63
62
  r = TextDocument(
64
- metadata=Metadata(
65
- source=v.metadata.source,
66
- title=v.metadata.title,
67
- id=id,
68
- user=v.metadata.user,
69
- collection=v.metadata.collection,
70
- ),
63
+ metadata=v.metadata,
71
64
  text=page.page_content.encode("utf-8"),
72
65
  )
73
66
 
@@ -7,16 +7,18 @@ get entity definitions which are output as graph edges.
7
7
  import urllib.parse
8
8
  import json
9
9
 
10
- from .... schema import ChunkEmbeddings, Triple, Metadata, Value
10
+ from .... schema import ChunkEmbeddings, Triple, Triples, Metadata, Value
11
11
  from .... schema import chunk_embeddings_ingest_queue, triples_store_queue
12
12
  from .... schema import prompt_request_queue
13
13
  from .... schema import prompt_response_queue
14
14
  from .... log_level import LogLevel
15
15
  from .... clients.prompt_client import PromptClient
16
- from .... rdf import TRUSTGRAPH_ENTITIES, DEFINITION
16
+ from .... rdf import TRUSTGRAPH_ENTITIES, DEFINITION, RDF_LABEL, SUBJECT_OF
17
17
  from .... base import ConsumerProducer
18
18
 
19
19
  DEFINITION_VALUE = Value(value=DEFINITION, is_uri=True)
20
+ RDF_LABEL_VALUE = Value(value=RDF_LABEL, is_uri=True)
21
+ SUBJECT_OF_VALUE = Value(value=SUBJECT_OF, is_uri=True)
20
22
 
21
23
  module = ".".join(__name__.split(".")[1:-1])
22
24
 
@@ -44,7 +46,7 @@ class Processor(ConsumerProducer):
44
46
  "output_queue": output_queue,
45
47
  "subscriber": subscriber,
46
48
  "input_schema": ChunkEmbeddings,
47
- "output_schema": Triple,
49
+ "output_schema": Triples,
48
50
  "prompt_request_queue": pr_request_queue,
49
51
  "prompt_response_queue": pr_response_queue,
50
52
  }
@@ -69,9 +71,12 @@ class Processor(ConsumerProducer):
69
71
 
70
72
  return self.prompt.request_definitions(chunk)
71
73
 
72
- def emit_edge(self, metadata, s, p, o):
74
+ def emit_edges(self, metadata, triples):
73
75
 
74
- t = Triple(metadata=metadata, s=s, p=p, o=o)
76
+ t = Triples(
77
+ metadata=metadata,
78
+ triples=triples,
79
+ )
75
80
  self.producer.send(t)
76
81
 
77
82
  def handle(self, msg):
@@ -85,6 +90,13 @@ class Processor(ConsumerProducer):
85
90
 
86
91
  defs = self.get_definitions(chunk)
87
92
 
93
+ triples = []
94
+
95
+ # FIXME: Putting metadata into triples store is duplicated in
96
+ # relationships extractor too
97
+ for t in v.metadata.metadata:
98
+ triples.append(t)
99
+
88
100
  for defn in defs:
89
101
 
90
102
  s = defn.name
@@ -101,7 +113,31 @@ class Processor(ConsumerProducer):
101
113
  s_value = Value(value=str(s_uri), is_uri=True)
102
114
  o_value = Value(value=str(o), is_uri=False)
103
115
 
104
- self.emit_edge(v.metadata, s_value, DEFINITION_VALUE, o_value)
116
+ triples.append(Triple(
117
+ s=s_value,
118
+ p=RDF_LABEL_VALUE,
119
+ o=Value(value=s, is_uri=False),
120
+ ))
121
+
122
+ triples.append(Triple(
123
+ s=s_value, p=DEFINITION_VALUE, o=o_value
124
+ ))
125
+
126
+ triples.append(Triple(
127
+ s=s_value,
128
+ p=SUBJECT_OF_VALUE,
129
+ o=Value(value=v.metadata.id, is_uri=True)
130
+ ))
131
+
132
+ self.emit_edges(
133
+ Metadata(
134
+ id=v.metadata.id,
135
+ metadata=[],
136
+ user=v.metadata.user,
137
+ collection=v.metadata.collection,
138
+ ),
139
+ triples
140
+ )
105
141
 
106
142
  except Exception as e:
107
143
  print("Exception: ", e, flush=True)
@@ -9,7 +9,7 @@ import urllib.parse
9
9
  import os
10
10
  from pulsar.schema import JsonSchema
11
11
 
12
- from .... schema import ChunkEmbeddings, Triple, GraphEmbeddings
12
+ from .... schema import ChunkEmbeddings, Triple, Triples, GraphEmbeddings
13
13
  from .... schema import Metadata, Value
14
14
  from .... schema import chunk_embeddings_ingest_queue, triples_store_queue
15
15
  from .... schema import graph_embeddings_store_queue
@@ -17,10 +17,11 @@ from .... schema import prompt_request_queue
17
17
  from .... schema import prompt_response_queue
18
18
  from .... log_level import LogLevel
19
19
  from .... clients.prompt_client import PromptClient
20
- from .... rdf import RDF_LABEL, TRUSTGRAPH_ENTITIES
20
+ from .... rdf import RDF_LABEL, TRUSTGRAPH_ENTITIES, SUBJECT_OF
21
21
  from .... base import ConsumerProducer
22
22
 
23
23
  RDF_LABEL_VALUE = Value(value=RDF_LABEL, is_uri=True)
24
+ SUBJECT_OF_VALUE = Value(value=SUBJECT_OF, is_uri=True)
24
25
 
25
26
  module = ".".join(__name__.split(".")[1:-1])
26
27
 
@@ -50,7 +51,7 @@ class Processor(ConsumerProducer):
50
51
  "output_queue": output_queue,
51
52
  "subscriber": subscriber,
52
53
  "input_schema": ChunkEmbeddings,
53
- "output_schema": Triple,
54
+ "output_schema": Triples,
54
55
  "prompt_request_queue": pr_request_queue,
55
56
  "prompt_response_queue": pr_response_queue,
56
57
  }
@@ -69,7 +70,7 @@ class Processor(ConsumerProducer):
69
70
  "prompt_response_queue": pr_response_queue,
70
71
  "subscriber": subscriber,
71
72
  "input_schema": ChunkEmbeddings.__name__,
72
- "output_schema": Triple.__name__,
73
+ "output_schema": Triples.__name__,
73
74
  "vector_schema": GraphEmbeddings.__name__,
74
75
  })
75
76
 
@@ -92,9 +93,12 @@ class Processor(ConsumerProducer):
92
93
 
93
94
  return self.prompt.request_relationships(chunk)
94
95
 
95
- def emit_edge(self, metadata, s, p, o):
96
+ def emit_edges(self, metadata, triples):
96
97
 
97
- t = Triple(metadata=metadata, s=s, p=p, o=o)
98
+ t = Triples(
99
+ metadata=metadata,
100
+ triples=triples,
101
+ )
98
102
  self.producer.send(t)
99
103
 
100
104
  def emit_vec(self, metadata, ent, vec):
@@ -113,6 +117,13 @@ class Processor(ConsumerProducer):
113
117
 
114
118
  rels = self.get_relationships(chunk)
115
119
 
120
+ triples = []
121
+
122
+ # FIXME: Putting metadata into triples store is duplicated in
123
+ # relationships extractor too
124
+ for t in v.metadata.metadata:
125
+ triples.append(t)
126
+
116
127
  for rel in rels:
117
128
 
118
129
  s = rel.s
@@ -139,43 +150,65 @@ class Processor(ConsumerProducer):
139
150
  else:
140
151
  o_value = Value(value=str(o), is_uri=False)
141
152
 
142
- self.emit_edge(
143
- v.metadata,
144
- s_value,
145
- p_value,
146
- o_value
147
- )
153
+ triples.append(Triple(
154
+ s=s_value,
155
+ p=p_value,
156
+ o=o_value
157
+ ))
148
158
 
149
159
  # Label for s
150
- self.emit_edge(
151
- v.metadata,
152
- s_value,
153
- RDF_LABEL_VALUE,
154
- Value(value=str(s), is_uri=False)
155
- )
160
+ triples.append(Triple(
161
+ s=s_value,
162
+ p=RDF_LABEL_VALUE,
163
+ o=Value(value=str(s), is_uri=False)
164
+ ))
156
165
 
157
166
  # Label for p
158
- self.emit_edge(
159
- v.metadata,
160
- p_value,
161
- RDF_LABEL_VALUE,
162
- Value(value=str(p), is_uri=False)
163
- )
167
+ triples.append(Triple(
168
+ s=p_value,
169
+ p=RDF_LABEL_VALUE,
170
+ o=Value(value=str(p), is_uri=False)
171
+ ))
164
172
 
165
173
  if rel.o_entity:
166
174
  # Label for o
167
- self.emit_edge(
168
- v.metadata,
169
- o_value,
170
- RDF_LABEL_VALUE,
171
- Value(value=str(o), is_uri=False)
172
- )
175
+ triples.append(Triple(
176
+ s=o_value,
177
+ p=RDF_LABEL_VALUE,
178
+ o=Value(value=str(o), is_uri=False)
179
+ ))
180
+
181
+ # 'Subject of' for s
182
+ triples.append(Triple(
183
+ s=s_value,
184
+ p=SUBJECT_OF_VALUE,
185
+ o=Value(value=v.metadata.id, is_uri=True)
186
+ ))
187
+
188
+ if rel.o_entity:
189
+ # 'Subject of' for o
190
+ triples.append(Triple(
191
+ s=o_value,
192
+ p=RDF_LABEL_VALUE,
193
+ o=Value(value=v.metadata.id, is_uri=True)
194
+ ))
173
195
 
174
196
  self.emit_vec(v.metadata, s_value, v.vectors)
175
197
  self.emit_vec(v.metadata, p_value, v.vectors)
198
+
176
199
  if rel.o_entity:
177
200
  self.emit_vec(v.metadata, o_value, v.vectors)
178
201
 
202
+ self.emit_edges(
203
+ Metadata(
204
+ id=v.metadata.id,
205
+ metadata=[],
206
+ user=v.metadata.user,
207
+ collection=v.metadata.collection,
208
+ ),
209
+ triples
210
+ )
211
+
179
212
  except Exception as e:
180
213
  print("Exception: ", e, flush=True)
181
214
 
@@ -7,7 +7,7 @@ get entity definitions which are output as graph edges.
7
7
  import urllib.parse
8
8
  import json
9
9
 
10
- from .... schema import ChunkEmbeddings, Triple, Metadata, Value
10
+ from .... schema import ChunkEmbeddings, Triple, Triples, Metadata, Value
11
11
  from .... schema import chunk_embeddings_ingest_queue, triples_store_queue
12
12
  from .... schema import prompt_request_queue
13
13
  from .... schema import prompt_response_queue
@@ -44,7 +44,7 @@ class Processor(ConsumerProducer):
44
44
  "output_queue": output_queue,
45
45
  "subscriber": subscriber,
46
46
  "input_schema": ChunkEmbeddings,
47
- "output_schema": Triple,
47
+ "output_schema": Triples,
48
48
  "prompt_request_queue": pr_request_queue,
49
49
  "prompt_response_queue": pr_response_queue,
50
50
  }
@@ -71,7 +71,10 @@ class Processor(ConsumerProducer):
71
71
 
72
72
  def emit_edge(self, metadata, s, p, o):
73
73
 
74
- t = Triple(metadata=metadata, s=s, p=p, o=o)
74
+ t = Triples(
75
+ metadata=metadata,
76
+ triples=[Triple(s=s, p=p, o=o)],
77
+ )
75
78
  self.producer.send(t)
76
79
 
77
80
  def handle(self, msg):
@@ -0,0 +1 @@
1
+ __version__ = "0.13.1"
@@ -10,7 +10,7 @@ import argparse
10
10
  import time
11
11
 
12
12
  from .... direct.cassandra import TrustGraph
13
- from .... schema import Triple
13
+ from .... schema import Triple, Triples
14
14
  from .... schema import triples_store_queue
15
15
  from .... log_level import LogLevel
16
16
  from .... base import Consumer
@@ -33,7 +33,7 @@ class Processor(Consumer):
33
33
  **params | {
34
34
  "input_queue": input_queue,
35
35
  "subscriber": subscriber,
36
- "input_schema": Triple,
36
+ "input_schema": Triples,
37
37
  "graph_host": graph_host,
38
38
  }
39
39
  )
@@ -62,12 +62,13 @@ class Processor(Consumer):
62
62
  raise e
63
63
 
64
64
  self.table = table
65
-
66
- self.tg.insert(
67
- v.s.value,
68
- v.p.value,
69
- v.o.value
70
- )
65
+
66
+ for t in v.triples:
67
+ self.tg.insert(
68
+ t.s.value,
69
+ t.p.value,
70
+ t.o.value
71
+ )
71
72
 
72
73
  @staticmethod
73
74
  def add_args(parser):
@@ -116,14 +116,16 @@ class Processor(Consumer):
116
116
 
117
117
  v = msg.value()
118
118
 
119
- self.create_node(v.s.value)
120
-
121
- if v.o.is_uri:
122
- self.create_node(v.o.value)
123
- self.relate_node(v.s.value, v.p.value, v.o.value)
124
- else:
125
- self.create_literal(v.o.value)
126
- self.relate_literal(v.s.value, v.p.value, v.o.value)
119
+ for t in v.triples:
120
+
121
+ self.create_node(t.s.value)
122
+
123
+ if v.o.is_uri:
124
+ self.create_node(t.o.value)
125
+ self.relate_node(t.s.value, t.p.value, t.o.value)
126
+ else:
127
+ self.create_literal(t.o.value)
128
+ self.relate_literal(t.s.value, t.p.value, t.o.value)
127
129
 
128
130
  @staticmethod
129
131
  def add_args(parser):
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-flow
3
- Version: 0.13.0
3
+ Version: 0.13.1
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.13.0.tar.gz
9
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.13.1.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.13.0"