textgraph-kg 3.2.0__tar.gz → 3.2.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 (229) hide show
  1. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/CHANGELOG.md +18 -0
  2. textgraph_kg-3.2.1/LICENSE +21 -0
  3. textgraph_kg-3.2.0/README.md → textgraph_kg-3.2.1/PKG-INFO +142 -9
  4. textgraph_kg-3.2.0/PKG-INFO → textgraph_kg-3.2.1/README.md +50 -80
  5. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/pyproject.toml +27 -1
  6. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/__init__.py +1 -1
  7. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/cli.py +2 -0
  8. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/uv.lock +4 -4
  9. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.gitattributes +0 -0
  10. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/benchmark.yml +0 -0
  11. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/determinism.yml +0 -0
  12. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/lint-and-typecheck.yml +0 -0
  13. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/pages.yml +0 -0
  14. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/pre-commit.yml +0 -0
  15. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/publish-pypi.yml +0 -0
  16. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/release.yml +0 -0
  17. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/test.yml +0 -0
  18. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.gitignore +0 -0
  19. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.pre-commit-config.yaml +0 -0
  20. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/ARCHITECTURE.md +0 -0
  21. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/BENCHMARKS.md +0 -0
  22. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/PLAN.md +0 -0
  23. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/SECURITY.md +0 -0
  24. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/TextGraph Architecture Gap Analysis.docx +0 -0
  25. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/TextGraph_Engineering_Blueprint.pdf +0 -0
  26. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/__init__.py +0 -0
  27. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/quality.py +0 -0
  28. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/reasoning.py +0 -0
  29. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/retrieval.py +0 -0
  30. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/run.py +0 -0
  31. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/security.py +0 -0
  32. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/COMPARISON_SEMANTICA.md +0 -0
  33. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/RUNNING.md +0 -0
  34. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/SKILL.md +0 -0
  35. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/how-it-works.md +0 -0
  36. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/plans/chat-console.md +0 -0
  37. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/plans/neo4j-backend.md +0 -0
  38. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/retrieval-routing.md +0 -0
  39. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/site/index.html +0 -0
  40. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/requirements-dev.txt +0 -0
  41. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/requirements-full.txt +0 -0
  42. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/requirements.txt +0 -0
  43. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/schema/graph.schema.json +0 -0
  44. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/schema/manifest.schema.json +0 -0
  45. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/schema/schema.yaml +0 -0
  46. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/schema/validate.py +0 -0
  47. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/__init__.py +0 -0
  48. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/determinism/test_byte_identical.py +0 -0
  49. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/README.md +0 -0
  50. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/adr/adr-0007-case-linking.md +0 -0
  51. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/adr/adr-0008-retention.md +0 -0
  52. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/chat/case-4471.chat +0 -0
  53. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/conflict/filing-a.md +0 -0
  54. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/conflict/filing-b.md +0 -0
  55. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/contradiction/filing.md +0 -0
  56. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/decision_chain/adr-0001-retention.md +0 -0
  57. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/decision_chain/adr-0002-citations.md +0 -0
  58. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/decision_chain/adr-0003-tooling.md +0 -0
  59. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/docs/aml-overview.md +0 -0
  60. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/docs/shell-company.md +0 -0
  61. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/docs/wire-transfers.md +0 -0
  62. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/secure/public.md +0 -0
  63. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/secure/secret.md +0 -0
  64. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/temporal/correction.md +0 -0
  65. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpus_docs/adr-0001.md +0 -0
  66. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpus_docs/mixed-encoding.log +0 -0
  67. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpus_docs/notes.txt +0 -0
  68. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/er/aliases.md +0 -0
  69. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_agent_session.py +0 -0
  70. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_artifacts.py +0 -0
  71. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_duckdb_store.py +0 -0
  72. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_edge_provenance.py +0 -0
  73. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_er_pipeline.py +0 -0
  74. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_ie_pipeline.py +0 -0
  75. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_incremental.py +0 -0
  76. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_incremental_stress.py +0 -0
  77. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_provenance_integrity.py +0 -0
  78. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_quality_benchmark.py +0 -0
  79. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_report_corpora.py +0 -0
  80. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_security_redteam.py +0 -0
  81. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_canonical_doc.py +0 -0
  82. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_canonical_json.py +0 -0
  83. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_chat.py +0 -0
  84. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_chat_decisions.py +0 -0
  85. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_cli.py +0 -0
  86. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_config.py +0 -0
  87. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_conflicts.py +0 -0
  88. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_console.py +0 -0
  89. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_content_address.py +0 -0
  90. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_decision_chain.py +0 -0
  91. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_decisions.py +0 -0
  92. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_dense.py +0 -0
  93. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_doctor.py +0 -0
  94. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_gliner_backend.py +0 -0
  95. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_got.py +0 -0
  96. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_gql.py +0 -0
  97. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_ingest.py +0 -0
  98. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_integrations.py +0 -0
  99. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l0_ingest.py +0 -0
  100. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l1_structure.py +0 -0
  101. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l2_linguistic.py +0 -0
  102. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l3_encoder_ie.py +0 -0
  103. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l4_llm.py +0 -0
  104. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l5_resolution.py +0 -0
  105. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l6_claims.py +0 -0
  106. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l7_analytics.py +0 -0
  107. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l7_layout.py +0 -0
  108. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l8_retrieval.py +0 -0
  109. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_llm_augment.py +0 -0
  110. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_mcp_tools.py +0 -0
  111. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_offsets.py +0 -0
  112. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_richdocs.py +0 -0
  113. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_routing.py +0 -0
  114. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_security.py +0 -0
  115. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_vision.py +0 -0
  116. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/__init__.py +0 -0
  117. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/api.py +0 -0
  118. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/chat.py +0 -0
  119. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/ingest.py +0 -0
  120. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/page.py +0 -0
  121. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/renderer.py +0 -0
  122. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/server.py +0 -0
  123. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/__init__.py +0 -0
  124. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/canonical_doc.py +0 -0
  125. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/canonical_json.py +0 -0
  126. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/config.py +0 -0
  127. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/content_address.py +0 -0
  128. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/incremental.py +0 -0
  129. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/layout.py +0 -0
  130. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/offsets.py +0 -0
  131. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/doctor.py +0 -0
  132. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/got/__init__.py +0 -0
  133. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/got/reason.py +0 -0
  134. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/got/thought.py +0 -0
  135. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/__init__.py +0 -0
  136. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/ast.py +0 -0
  137. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/engine.py +0 -0
  138. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/errors.py +0 -0
  139. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/parser.py +0 -0
  140. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/tokenizer.py +0 -0
  141. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/integrations/__init__.py +0 -0
  142. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/integrations/adapters.py +0 -0
  143. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/__init__.py +0 -0
  144. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/base.py +0 -0
  145. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/dispatch.py +0 -0
  146. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/logs.py +0 -0
  147. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/markdown.py +0 -0
  148. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/plaintext.py +0 -0
  149. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/richdocs.py +0 -0
  150. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/structured.py +0 -0
  151. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/transcript.py +0 -0
  152. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l1_structure/__init__.py +0 -0
  153. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l1_structure/decisions.py +0 -0
  154. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l1_structure/emit.py +0 -0
  155. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l1_structure/structure.py +0 -0
  156. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l2_linguistic/__init__.py +0 -0
  157. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l2_linguistic/negation.py +0 -0
  158. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l2_linguistic/sentences.py +0 -0
  159. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/__init__.py +0 -0
  160. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/canonicalize.py +0 -0
  161. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/emit_ie.py +0 -0
  162. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/extract.py +0 -0
  163. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/gliner_backend.py +0 -0
  164. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/model.py +0 -0
  165. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/rules.py +0 -0
  166. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/__init__.py +0 -0
  167. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/cache.py +0 -0
  168. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/client.py +0 -0
  169. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/extract.py +0 -0
  170. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/synthesize.py +0 -0
  171. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/__init__.py +0 -0
  172. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/audit.py +0 -0
  173. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/blocking.py +0 -0
  174. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/clustering.py +0 -0
  175. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/emit_er.py +0 -0
  176. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/metrics.py +0 -0
  177. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/model.py +0 -0
  178. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/resolve.py +0 -0
  179. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/scoring.py +0 -0
  180. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/similarity.py +0 -0
  181. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/splink_backend.py +0 -0
  182. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l6_graph_model/__init__.py +0 -0
  183. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l6_graph_model/claims.py +0 -0
  184. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l6_graph_model/conflicts.py +0 -0
  185. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l6_graph_model/temporal.py +0 -0
  186. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/__init__.py +0 -0
  187. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/algorithms.py +0 -0
  188. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/analyze.py +0 -0
  189. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/communities.py +0 -0
  190. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/enrich.py +0 -0
  191. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/layout.py +0 -0
  192. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/__init__.py +0 -0
  193. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/bm25.py +0 -0
  194. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/dense.py +0 -0
  195. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/emit_chunks.py +0 -0
  196. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/engine.py +0 -0
  197. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/grounding.py +0 -0
  198. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/model.py +0 -0
  199. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/narrate.py +0 -0
  200. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/rerank.py +0 -0
  201. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/routing.py +0 -0
  202. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/vision/__init__.py +0 -0
  203. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/vision/embed.py +0 -0
  204. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/vision/maxsim.py +0 -0
  205. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/vision/retriever.py +0 -0
  206. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/__init__.py +0 -0
  207. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/analytics_lite.py +0 -0
  208. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/artifacts.py +0 -0
  209. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/graph_html.py +0 -0
  210. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/graph_json.py +0 -0
  211. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/prov.py +0 -0
  212. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/report.py +0 -0
  213. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/mcp/__init__.py +0 -0
  214. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/mcp/server.py +0 -0
  215. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/mcp/tools.py +0 -0
  216. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/pipeline.py +0 -0
  217. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/__init__.py +0 -0
  218. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/abac.py +0 -0
  219. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/context.py +0 -0
  220. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/policy.py +0 -0
  221. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/rebac.py +0 -0
  222. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/store/__init__.py +0 -0
  223. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/store/base.py +0 -0
  224. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/store/duckdb_store.py +0 -0
  225. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/store/memory.py +0 -0
  226. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/watch.py +0 -0
  227. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph-engineering-research.md +0 -0
  228. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/ui/graph_html/README.md +0 -0
  229. {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/ui/pipeline_console/README.md +0 -0
@@ -6,6 +6,24 @@ to Semantic Versioning.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [3.2.1] - 2026-08-08
10
+
11
+ **Packaging & presentation polish** (no code/API changes). Makes the PyPI page and repo
12
+ look the part next to [Semantica](docs/COMPARISON_SEMANTICA.md).
13
+
14
+ ### Added
15
+ - **`LICENSE`** file (MIT) — so the license is detectable on GitHub and shipped in the sdist.
16
+ - **PyPI project metadata** — `[project.urls]` (Homepage / Repository / Documentation /
17
+ Changelog / Live demo / Bug Tracker → the PyPI sidebar) and trove `classifiers` (Python
18
+ versions, MIT, audiences, topics), plus `license-files`.
19
+ - **README** — a compact **TextGraph vs. Semantica** section (where TextGraph leads: byte-
20
+ identical builds, re-hashable citations, zero-LLM core; and the honest roadmap: RDF store,
21
+ OWL/SHACL, more providers/vector stores). A **Python-API** quick start alongside the CLI.
22
+
23
+ ### Fixed
24
+ - **Broken README badges** — the CI badge pointed at a non-existent `ci.yml`; replaced with
25
+ working **tests** + **determinism** workflow badges and an MIT license badge.
26
+
9
27
  ## [3.2.0] - 2026-08-08
10
28
 
11
29
  **TextGraph 3.2 — LLM-augmented intelligence, without losing the moat.** Adds semantic
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 krishddd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,14 +1,107 @@
1
+ Metadata-Version: 2.4
2
+ Name: textgraph-kg
3
+ Version: 3.2.1
4
+ Summary: Turn any textual corpus into a queryable knowledge graph with byte-level provenance on every claim. Local-first, deterministic, zero-LLM-by-default.
5
+ Project-URL: Homepage, https://krishddd.github.io/Wiki_textgraph/
6
+ Project-URL: Repository, https://github.com/krishddd/Wiki_textgraph
7
+ Project-URL: Documentation, https://github.com/krishddd/Wiki_textgraph/blob/main/docs/RUNNING.md
8
+ Project-URL: Changelog, https://github.com/krishddd/Wiki_textgraph/blob/main/CHANGELOG.md
9
+ Project-URL: Live demo, https://krishddd.github.io/Wiki_textgraph/
10
+ Project-URL: Bug Tracker, https://github.com/krishddd/Wiki_textgraph/issues
11
+ Author: krishddd
12
+ License: MIT
13
+ License-File: LICENSE
14
+ Keywords: deterministic,information-extraction,knowledge-graph,mcp,provenance,rag
15
+ Classifier: Development Status :: 5 - Production/Stable
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Intended Audience :: Financial and Insurance Industry
18
+ Classifier: Intended Audience :: Legal Industry
19
+ Classifier: License :: OSI Approved :: MIT License
20
+ Classifier: Operating System :: OS Independent
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
26
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
+ Classifier: Topic :: Text Processing :: Linguistic
28
+ Classifier: Typing :: Typed
29
+ Requires-Python: >=3.11
30
+ Requires-Dist: blake3>=0.4.1
31
+ Requires-Dist: markdown-it-py>=3.0.0
32
+ Requires-Dist: pypdf>=4.0.0
33
+ Requires-Dist: pyyaml>=6.0
34
+ Provides-Extra: dev
35
+ Requires-Dist: jsonschema>=4.20.0; extra == 'dev'
36
+ Requires-Dist: mypy>=1.11.0; extra == 'dev'
37
+ Requires-Dist: pre-commit>=3.8.0; extra == 'dev'
38
+ Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
39
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
40
+ Requires-Dist: ruff>=0.6.0; extra == 'dev'
41
+ Requires-Dist: types-pyyaml>=6.0; extra == 'dev'
42
+ Provides-Extra: embed
43
+ Requires-Dist: sentence-transformers>=3.0.0; extra == 'embed'
44
+ Provides-Extra: er
45
+ Requires-Dist: duckdb>=1.0.0; extra == 'er'
46
+ Requires-Dist: splink>=4.0.0; extra == 'er'
47
+ Provides-Extra: full
48
+ Requires-Dist: docling>=2.0.0; extra == 'full'
49
+ Requires-Dist: drain3>=0.9.11; extra == 'full'
50
+ Requires-Dist: duckdb>=1.0.0; extra == 'full'
51
+ Requires-Dist: fastcoref>=2.1.6; extra == 'full'
52
+ Requires-Dist: gliner>=0.2.0; extra == 'full'
53
+ Requires-Dist: leidenalg>=0.10.0; extra == 'full'
54
+ Requires-Dist: mcp>=1.0.0; extra == 'full'
55
+ Requires-Dist: networkx>=3.2; extra == 'full'
56
+ Requires-Dist: pyarrow>=15.0.0; extra == 'full'
57
+ Requires-Dist: python-igraph>=0.11.0; extra == 'full'
58
+ Requires-Dist: spacy>=3.7.0; extra == 'full'
59
+ Requires-Dist: splink>=4.0.0; extra == 'full'
60
+ Requires-Dist: tree-sitter>=0.21.0; extra == 'full'
61
+ Provides-Extra: graph
62
+ Requires-Dist: duckdb>=1.0.0; extra == 'graph'
63
+ Requires-Dist: leidenalg>=0.10.0; extra == 'graph'
64
+ Requires-Dist: networkx>=3.2; extra == 'graph'
65
+ Requires-Dist: pyarrow>=15.0.0; extra == 'graph'
66
+ Requires-Dist: python-igraph>=0.11.0; extra == 'graph'
67
+ Provides-Extra: ie
68
+ Requires-Dist: fastcoref>=2.1.6; extra == 'ie'
69
+ Requires-Dist: gliner>=0.2.0; extra == 'ie'
70
+ Requires-Dist: spacy>=3.7.0; extra == 'ie'
71
+ Provides-Extra: ingest
72
+ Requires-Dist: docling>=2.0.0; extra == 'ingest'
73
+ Requires-Dist: drain3>=0.9.11; extra == 'ingest'
74
+ Requires-Dist: tree-sitter>=0.21.0; extra == 'ingest'
75
+ Provides-Extra: langchain
76
+ Requires-Dist: langchain-core>=0.3.0; extra == 'langchain'
77
+ Provides-Extra: llamaindex
78
+ Requires-Dist: llama-index-core>=0.11.0; extra == 'llamaindex'
79
+ Provides-Extra: mcp
80
+ Requires-Dist: mcp>=1.0.0; extra == 'mcp'
81
+ Provides-Extra: neo4j
82
+ Requires-Dist: neo4j>=5.0.0; extra == 'neo4j'
83
+ Provides-Extra: ocr
84
+ Requires-Dist: rapidocr-onnxruntime>=1.3.0; extra == 'ocr'
85
+ Provides-Extra: rerank
86
+ Requires-Dist: sentence-transformers>=3.0.0; extra == 'rerank'
87
+ Provides-Extra: security
88
+ Requires-Dist: openfga-sdk>=0.5.0; extra == 'security'
89
+ Provides-Extra: vision
90
+ Requires-Dist: colpali-engine>=0.3.0; extra == 'vision'
91
+ Description-Content-Type: text/markdown
92
+
1
93
  # TextGraph
2
94
 
3
- [![PyPI](https://img.shields.io/pypi/v/textgraph-kg?logo=pypi&logoColor=white)](https://pypi.org/project/textgraph-kg/)
95
+ [![PyPI](https://img.shields.io/pypi/v/textgraph-kg?logo=pypi&logoColor=white&label=PyPI)](https://pypi.org/project/textgraph-kg/)
4
96
  [![Python](https://img.shields.io/pypi/pyversions/textgraph-kg?logo=python&logoColor=white)](https://pypi.org/project/textgraph-kg/)
5
- [![Live demo](https://img.shields.io/badge/demo-graph.html-3b5bdb)](https://krishddd.github.io/Wiki_textgraph/)
6
- [![CI](https://github.com/krishddd/Wiki_textgraph/actions/workflows/ci.yml/badge.svg)](https://github.com/krishddd/Wiki_textgraph/actions/workflows/ci.yml)
7
- [![License](https://img.shields.io/github/license/krishddd/Wiki_textgraph)](LICENSE)
97
+ [![Tests](https://img.shields.io/github/actions/workflow/status/krishddd/Wiki_textgraph/test.yml?branch=main&logo=github&label=tests)](https://github.com/krishddd/Wiki_textgraph/actions/workflows/test.yml)
98
+ [![Determinism](https://img.shields.io/github/actions/workflow/status/krishddd/Wiki_textgraph/determinism.yml?branch=main&label=determinism)](https://github.com/krishddd/Wiki_textgraph/actions/workflows/determinism.yml)
99
+ [![Live demo](https://img.shields.io/badge/demo-graph.html-3b5bdb?logo=googlechrome&logoColor=white)](https://krishddd.github.io/Wiki_textgraph/)
100
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
8
101
 
9
102
  > Turn a pile of case documents into a **queryable knowledge graph with byte-level provenance on every claim** — local-first, deterministic, and agent-legible.
10
103
  >
11
- > **Install:** `pip install textgraph-kg` · **[Live demo →](https://krishddd.github.io/Wiki_textgraph/)**
104
+ > **`pip install textgraph-kg`** · **[Live demo →](https://krishddd.github.io/Wiki_textgraph/)** · **[vs. Semantica →](docs/COMPARISON_SEMANTICA.md)**
12
105
 
13
106
  TextGraph is built to help investigators make sense of **financial-crime and technical-crime** evidence: filings, contracts, wire-transfer logs, SARs, memos, chat/email exports, and reports. It ingests that corpus and emits a structured, versioned graph that shows **who is connected to whom, through what, and — crucially — *why*** — with every edge carrying the exact source span that supports it, so a finding can be re-verified and stands up to audit.
14
107
 
@@ -26,6 +119,25 @@ Most GraphRAG tools build the graph *with an LLM*: extraction is non-determinist
26
119
 
27
120
  Local-first / DuckDB stays the default; a graph DB (Neo4j) is an *optional* scale-out backend, never required. The trade is deliberate: the deterministic default caps peak recall vs an LLM extractor, which is exactly why the higher-recall `[ie]` and opt-in LLM paths exist — but the reproducibility and re-verifiable citations are the moat.
28
121
 
122
+ ## TextGraph vs. Semantica
123
+
124
+ [Semantica](https://github.com/semantica-agi/semantica) is the closest peer — same regulated-domain focus, PROV-O provenance, decision intelligence (`record_decision` / `trace_decision_chain` / `find_similar_decisions`), conflict detection, and bi-temporal facts. Independent convergence on the same shape is a good sign. Here's the honest split ([full comparison →](docs/COMPARISON_SEMANTICA.md)):
125
+
126
+ **✅ Where TextGraph leads**
127
+
128
+ - **Byte-identical builds, gated in CI** — diff two runs, reproduce any finding. (Semantica guarantees deterministic *reasoning*, not a byte-identical *build*.)
129
+ - **Re-hashable byte-span citations** — every non-generated edge re-verifies against source bytes; 100% re-verify is gated. (Stronger than document/field-level provenance.)
130
+ - **Zero-LLM, dependency-free core** — the whole default pipeline runs CPU-only, no API key, no vector DB. LLM/embeddings are opt-in and `GENERATED`-quarantined.
131
+
132
+ **🧭 Where to improve (roadmap)**
133
+
134
+ - **Storage breadth** — Semantica is polyglot (RDF *and* LPG: Oxigraph/Jena/Neo4j/Neptune). TextGraph is DuckDB-default with a Neo4j design; native RDF triple-store export is next.
135
+ - **Formal ontology & reasoning** — Semantica has OWL/SHACL/SPARQL + Datalog/Rete. TextGraph has typed labels + Graph-of-Thoughts; SHACL validation and a rule engine are on the roadmap.
136
+ - **Provider & vector-store breadth** — Semantica spans LiteLLM providers and FAISS/Qdrant/Weaviate/Milvus. TextGraph ships one OpenAI-compatible client + a cosine index; more backends welcome.
137
+ - **Ecosystem polish** — Semantica has a hosted docs site, MCP/REST surface, and published benchmarks; TextGraph has an MCP server + honest fixture benchmarks and is growing the rest.
138
+
139
+ The design rule that keeps the moat while closing the gap: **the LLM augments, it never becomes ground truth** — anything model-authored is `GENERATED`-tagged next to its re-verifiable citations.
140
+
29
141
  ## Who it's for
30
142
 
31
143
  - **Financial-crime analysts** — trace structuring/layering, link cases through a shared beneficial owner, follow the money across accounts, and answer *why* two cases are related with a cited path.
@@ -56,11 +168,32 @@ Unknown extensions fall back to plain text; a format needing a missing extra is
56
168
  > how to open the interactive UI.
57
169
 
58
170
  ```bash
59
- # Simplest install (plain pip, three small pure-Python packages — no GPU, no network):
60
- python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
61
- pip install -r requirements.txt && pip install -e .
62
- # (or, with uv: uv sync — then prefix commands with `uv run`)
171
+ pip install textgraph-kg # the import package + CLI are named `textgraph`
172
+ ```
63
173
 
174
+ **Python API** — build once, then call the eight typed, cited tools:
175
+
176
+ ```python
177
+ from textgraph.pipeline import build
178
+ from textgraph.l8_retrieval import QueryEngine
179
+
180
+ result = build("./case-files") # deterministic; byte-identical graph.json
181
+ engine = QueryEngine(result.nodes, result.edges)
182
+
183
+ hits = engine.search("who transferred funds to whom", k=5)
184
+ for h in hits.hits:
185
+ print(h.name, "→", [c.ref() for c in h.citations]) # every hit re-verifiable
186
+
187
+ engine.path("Acme Corp", "Gamma Holdings") # max-likelihood cited path
188
+ engine.why("Acme Corp") # cited claims + validity windows
189
+ engine.conflicts() # single-truth conflicts, surfaced not merged
190
+ engine.trace_decision_chain("beneficial owner policy") # decision lineage
191
+ ```
192
+
193
+ **CLI** — the same tools from the shell:
194
+
195
+ ```bash
196
+ # ...or from source (dev): pip install -r requirements.txt && pip install -e .
64
197
  textgraph build ./case-files -o textgraph-out
65
198
  # → textgraph-out/graph.json, GRAPH_REPORT.md, graph.html, schema.yaml, manifest.json
66
199
 
@@ -1,85 +1,15 @@
1
- Metadata-Version: 2.4
2
- Name: textgraph-kg
3
- Version: 3.2.0
4
- Summary: Turn any textual corpus into a queryable knowledge graph with byte-level provenance on every claim. Local-first, deterministic, zero-LLM-by-default.
5
- Author: krishddd
6
- License: MIT
7
- Keywords: deterministic,information-extraction,knowledge-graph,mcp,provenance,rag
8
- Requires-Python: >=3.11
9
- Requires-Dist: blake3>=0.4.1
10
- Requires-Dist: markdown-it-py>=3.0.0
11
- Requires-Dist: pypdf>=4.0.0
12
- Requires-Dist: pyyaml>=6.0
13
- Provides-Extra: dev
14
- Requires-Dist: jsonschema>=4.20.0; extra == 'dev'
15
- Requires-Dist: mypy>=1.11.0; extra == 'dev'
16
- Requires-Dist: pre-commit>=3.8.0; extra == 'dev'
17
- Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
18
- Requires-Dist: pytest>=8.0.0; extra == 'dev'
19
- Requires-Dist: ruff>=0.6.0; extra == 'dev'
20
- Requires-Dist: types-pyyaml>=6.0; extra == 'dev'
21
- Provides-Extra: embed
22
- Requires-Dist: sentence-transformers>=3.0.0; extra == 'embed'
23
- Provides-Extra: er
24
- Requires-Dist: duckdb>=1.0.0; extra == 'er'
25
- Requires-Dist: splink>=4.0.0; extra == 'er'
26
- Provides-Extra: full
27
- Requires-Dist: docling>=2.0.0; extra == 'full'
28
- Requires-Dist: drain3>=0.9.11; extra == 'full'
29
- Requires-Dist: duckdb>=1.0.0; extra == 'full'
30
- Requires-Dist: fastcoref>=2.1.6; extra == 'full'
31
- Requires-Dist: gliner>=0.2.0; extra == 'full'
32
- Requires-Dist: leidenalg>=0.10.0; extra == 'full'
33
- Requires-Dist: mcp>=1.0.0; extra == 'full'
34
- Requires-Dist: networkx>=3.2; extra == 'full'
35
- Requires-Dist: pyarrow>=15.0.0; extra == 'full'
36
- Requires-Dist: python-igraph>=0.11.0; extra == 'full'
37
- Requires-Dist: spacy>=3.7.0; extra == 'full'
38
- Requires-Dist: splink>=4.0.0; extra == 'full'
39
- Requires-Dist: tree-sitter>=0.21.0; extra == 'full'
40
- Provides-Extra: graph
41
- Requires-Dist: duckdb>=1.0.0; extra == 'graph'
42
- Requires-Dist: leidenalg>=0.10.0; extra == 'graph'
43
- Requires-Dist: networkx>=3.2; extra == 'graph'
44
- Requires-Dist: pyarrow>=15.0.0; extra == 'graph'
45
- Requires-Dist: python-igraph>=0.11.0; extra == 'graph'
46
- Provides-Extra: ie
47
- Requires-Dist: fastcoref>=2.1.6; extra == 'ie'
48
- Requires-Dist: gliner>=0.2.0; extra == 'ie'
49
- Requires-Dist: spacy>=3.7.0; extra == 'ie'
50
- Provides-Extra: ingest
51
- Requires-Dist: docling>=2.0.0; extra == 'ingest'
52
- Requires-Dist: drain3>=0.9.11; extra == 'ingest'
53
- Requires-Dist: tree-sitter>=0.21.0; extra == 'ingest'
54
- Provides-Extra: langchain
55
- Requires-Dist: langchain-core>=0.3.0; extra == 'langchain'
56
- Provides-Extra: llamaindex
57
- Requires-Dist: llama-index-core>=0.11.0; extra == 'llamaindex'
58
- Provides-Extra: mcp
59
- Requires-Dist: mcp>=1.0.0; extra == 'mcp'
60
- Provides-Extra: neo4j
61
- Requires-Dist: neo4j>=5.0.0; extra == 'neo4j'
62
- Provides-Extra: ocr
63
- Requires-Dist: rapidocr-onnxruntime>=1.3.0; extra == 'ocr'
64
- Provides-Extra: rerank
65
- Requires-Dist: sentence-transformers>=3.0.0; extra == 'rerank'
66
- Provides-Extra: security
67
- Requires-Dist: openfga-sdk>=0.5.0; extra == 'security'
68
- Provides-Extra: vision
69
- Requires-Dist: colpali-engine>=0.3.0; extra == 'vision'
70
- Description-Content-Type: text/markdown
71
-
72
1
  # TextGraph
73
2
 
74
- [![PyPI](https://img.shields.io/pypi/v/textgraph-kg?logo=pypi&logoColor=white)](https://pypi.org/project/textgraph-kg/)
3
+ [![PyPI](https://img.shields.io/pypi/v/textgraph-kg?logo=pypi&logoColor=white&label=PyPI)](https://pypi.org/project/textgraph-kg/)
75
4
  [![Python](https://img.shields.io/pypi/pyversions/textgraph-kg?logo=python&logoColor=white)](https://pypi.org/project/textgraph-kg/)
76
- [![Live demo](https://img.shields.io/badge/demo-graph.html-3b5bdb)](https://krishddd.github.io/Wiki_textgraph/)
77
- [![CI](https://github.com/krishddd/Wiki_textgraph/actions/workflows/ci.yml/badge.svg)](https://github.com/krishddd/Wiki_textgraph/actions/workflows/ci.yml)
78
- [![License](https://img.shields.io/github/license/krishddd/Wiki_textgraph)](LICENSE)
5
+ [![Tests](https://img.shields.io/github/actions/workflow/status/krishddd/Wiki_textgraph/test.yml?branch=main&logo=github&label=tests)](https://github.com/krishddd/Wiki_textgraph/actions/workflows/test.yml)
6
+ [![Determinism](https://img.shields.io/github/actions/workflow/status/krishddd/Wiki_textgraph/determinism.yml?branch=main&label=determinism)](https://github.com/krishddd/Wiki_textgraph/actions/workflows/determinism.yml)
7
+ [![Live demo](https://img.shields.io/badge/demo-graph.html-3b5bdb?logo=googlechrome&logoColor=white)](https://krishddd.github.io/Wiki_textgraph/)
8
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)
79
9
 
80
10
  > Turn a pile of case documents into a **queryable knowledge graph with byte-level provenance on every claim** — local-first, deterministic, and agent-legible.
81
11
  >
82
- > **Install:** `pip install textgraph-kg` · **[Live demo →](https://krishddd.github.io/Wiki_textgraph/)**
12
+ > **`pip install textgraph-kg`** · **[Live demo →](https://krishddd.github.io/Wiki_textgraph/)** · **[vs. Semantica →](docs/COMPARISON_SEMANTICA.md)**
83
13
 
84
14
  TextGraph is built to help investigators make sense of **financial-crime and technical-crime** evidence: filings, contracts, wire-transfer logs, SARs, memos, chat/email exports, and reports. It ingests that corpus and emits a structured, versioned graph that shows **who is connected to whom, through what, and — crucially — *why*** — with every edge carrying the exact source span that supports it, so a finding can be re-verified and stands up to audit.
85
15
 
@@ -97,6 +27,25 @@ Most GraphRAG tools build the graph *with an LLM*: extraction is non-determinist
97
27
 
98
28
  Local-first / DuckDB stays the default; a graph DB (Neo4j) is an *optional* scale-out backend, never required. The trade is deliberate: the deterministic default caps peak recall vs an LLM extractor, which is exactly why the higher-recall `[ie]` and opt-in LLM paths exist — but the reproducibility and re-verifiable citations are the moat.
99
29
 
30
+ ## TextGraph vs. Semantica
31
+
32
+ [Semantica](https://github.com/semantica-agi/semantica) is the closest peer — same regulated-domain focus, PROV-O provenance, decision intelligence (`record_decision` / `trace_decision_chain` / `find_similar_decisions`), conflict detection, and bi-temporal facts. Independent convergence on the same shape is a good sign. Here's the honest split ([full comparison →](docs/COMPARISON_SEMANTICA.md)):
33
+
34
+ **✅ Where TextGraph leads**
35
+
36
+ - **Byte-identical builds, gated in CI** — diff two runs, reproduce any finding. (Semantica guarantees deterministic *reasoning*, not a byte-identical *build*.)
37
+ - **Re-hashable byte-span citations** — every non-generated edge re-verifies against source bytes; 100% re-verify is gated. (Stronger than document/field-level provenance.)
38
+ - **Zero-LLM, dependency-free core** — the whole default pipeline runs CPU-only, no API key, no vector DB. LLM/embeddings are opt-in and `GENERATED`-quarantined.
39
+
40
+ **🧭 Where to improve (roadmap)**
41
+
42
+ - **Storage breadth** — Semantica is polyglot (RDF *and* LPG: Oxigraph/Jena/Neo4j/Neptune). TextGraph is DuckDB-default with a Neo4j design; native RDF triple-store export is next.
43
+ - **Formal ontology & reasoning** — Semantica has OWL/SHACL/SPARQL + Datalog/Rete. TextGraph has typed labels + Graph-of-Thoughts; SHACL validation and a rule engine are on the roadmap.
44
+ - **Provider & vector-store breadth** — Semantica spans LiteLLM providers and FAISS/Qdrant/Weaviate/Milvus. TextGraph ships one OpenAI-compatible client + a cosine index; more backends welcome.
45
+ - **Ecosystem polish** — Semantica has a hosted docs site, MCP/REST surface, and published benchmarks; TextGraph has an MCP server + honest fixture benchmarks and is growing the rest.
46
+
47
+ The design rule that keeps the moat while closing the gap: **the LLM augments, it never becomes ground truth** — anything model-authored is `GENERATED`-tagged next to its re-verifiable citations.
48
+
100
49
  ## Who it's for
101
50
 
102
51
  - **Financial-crime analysts** — trace structuring/layering, link cases through a shared beneficial owner, follow the money across accounts, and answer *why* two cases are related with a cited path.
@@ -127,11 +76,32 @@ Unknown extensions fall back to plain text; a format needing a missing extra is
127
76
  > how to open the interactive UI.
128
77
 
129
78
  ```bash
130
- # Simplest install (plain pip, three small pure-Python packages — no GPU, no network):
131
- python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
132
- pip install -r requirements.txt && pip install -e .
133
- # (or, with uv: uv sync — then prefix commands with `uv run`)
79
+ pip install textgraph-kg # the import package + CLI are named `textgraph`
80
+ ```
134
81
 
82
+ **Python API** — build once, then call the eight typed, cited tools:
83
+
84
+ ```python
85
+ from textgraph.pipeline import build
86
+ from textgraph.l8_retrieval import QueryEngine
87
+
88
+ result = build("./case-files") # deterministic; byte-identical graph.json
89
+ engine = QueryEngine(result.nodes, result.edges)
90
+
91
+ hits = engine.search("who transferred funds to whom", k=5)
92
+ for h in hits.hits:
93
+ print(h.name, "→", [c.ref() for c in h.citations]) # every hit re-verifiable
94
+
95
+ engine.path("Acme Corp", "Gamma Holdings") # max-likelihood cited path
96
+ engine.why("Acme Corp") # cited claims + validity windows
97
+ engine.conflicts() # single-truth conflicts, surfaced not merged
98
+ engine.trace_decision_chain("beneficial owner policy") # decision lineage
99
+ ```
100
+
101
+ **CLI** — the same tools from the shell:
102
+
103
+ ```bash
104
+ # ...or from source (dev): pip install -r requirements.txt && pip install -e .
135
105
  textgraph build ./case-files -o textgraph-out
136
106
  # → textgraph-out/graph.json, GRAPH_REPORT.md, graph.html, schema.yaml, manifest.json
137
107
 
@@ -1,12 +1,30 @@
1
1
  [project]
2
2
  name = "textgraph-kg"
3
- version = "3.2.0"
3
+ version = "3.2.1"
4
4
  description = "Turn any textual corpus into a queryable knowledge graph with byte-level provenance on every claim. Local-first, deterministic, zero-LLM-by-default."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
7
7
  license = { text = "MIT" }
8
+ license-files = ["LICENSE"]
8
9
  authors = [{ name = "krishddd" }]
9
10
  keywords = ["knowledge-graph", "provenance", "information-extraction", "mcp", "deterministic", "rag"]
11
+ classifiers = [
12
+ "Development Status :: 5 - Production/Stable",
13
+ "Intended Audience :: Developers",
14
+ "Intended Audience :: Legal Industry",
15
+ "Intended Audience :: Financial and Insurance Industry",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Operating System :: OS Independent",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
23
+ "Topic :: Text Processing :: Linguistic",
24
+ "Topic :: Software Development :: Libraries :: Python Modules",
25
+ "Typing :: Typed",
26
+ ]
27
+
10
28
  dependencies = [
11
29
  # Lean core: content addressing + pure-Python structural parsers.
12
30
  # Everything heavy (Docling, tree-sitter, encoder models) lives behind extras.
@@ -19,6 +37,14 @@ dependencies = [
19
37
  "pypdf>=4.0.0",
20
38
  ]
21
39
 
40
+ [project.urls]
41
+ Homepage = "https://krishddd.github.io/Wiki_textgraph/"
42
+ Repository = "https://github.com/krishddd/Wiki_textgraph"
43
+ Documentation = "https://github.com/krishddd/Wiki_textgraph/blob/main/docs/RUNNING.md"
44
+ Changelog = "https://github.com/krishddd/Wiki_textgraph/blob/main/CHANGELOG.md"
45
+ "Live demo" = "https://krishddd.github.io/Wiki_textgraph/"
46
+ "Bug Tracker" = "https://github.com/krishddd/Wiki_textgraph/issues"
47
+
22
48
  [project.optional-dependencies]
23
49
  # Higher-fidelity rich-document ingestion. Docling adds layout/table/OCR; tree-sitter/Drain3
24
50
  # give deterministic structured-text/log parsing. (PDF text works without this — see core.)
@@ -3,4 +3,4 @@
3
3
  Local-first, deterministic, zero-LLM-by-default. See ARCHITECTURE.md for the L0-L9 stack.
4
4
  """
5
5
 
6
- __version__ = "3.2.0"
6
+ __version__ = "3.2.1"
@@ -640,6 +640,8 @@ def _cmd_build(args: argparse.Namespace) -> int:
640
640
  f"{gs.get('claims', 0)} claims, {gs.get('communities', 0)} communities, "
641
641
  f"{gs.get('chunks', 0)} chunks)"
642
642
  )
643
+ if gs.get("llm_relations"):
644
+ print(f" + {gs['llm_relations']} LLM relations (GENERATED, cited, quarantined)")
643
645
  print(f" {paths.graph_json}")
644
646
  print(f" {paths.report}")
645
647
  print(f" {paths.graph_html}")
@@ -3889,11 +3889,11 @@ wheels = [
3889
3889
 
3890
3890
  [[package]]
3891
3891
  name = "pypdf"
3892
- version = "6.14.2"
3892
+ version = "6.15.0"
3893
3893
  source = { registry = "https://pypi.org/simple" }
3894
- sdist = { url = "https://files.pythonhosted.org/packages/03/72/7dfd5ff1c9c37de97a731701f51af091325f123d9d4270361c9c69e4431f/pypdf-6.14.2.tar.gz", hash = "sha256:7873f502fe4385e79539b21d872392dc0c4e3714327c15881cbc7fbfd1f95b25", size = 6491182, upload-time = "2026-06-23T14:18:30.859Z" }
3894
+ sdist = { url = "https://files.pythonhosted.org/packages/17/17/ee75a92718ec7212de831e71454d702225aa5e474a805cce169806044453/pypdf-6.15.0.tar.gz", hash = "sha256:d39c4d955a76409284a905e2d65b40076d77ab76129e0faaeeb6612403ecfc79", size = 6993794, upload-time = "2026-08-06T13:06:49.929Z" }
3895
3895
  wheels = [
3896
- { url = "https://files.pythonhosted.org/packages/49/e6/136aa8993a2ae7214e0b0ef2edaa0d2e08d1d4e4982635b08a835ff31ec8/pypdf-6.14.2-py3-none-any.whl", hash = "sha256:3f07891af76dc002657e04993ab9b4de81de29f9013b9761d0b7968bff12e946", size = 349514, upload-time = "2026-06-23T14:18:28.867Z" },
3896
+ { url = "https://files.pythonhosted.org/packages/af/72/ce3067ac31e214a66388159f8462ddb8c13dd00170f24d555a1f1ae8ee91/pypdf-6.15.0-py3-none-any.whl", hash = "sha256:14e001d6504822cb1ca9c7ed9a69bccb320f59b320730f55af804361abe4d5ee", size = 378123, upload-time = "2026-08-06T13:06:47.709Z" },
3897
3897
  ]
3898
3898
 
3899
3899
  [[package]]
@@ -5169,7 +5169,7 @@ wheels = [
5169
5169
 
5170
5170
  [[package]]
5171
5171
  name = "textgraph-kg"
5172
- version = "3.2.0"
5172
+ version = "3.2.1"
5173
5173
  source = { editable = "." }
5174
5174
  dependencies = [
5175
5175
  { name = "blake3" },
File without changes
File without changes
File without changes
File without changes
File without changes