trustgraph-flow 2.6.7__tar.gz → 2.6.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.
Files changed (399) hide show
  1. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/PKG-INFO +1 -1
  2. trustgraph_flow-2.6.9/trustgraph/flow_version.py +1 -0
  3. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/openai/llm.py +28 -32
  4. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/openai/variants.py +21 -22
  5. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/document_rag/document_rag.py +81 -7
  6. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/document_rag/rag.py +34 -0
  7. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph_flow.egg-info/PKG-INFO +1 -1
  8. trustgraph_flow-2.6.7/trustgraph/flow_version.py +0 -1
  9. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/README.md +0 -0
  10. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/pyproject.toml +0 -0
  11. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/setup.cfg +0 -0
  12. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/__init__.py +0 -0
  13. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/__init__.py +0 -0
  14. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/mcp_tool/__init__.py +0 -0
  15. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/mcp_tool/__main__.py +0 -0
  16. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/mcp_tool/service.py +0 -0
  17. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/__init__.py +0 -0
  18. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/__main__.py +0 -0
  19. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/aggregator.py +0 -0
  20. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/meta_router.py +0 -0
  21. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/pattern_base.py +0 -0
  22. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/plan_pattern.py +0 -0
  23. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/react_pattern.py +0 -0
  24. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/service.py +0 -0
  25. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/orchestrator/supervisor_pattern.py +0 -0
  26. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/react/__init__.py +0 -0
  27. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/react/__main__.py +0 -0
  28. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/react/agent_manager.py +0 -0
  29. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/react/service.py +0 -0
  30. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/react/streaming_parser.py +0 -0
  31. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/react/tools.py +0 -0
  32. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/react/types.py +0 -0
  33. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/agent/tool_filter.py +0 -0
  34. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/__init__.py +0 -0
  35. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/base.py +0 -0
  36. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/bootstrapper/__init__.py +0 -0
  37. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/bootstrapper/__main__.py +0 -0
  38. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/bootstrapper/service.py +0 -0
  39. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/initialisers/__init__.py +0 -0
  40. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/initialisers/default_flow_start.py +0 -0
  41. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/initialisers/pulsar_topology.py +0 -0
  42. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/initialisers/template_seed.py +0 -0
  43. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/bootstrap/initialisers/workspace_init.py +0 -0
  44. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/chunking/__init__.py +0 -0
  45. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/chunking/recursive/__init__.py +0 -0
  46. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/chunking/recursive/__main__.py +0 -0
  47. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/chunking/recursive/chunker.py +0 -0
  48. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/chunking/token/__init__.py +0 -0
  49. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/chunking/token/__main__.py +0 -0
  50. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/chunking/token/chunker.py +0 -0
  51. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/config/service/__init__.py +0 -0
  52. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/config/service/__main__.py +0 -0
  53. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/config/service/config.py +0 -0
  54. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/config/service/service.py +0 -0
  55. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/cores/__init__.py +0 -0
  56. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/cores/__main__.py +0 -0
  57. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/cores/knowledge.py +0 -0
  58. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/cores/service.py +0 -0
  59. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/decoding/__init__.py +0 -0
  60. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
  61. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
  62. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
  63. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/decoding/pdf/__init__.py +0 -0
  64. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/decoding/pdf/__main__.py +0 -0
  65. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
  66. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/direct/__init__.py +0 -0
  67. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/direct/cassandra_kg.py +0 -0
  68. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
  69. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
  70. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/__init__.py +0 -0
  71. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
  72. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
  73. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
  74. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/fastembed/__init__.py +0 -0
  75. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/fastembed/__main__.py +0 -0
  76. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/fastembed/processor.py +0 -0
  77. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
  78. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
  79. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
  80. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/ollama/__init__.py +0 -0
  81. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/ollama/__main__.py +0 -0
  82. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/ollama/processor.py +0 -0
  83. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/row_embeddings/__init__.py +0 -0
  84. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/row_embeddings/__main__.py +0 -0
  85. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/embeddings/row_embeddings/embeddings.py +0 -0
  86. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/external/__init__.py +0 -0
  87. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/external/wikipedia/__init__.py +0 -0
  88. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/external/wikipedia/__main__.py +0 -0
  89. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/external/wikipedia/service.py +0 -0
  90. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/__init__.py +0 -0
  91. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/__init__.py +0 -0
  92. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/agent/__init__.py +0 -0
  93. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/agent/__main__.py +0 -0
  94. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/agent/extract.py +0 -0
  95. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/definitions/__init__.py +0 -0
  96. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/definitions/__main__.py +0 -0
  97. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/definitions/extract.py +0 -0
  98. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/__init__.py +0 -0
  99. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/entity_normalizer.py +0 -0
  100. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/extract.py +0 -0
  101. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/ontology_embedder.py +0 -0
  102. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/ontology_loader.py +0 -0
  103. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/ontology_selector.py +0 -0
  104. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/run.py +0 -0
  105. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/simplified_parser.py +0 -0
  106. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/text_processor.py +0 -0
  107. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/triple_converter.py +0 -0
  108. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/ontology/vector_store.py +0 -0
  109. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/relationships/__init__.py +0 -0
  110. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/relationships/__main__.py +0 -0
  111. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/relationships/extract.py +0 -0
  112. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/rows/__init__.py +0 -0
  113. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/rows/__main__.py +0 -0
  114. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/rows/processor.py +0 -0
  115. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/topics/__init__.py +0 -0
  116. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/topics/__main__.py +0 -0
  117. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/extract/kg/topics/extract.py +0 -0
  118. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/flow/__init__.py +0 -0
  119. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/flow/service/__init__.py +0 -0
  120. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/flow/service/__main__.py +0 -0
  121. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/flow/service/flow.py +0 -0
  122. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/flow/service/service.py +0 -0
  123. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/__init__.py +0 -0
  124. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/__main__.py +0 -0
  125. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/auth.py +0 -0
  126. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/capabilities.py +0 -0
  127. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/config/receiver.py +0 -0
  128. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/agent.py +0 -0
  129. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/collection_management.py +0 -0
  130. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/config.py +0 -0
  131. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/core_export.py +0 -0
  132. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/core_import.py +0 -0
  133. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
  134. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
  135. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/document_embeddings_query.py +0 -0
  136. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/document_load.py +0 -0
  137. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/document_rag.py +0 -0
  138. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/document_stream.py +0 -0
  139. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/embeddings.py +0 -0
  140. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/entity_contexts_export.py +0 -0
  141. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/entity_contexts_import.py +0 -0
  142. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/flow.py +0 -0
  143. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
  144. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
  145. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
  146. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
  147. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/iam.py +0 -0
  148. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/knowledge.py +0 -0
  149. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/librarian.py +0 -0
  150. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/manager.py +0 -0
  151. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/mcp_tool.py +0 -0
  152. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/mux.py +0 -0
  153. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/nlp_query.py +0 -0
  154. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/prompt.py +0 -0
  155. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/requestor.py +0 -0
  156. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/reranker.py +0 -0
  157. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/row_embeddings_query.py +0 -0
  158. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/rows_import.py +0 -0
  159. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/rows_query.py +0 -0
  160. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/sender.py +0 -0
  161. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/serialize.py +0 -0
  162. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/sparql_query.py +0 -0
  163. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/streamer.py +0 -0
  164. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/structured_diag.py +0 -0
  165. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/structured_query.py +0 -0
  166. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/text_completion.py +0 -0
  167. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/text_load.py +0 -0
  168. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/triples_export.py +0 -0
  169. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/triples_import.py +0 -0
  170. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/dispatch/triples_query.py +0 -0
  171. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/auth_endpoints.py +0 -0
  172. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/constant_endpoint.py +0 -0
  173. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/i18n.py +0 -0
  174. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/iam_endpoint.py +0 -0
  175. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/manager.py +0 -0
  176. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/metrics.py +0 -0
  177. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/registry_endpoint.py +0 -0
  178. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/socket.py +0 -0
  179. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/stream_endpoint.py +0 -0
  180. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/endpoint/variable_endpoint.py +0 -0
  181. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/registry.py +0 -0
  182. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/running.py +0 -0
  183. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/service.py +0 -0
  184. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/unused/dbpedia.py +0 -0
  185. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/unused/encyclopedia.py +0 -0
  186. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/gateway/unused/internet_search.py +0 -0
  187. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/__init__.py +0 -0
  188. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/noauth/__init__.py +0 -0
  189. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/noauth/__main__.py +0 -0
  190. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/noauth/handler.py +0 -0
  191. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/noauth/service.py +0 -0
  192. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/service/__init__.py +0 -0
  193. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/service/__main__.py +0 -0
  194. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/service/iam.py +0 -0
  195. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/iam/service/service.py +0 -0
  196. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/librarian/__init__.py +0 -0
  197. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/librarian/__main__.py +0 -0
  198. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/librarian/blob_store.py +0 -0
  199. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/librarian/collection_manager.py +0 -0
  200. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/librarian/librarian.py +0 -0
  201. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/librarian/service.py +0 -0
  202. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/metering/__init__.py +0 -0
  203. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/metering/__main__.py +0 -0
  204. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/metering/counter.py +0 -0
  205. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/__init__.py +0 -0
  206. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/__init__.py +0 -0
  207. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/azure/__init__.py +0 -0
  208. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/azure/__main__.py +0 -0
  209. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/azure/llm.py +0 -0
  210. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
  211. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
  212. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
  213. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/claude/__init__.py +0 -0
  214. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/claude/__main__.py +0 -0
  215. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/claude/llm.py +0 -0
  216. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
  217. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
  218. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/cohere/llm.py +0 -0
  219. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
  220. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
  221. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
  222. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
  223. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
  224. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
  225. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
  226. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
  227. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/mistral/llm.py +0 -0
  228. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
  229. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
  230. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/ollama/llm.py +0 -0
  231. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/openai/__init__.py +0 -0
  232. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/openai/__main__.py +0 -0
  233. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/tgi/__init__.py +0 -0
  234. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/tgi/__main__.py +0 -0
  235. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/tgi/llm.py +0 -0
  236. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/vllm/__init__.py +0 -0
  237. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/vllm/__main__.py +0 -0
  238. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/model/text_completion/vllm/llm.py +0 -0
  239. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/processing/__init__.py +0 -0
  240. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/processing/__main__.py +0 -0
  241. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/processing/processing.py +0 -0
  242. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/prompt/__init__.py +0 -0
  243. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/prompt/template/__init__.py +0 -0
  244. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/prompt/template/__main__.py +0 -0
  245. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/prompt/template/service.py +0 -0
  246. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/__init__.py +0 -0
  247. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/__init__.py +0 -0
  248. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
  249. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
  250. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
  251. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
  252. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
  253. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
  254. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
  255. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
  256. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
  257. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/__init__.py +0 -0
  258. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
  259. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
  260. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
  261. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
  262. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
  263. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
  264. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
  265. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
  266. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
  267. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graphql/__init__.py +0 -0
  268. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graphql/filters.py +0 -0
  269. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graphql/schema.py +0 -0
  270. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/graphql/types.py +0 -0
  271. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/__init__.py +0 -0
  272. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/answer_generator.py +0 -0
  273. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/backend_router.py +0 -0
  274. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/cache.py +0 -0
  275. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/cypher_executor.py +0 -0
  276. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/cypher_generator.py +0 -0
  277. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/error_handling.py +0 -0
  278. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/monitoring.py +0 -0
  279. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/multi_language.py +0 -0
  280. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/ontology_matcher.py +0 -0
  281. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/query_explanation.py +0 -0
  282. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/query_optimizer.py +0 -0
  283. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/query_service.py +0 -0
  284. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/question_analyzer.py +0 -0
  285. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/sparql_cassandra.py +0 -0
  286. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/ontology/sparql_generator.py +0 -0
  287. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/row_embeddings/__init__.py +0 -0
  288. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/row_embeddings/qdrant/__init__.py +0 -0
  289. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/row_embeddings/qdrant/__main__.py +0 -0
  290. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/row_embeddings/qdrant/service.py +0 -0
  291. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/rows/__init__.py +0 -0
  292. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/rows/cassandra/__init__.py +0 -0
  293. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/rows/cassandra/__main__.py +0 -0
  294. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/rows/cassandra/service.py +0 -0
  295. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/sparql/__init__.py +0 -0
  296. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/sparql/__main__.py +0 -0
  297. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/sparql/algebra.py +0 -0
  298. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/sparql/expressions.py +0 -0
  299. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/sparql/parser.py +0 -0
  300. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/sparql/service.py +0 -0
  301. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/sparql/solutions.py +0 -0
  302. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/__init__.py +0 -0
  303. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/cassandra/__init__.py +0 -0
  304. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/cassandra/__main__.py +0 -0
  305. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/cassandra/service.py +0 -0
  306. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/falkordb/__init__.py +0 -0
  307. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/falkordb/__main__.py +0 -0
  308. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/falkordb/service.py +0 -0
  309. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/memgraph/__init__.py +0 -0
  310. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/memgraph/__main__.py +0 -0
  311. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/memgraph/service.py +0 -0
  312. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/neo4j/__init__.py +0 -0
  313. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/neo4j/__main__.py +0 -0
  314. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/query/triples/neo4j/service.py +0 -0
  315. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/reranker/__init__.py +0 -0
  316. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/reranker/flashrank/__init__.py +0 -0
  317. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/reranker/flashrank/__main__.py +0 -0
  318. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/reranker/flashrank/processor.py +0 -0
  319. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/__init__.py +0 -0
  320. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/document_rag/__init__.py +0 -0
  321. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/document_rag/__main__.py +0 -0
  322. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
  323. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
  324. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/graph_rag/graph_rag.py +0 -0
  325. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/graph_rag/rag.py +0 -0
  326. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/nlp_query/__init__.py +0 -0
  327. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/nlp_query/__main__.py +0 -0
  328. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/nlp_query/service.py +0 -0
  329. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/structured_diag/__init__.py +0 -0
  330. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/structured_diag/service.py +0 -0
  331. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/structured_diag/type_detector.py +0 -0
  332. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/structured_query/__init__.py +0 -0
  333. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/structured_query/__main__.py +0 -0
  334. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/retrieval/structured_query/service.py +0 -0
  335. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/rev_gateway/__init__.py +0 -0
  336. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/rev_gateway/__main__.py +0 -0
  337. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/rev_gateway/dispatcher.py +0 -0
  338. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/rev_gateway/service.py +0 -0
  339. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/__init__.py +0 -0
  340. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
  341. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
  342. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
  343. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
  344. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
  345. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
  346. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
  347. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
  348. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
  349. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
  350. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
  351. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
  352. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
  353. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
  354. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
  355. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
  356. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
  357. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
  358. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
  359. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
  360. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/knowledge/__init__.py +0 -0
  361. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/knowledge/__main__.py +0 -0
  362. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/knowledge/store.py +0 -0
  363. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/row_embeddings/__init__.py +0 -0
  364. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/row_embeddings/qdrant/__init__.py +0 -0
  365. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/row_embeddings/qdrant/__main__.py +0 -0
  366. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/row_embeddings/qdrant/write.py +0 -0
  367. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/rows/__init__.py +0 -0
  368. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
  369. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
  370. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/rows/cassandra/write.py +0 -0
  371. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/__init__.py +0 -0
  372. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
  373. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
  374. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/cassandra/write.py +0 -0
  375. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
  376. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
  377. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/falkordb/write.py +0 -0
  378. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
  379. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
  380. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/memgraph/write.py +0 -0
  381. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
  382. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
  383. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/storage/triples/neo4j/write.py +0 -0
  384. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tables/__init__.py +0 -0
  385. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tables/cassandra_async.py +0 -0
  386. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tables/config.py +0 -0
  387. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tables/iam.py +0 -0
  388. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tables/knowledge.py +0 -0
  389. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tables/library.py +0 -0
  390. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/template/__init__.py +0 -0
  391. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/template/prompt_manager.py +0 -0
  392. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tool_service/__init__.py +0 -0
  393. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tool_service/joke/__init__.py +0 -0
  394. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph/tool_service/joke/service.py +0 -0
  395. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
  396. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
  397. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph_flow.egg-info/entry_points.txt +0 -0
  398. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.9}/trustgraph_flow.egg-info/requires.txt +0 -0
  399. {trustgraph_flow-2.6.7 → trustgraph_flow-2.6.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: 2.6.7
3
+ Version: 2.6.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
@@ -0,0 +1 @@
1
+ __version__ = "2.6.9"
@@ -96,20 +96,20 @@ class Processor(LlmService):
96
96
 
97
97
  api_kwargs = self._build_kwargs(model_name, effective_temperature)
98
98
 
99
- resp = self.openai.chat.completions.create(
100
- model=model_name,
101
- messages=[
102
- {
103
- "role": "user",
104
- "content": [
105
- {
106
- "type": "text",
107
- "text": prompt
108
- }
109
- ]
110
- }
111
- ],
112
- **api_kwargs,
99
+ messages = [
100
+ {
101
+ "role": "user",
102
+ "content": [
103
+ {
104
+ "type": "text",
105
+ "text": prompt
106
+ }
107
+ ]
108
+ }
109
+ ]
110
+
111
+ resp = self.variant.create_completion(
112
+ self.openai, model_name, messages, **api_kwargs,
113
113
  )
114
114
 
115
115
  inputtokens = resp.usage.prompt_tokens
@@ -176,28 +176,24 @@ class Processor(LlmService):
176
176
  try:
177
177
  api_kwargs = self._build_kwargs(model_name, effective_temperature)
178
178
 
179
- response = self.openai.chat.completions.create(
180
- model=model_name,
181
- messages=[
182
- {
183
- "role": "user",
184
- "content": [
185
- {
186
- "type": "text",
187
- "text": prompt
188
- }
189
- ]
190
- }
191
- ],
192
- stream=True,
193
- stream_options={"include_usage": True},
194
- **api_kwargs,
195
- )
179
+ messages = [
180
+ {
181
+ "role": "user",
182
+ "content": [
183
+ {
184
+ "type": "text",
185
+ "text": prompt
186
+ }
187
+ ]
188
+ }
189
+ ]
196
190
 
197
191
  total_input_tokens = 0
198
192
  total_output_tokens = 0
199
193
 
200
- for chunk in response:
194
+ async for chunk in self.variant.create_completion_stream(
195
+ self.openai, model_name, messages, **api_kwargs,
196
+ ):
201
197
  if chunk.choices and chunk.choices[0].delta.content:
202
198
  yield LlmChunk(
203
199
  text=chunk.choices[0].delta.content,
@@ -62,6 +62,20 @@ class Variant:
62
62
  """Extract thinking content from a streaming delta."""
63
63
  return getattr(delta, "reasoning_content", None)
64
64
 
65
+ def create_completion(self, client, model, messages, **kwargs):
66
+ """Call the completions API. Override for non-standard SDKs."""
67
+ return client.chat.completions.create(
68
+ model=model, messages=messages, **kwargs,
69
+ )
70
+
71
+ async def create_completion_stream(self, client, model, messages, **kwargs):
72
+ """Call the streaming completions API. Override for non-standard SDKs."""
73
+ for chunk in client.chat.completions.create(
74
+ model=model, messages=messages, stream=True,
75
+ stream_options={"include_usage": True}, **kwargs,
76
+ ):
77
+ yield chunk
78
+
65
79
 
66
80
  class OpenAIVariant(Variant):
67
81
  """Standard OpenAI API (GPT-4o, o1, o3, etc.)."""
@@ -96,46 +110,31 @@ class DeepSeekVariant(Variant):
96
110
  return {}
97
111
 
98
112
 
99
- class QwenVariant(Variant):
100
- """Qwen / Alibaba Cloud API."""
113
+ class DashScopeVariant(Variant):
114
+ """Alibaba Cloud DashScope API (Qwen models)."""
101
115
 
102
- name = "qwen"
116
+ name = "dashscope"
103
117
  token_param = "max_completion_tokens"
104
118
  temperature_with_thinking = True
105
119
 
106
120
  def completion_kwargs(self, max_output, temperature, thinking):
107
121
  enabled = thinking != "off"
108
- kwargs = {
122
+ return {
109
123
  self.token_param: max_output,
110
124
  "temperature": temperature,
111
125
  "extra_body": {
112
126
  "enable_thinking": enabled,
113
127
  },
114
128
  }
115
- return kwargs
116
129
 
117
130
  def thinking_kwargs(self, effort):
118
131
  return {}
119
132
 
120
133
 
121
- class DashScopeVariant(Variant):
122
- """Alibaba Cloud DashScope API (Qwen models via DashScope)."""
123
-
124
- name = "dashscope"
125
- token_param = "max_completion_tokens"
126
- temperature_with_thinking = True
127
-
128
- def completion_kwargs(self, max_output, temperature, thinking):
129
- enabled = thinking != "off"
130
- kwargs = {
131
- self.token_param: max_output,
132
- "temperature": temperature,
133
- "enable_thinking": enabled,
134
- }
135
- return kwargs
134
+ class QwenVariant(DashScopeVariant):
135
+ """Qwen alias for DashScope."""
136
136
 
137
- def thinking_kwargs(self, effort):
138
- return {}
137
+ name = "qwen"
139
138
 
140
139
 
141
140
  class MistralVariant(Variant):
@@ -9,10 +9,12 @@ from trustgraph.provenance import (
9
9
  docrag_question_uri,
10
10
  docrag_grounding_uri,
11
11
  docrag_exploration_uri,
12
+ docrag_focus_uri,
12
13
  docrag_synthesis_uri,
13
14
  docrag_question_triples,
14
15
  grounding_triples,
15
16
  docrag_exploration_triples,
17
+ docrag_chunk_selection_triples,
16
18
  docrag_synthesis_triples,
17
19
  set_graph,
18
20
  GRAPH_RETRIEVAL,
@@ -21,19 +23,25 @@ from trustgraph.provenance import (
21
23
  # Module logger
22
24
  logger = logging.getLogger(__name__)
23
25
 
26
+ # When the caller does not specify a fetch_limit, reranking over-fetches this
27
+ # many times the final doc_limit as the candidate pool, so the cross-encoder can
28
+ # recover relevant chunks the bi-encoder ranked just outside the top doc_limit.
29
+ # This is only the fallback default: an explicit fetch_limit overrides it.
30
+ OVERFETCH_FACTOR = 3
31
+
24
32
  LABEL="http://www.w3.org/2000/01/rdf-schema#label"
25
33
 
26
34
  class Query:
27
35
 
28
36
  def __init__(
29
37
  self, rag, workspace, collection, verbose,
30
- doc_limit=20, track_usage=None,
38
+ fetch_limit=20, track_usage=None,
31
39
  ):
32
40
  self.rag = rag
33
41
  self.workspace = workspace
34
42
  self.collection = collection
35
43
  self.verbose = verbose
36
- self.doc_limit = doc_limit
44
+ self.fetch_limit = fetch_limit
37
45
  self.track_usage = track_usage
38
46
 
39
47
  async def extract_concepts(self, query):
@@ -91,7 +99,7 @@ class Query:
91
99
 
92
100
  # Query chunk matches for each concept concurrently
93
101
  per_concept_limit = max(
94
- 1, self.doc_limit // len(vectors)
102
+ 1, self.fetch_limit // len(vectors)
95
103
  )
96
104
 
97
105
  async def query_concept(vec):
@@ -140,6 +148,7 @@ class DocumentRag:
140
148
  def __init__(
141
149
  self, prompt_client, embeddings_client, doc_embeddings_client,
142
150
  fetch_chunk,
151
+ reranker_client=None,
143
152
  verbose=False,
144
153
  ):
145
154
 
@@ -150,12 +159,16 @@ class DocumentRag:
150
159
  self.doc_embeddings_client = doc_embeddings_client
151
160
  self.fetch_chunk = fetch_chunk
152
161
 
162
+ # Optional cross-encoder reranker. When None, the retrieval path is
163
+ # byte-identical to the pre-reranker behaviour.
164
+ self.reranker_client = reranker_client
165
+
153
166
  if self.verbose:
154
167
  logger.debug("DocumentRag initialized")
155
168
 
156
169
  async def query(
157
170
  self, query, workspace="default", collection="default",
158
- doc_limit=20, streaming=False, chunk_callback=None,
171
+ doc_limit=20, fetch_limit=0, streaming=False, chunk_callback=None,
159
172
  explain_callback=None, save_answer_callback=None,
160
173
  ):
161
174
  """
@@ -165,7 +178,10 @@ class DocumentRag:
165
178
  query: The query string
166
179
  workspace: Workspace for isolation (also scopes chunk lookup)
167
180
  collection: Collection identifier
168
- doc_limit: Max chunks to retrieve
181
+ doc_limit: Chunks selected into the synthesis prompt (after rerank)
182
+ fetch_limit: Candidate pool fetched from the vector store before
183
+ reranking. 0 = derive (OVERFETCH_FACTOR x doc_limit when a
184
+ reranker is wired, else doc_limit).
169
185
  streaming: Enable streaming LLM response
170
186
  chunk_callback: async def callback(chunk, end_of_stream) for streaming
171
187
  explain_callback: async def callback(triples, explain_id) for explainability
@@ -197,6 +213,7 @@ class DocumentRag:
197
213
  q_uri = docrag_question_uri(session_id)
198
214
  gnd_uri = docrag_grounding_uri(session_id)
199
215
  exp_uri = docrag_exploration_uri(session_id)
216
+ foc_uri = docrag_focus_uri(session_id)
200
217
  syn_uri = docrag_synthesis_uri(session_id)
201
218
 
202
219
  timestamp = datetime.now(timezone.utc).isoformat().replace("+00:00", "Z")
@@ -209,10 +226,21 @@ class DocumentRag:
209
226
  )
210
227
  await explain_callback(q_triples, q_uri)
211
228
 
229
+ # Resolve the candidate-pool size fetched from the vector store. When a
230
+ # reranker is wired, honour an explicit fetch_limit; if unset, fall back
231
+ # to the OVERFETCH_FACTOR heuristic. Never fetch fewer than doc_limit,
232
+ # else the rerank could not fill the prompt. Without a reranker, fetch
233
+ # doc_limit as before (byte-identical behaviour).
234
+ if self.reranker_client is not None:
235
+ fl = fetch_limit or (OVERFETCH_FACTOR * doc_limit)
236
+ fetch_count = max(fl, doc_limit)
237
+ else:
238
+ fetch_count = doc_limit
239
+
212
240
  q = Query(
213
241
  rag=self, workspace=workspace, collection=collection,
214
242
  verbose=self.verbose,
215
- doc_limit=doc_limit, track_usage=track_usage,
243
+ fetch_limit=fetch_count, track_usage=track_usage,
216
244
  )
217
245
 
218
246
  # Extract concepts from query (grounding step)
@@ -235,6 +263,7 @@ class DocumentRag:
235
263
  docs, chunk_ids = await q.get_docs(concepts)
236
264
 
237
265
  # Emit exploration explainability after chunks retrieved
266
+ # (full candidate set, before any reranking)
238
267
  if explain_callback:
239
268
  exp_triples = set_graph(
240
269
  docrag_exploration_triples(exp_uri, gnd_uri, len(chunk_ids), chunk_ids),
@@ -242,6 +271,45 @@ class DocumentRag:
242
271
  )
243
272
  await explain_callback(exp_triples, exp_uri)
244
273
 
274
+ # Optional cross-encoder reranking pass between retrieval and
275
+ # synthesis. Mirrors GraphRAG's reranker usage but with a single
276
+ # query (the question). When no reranker is wired, this block is
277
+ # skipped entirely and behaviour is byte-identical to before.
278
+ reranked = False
279
+ if self.reranker_client is not None and docs:
280
+ results = await self.reranker_client.rerank(
281
+ queries=[{"id": "0", "text": query}],
282
+ documents=[
283
+ {"id": str(i), "text": d} for i, d in enumerate(docs)
284
+ ],
285
+ # Narrow the over-fetched candidate pool down to the final
286
+ # doc_limit requested for synthesis.
287
+ limit=doc_limit,
288
+ )
289
+
290
+ # results are sorted desc by score and truncated to limit by the
291
+ # reranker service, so order gives the surviving top-N directly.
292
+ order = [int(r.document_id) for r in results]
293
+ docs = [docs[i] for i in order]
294
+ chunk_ids = [chunk_ids[i] for i in order]
295
+ reranked = True
296
+
297
+ # Emit chunk-selection (focus) explainability: surviving chunks
298
+ # with their cross-encoder scores, derived from exploration.
299
+ if explain_callback:
300
+ selected_chunks_with_scores = [
301
+ {"chunk_id": chunk_ids[i], "score": r.score}
302
+ for i, r in enumerate(results)
303
+ ]
304
+ foc_triples = set_graph(
305
+ docrag_chunk_selection_triples(
306
+ foc_uri, exp_uri,
307
+ selected_chunks_with_scores, session_id,
308
+ ),
309
+ GRAPH_RETRIEVAL
310
+ )
311
+ await explain_callback(foc_triples, foc_uri)
312
+
245
313
  if self.verbose:
246
314
  logger.debug("Invoking LLM...")
247
315
  logger.debug(f"Documents: {docs}")
@@ -291,9 +359,15 @@ class DocumentRag:
291
359
  logger.warning(f"Failed to save answer to librarian: {e}")
292
360
  synthesis_doc_id = None
293
361
 
362
+ # When reranking ran, synthesis derives from the focus (the
363
+ # reranked chunks actually fed to the LLM), as GraphRAG always does.
364
+ # When no reranker is wired, there is no focus stage, so synthesis
365
+ # derives from exploration (the unchanged no-op lineage) - a
366
+ # deliberate divergence from GraphRAG's always-on focus.
367
+ syn_parent = foc_uri if reranked else exp_uri
294
368
  syn_triples = set_graph(
295
369
  docrag_synthesis_triples(
296
- syn_uri, exp_uri,
370
+ syn_uri, syn_parent,
297
371
  document_id=synthesis_doc_id,
298
372
  in_token=synthesis_result.in_token if synthesis_result else None,
299
373
  out_token=synthesis_result.out_token if synthesis_result else None,
@@ -13,6 +13,7 @@ from . document_rag import DocumentRag
13
13
  from ... base import FlowProcessor, ConsumerSpec, ProducerSpec
14
14
  from ... base import PromptClientSpec, EmbeddingsClientSpec
15
15
  from ... base import DocumentEmbeddingsClientSpec
16
+ from ... base import RerankerClientSpec
16
17
  from ... base import LibrarianSpec
17
18
 
18
19
  # Module logger
@@ -28,14 +29,21 @@ class Processor(FlowProcessor):
28
29
 
29
30
  doc_limit = params.get("doc_limit", 5)
30
31
 
32
+ # Instance-default candidate-pool size fetched before cross-encoder
33
+ # reranking; the rerank step narrows it back down to doc_limit for the
34
+ # LLM. 0 means the core derives it (OVERFETCH_FACTOR x doc_limit).
35
+ fetch_limit = params.get("fetch_limit", 0)
36
+
31
37
  super(Processor, self).__init__(
32
38
  **params | {
33
39
  "id": id,
34
40
  "doc_limit": doc_limit,
41
+ "fetch_limit": fetch_limit,
35
42
  }
36
43
  )
37
44
 
38
45
  self.doc_limit = doc_limit
46
+ self.fetch_limit = fetch_limit
39
47
 
40
48
  self.register_specification(
41
49
  ConsumerSpec(
@@ -66,6 +74,13 @@ class Processor(FlowProcessor):
66
74
  )
67
75
  )
68
76
 
77
+ self.register_specification(
78
+ RerankerClientSpec(
79
+ request_name = "reranker-request",
80
+ response_name = "reranker-response",
81
+ )
82
+ )
83
+
69
84
  self.register_specification(
70
85
  ProducerSpec(
71
86
  name = "response",
@@ -105,6 +120,7 @@ class Processor(FlowProcessor):
105
120
  doc_embeddings_client = flow("document-embeddings-request"),
106
121
  prompt_client = flow("prompt-request"),
107
122
  fetch_chunk = fetch_chunk,
123
+ reranker_client = flow("reranker-request"),
108
124
  verbose=True,
109
125
  )
110
126
 
@@ -113,6 +129,13 @@ class Processor(FlowProcessor):
113
129
  else:
114
130
  doc_limit = self.doc_limit
115
131
 
132
+ # Candidate-pool size: per-request override, else the instance
133
+ # default; 0 lets the core derive it from doc_limit.
134
+ if v.fetch_limit:
135
+ fetch_limit = v.fetch_limit
136
+ else:
137
+ fetch_limit = self.fetch_limit
138
+
116
139
  async def send_explainability(triples, explain_id):
117
140
  await flow("explainability").send(Triples(
118
141
  metadata=Metadata(
@@ -163,6 +186,7 @@ class Processor(FlowProcessor):
163
186
  workspace=flow.workspace,
164
187
  collection=v.collection,
165
188
  doc_limit=doc_limit,
189
+ fetch_limit=fetch_limit,
166
190
  streaming=True,
167
191
  chunk_callback=send_chunk,
168
192
  explain_callback=send_explainability,
@@ -188,6 +212,7 @@ class Processor(FlowProcessor):
188
212
  workspace=flow.workspace,
189
213
  collection=v.collection,
190
214
  doc_limit=doc_limit,
215
+ fetch_limit=fetch_limit,
191
216
  explain_callback=send_explainability,
192
217
  save_answer_callback=save_answer,
193
218
  )
@@ -243,6 +268,15 @@ class Processor(FlowProcessor):
243
268
  help=f'Default document fetch limit (default: 10)'
244
269
  )
245
270
 
271
+ parser.add_argument(
272
+ '--fetch-limit',
273
+ type=int,
274
+ default=0,
275
+ help='Candidate chunks to fetch from the vector store and rerank '
276
+ 'before keeping the top doc-limit for the LLM '
277
+ '(default: derive from doc-limit)'
278
+ )
279
+
246
280
  def run():
247
281
 
248
282
  Processor.launch(default_ident, __doc__)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trustgraph-flow
3
- Version: 2.6.7
3
+ Version: 2.6.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__ = "2.6.7"