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.
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/CHANGELOG.md +18 -0
- textgraph_kg-3.2.1/LICENSE +21 -0
- textgraph_kg-3.2.0/README.md → textgraph_kg-3.2.1/PKG-INFO +142 -9
- textgraph_kg-3.2.0/PKG-INFO → textgraph_kg-3.2.1/README.md +50 -80
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/pyproject.toml +27 -1
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/__init__.py +1 -1
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/cli.py +2 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/uv.lock +4 -4
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.gitattributes +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/benchmark.yml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/determinism.yml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/lint-and-typecheck.yml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/pages.yml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/pre-commit.yml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/publish-pypi.yml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/release.yml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.github/workflows/test.yml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.gitignore +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/.pre-commit-config.yaml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/ARCHITECTURE.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/BENCHMARKS.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/PLAN.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/SECURITY.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/TextGraph Architecture Gap Analysis.docx +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/TextGraph_Engineering_Blueprint.pdf +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/quality.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/reasoning.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/retrieval.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/run.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/benchmarks/security.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/COMPARISON_SEMANTICA.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/RUNNING.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/SKILL.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/how-it-works.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/plans/chat-console.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/plans/neo4j-backend.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/retrieval-routing.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/docs/site/index.html +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/requirements-dev.txt +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/requirements-full.txt +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/requirements.txt +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/schema/graph.schema.json +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/schema/manifest.schema.json +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/schema/schema.yaml +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/schema/validate.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/determinism/test_byte_identical.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/README.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/adr/adr-0007-case-linking.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/adr/adr-0008-retention.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/chat/case-4471.chat +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/conflict/filing-a.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/conflict/filing-b.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/contradiction/filing.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/decision_chain/adr-0001-retention.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/decision_chain/adr-0002-citations.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/decision_chain/adr-0003-tooling.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/docs/aml-overview.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/docs/shell-company.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/docs/wire-transfers.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/secure/public.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/secure/secret.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/temporal/correction.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpus_docs/adr-0001.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpus_docs/mixed-encoding.log +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpus_docs/notes.txt +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/er/aliases.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_agent_session.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_artifacts.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_duckdb_store.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_edge_provenance.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_er_pipeline.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_ie_pipeline.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_incremental.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_incremental_stress.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_provenance_integrity.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_quality_benchmark.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_report_corpora.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/integration/test_security_redteam.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_canonical_doc.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_canonical_json.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_chat.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_chat_decisions.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_cli.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_config.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_conflicts.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_console.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_content_address.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_decision_chain.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_decisions.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_dense.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_doctor.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_gliner_backend.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_got.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_gql.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_ingest.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_integrations.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l0_ingest.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l1_structure.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l2_linguistic.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l3_encoder_ie.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l4_llm.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l5_resolution.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l6_claims.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l7_analytics.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l7_layout.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_l8_retrieval.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_llm_augment.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_mcp_tools.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_offsets.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_richdocs.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_routing.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_security.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/unit/test_vision.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/api.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/chat.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/ingest.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/page.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/renderer.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/console/server.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/canonical_doc.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/canonical_json.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/config.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/content_address.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/incremental.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/layout.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/core/offsets.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/doctor.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/got/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/got/reason.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/got/thought.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/ast.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/engine.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/errors.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/parser.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/gql/tokenizer.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/integrations/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/integrations/adapters.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/base.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/dispatch.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/logs.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/markdown.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/plaintext.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/richdocs.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/structured.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l0_ingest/transcript.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l1_structure/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l1_structure/decisions.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l1_structure/emit.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l1_structure/structure.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l2_linguistic/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l2_linguistic/negation.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l2_linguistic/sentences.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/canonicalize.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/emit_ie.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/extract.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/gliner_backend.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/model.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l3_encoder_ie/rules.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/cache.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/client.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/extract.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l4_llm_optional/synthesize.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/audit.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/blocking.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/clustering.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/emit_er.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/metrics.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/model.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/resolve.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/scoring.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/similarity.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l5_entity_resolution/splink_backend.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l6_graph_model/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l6_graph_model/claims.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l6_graph_model/conflicts.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l6_graph_model/temporal.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/algorithms.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/analyze.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/communities.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/enrich.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l7_analytics/layout.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/bm25.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/dense.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/emit_chunks.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/engine.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/grounding.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/model.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/narrate.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/rerank.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/routing.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/vision/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/vision/embed.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/vision/maxsim.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l8_retrieval/vision/retriever.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/analytics_lite.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/artifacts.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/graph_html.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/graph_json.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/prov.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/l9_artifacts/report.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/mcp/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/mcp/server.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/mcp/tools.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/pipeline.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/abac.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/context.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/policy.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/security/rebac.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/store/__init__.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/store/base.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/store/duckdb_store.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/store/memory.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph/watch.py +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/textgraph-engineering-research.md +0 -0
- {textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/ui/graph_html/README.md +0 -0
- {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
|
-
[](https://pypi.org/project/textgraph-kg/)
|
|
95
|
+
[](https://pypi.org/project/textgraph-kg/)
|
|
4
96
|
[](https://pypi.org/project/textgraph-kg/)
|
|
5
|
-
[](https://github.com/krishddd/Wiki_textgraph/actions/workflows/test.yml)
|
|
98
|
+
[](https://github.com/krishddd/Wiki_textgraph/actions/workflows/determinism.yml)
|
|
99
|
+
[](https://krishddd.github.io/Wiki_textgraph/)
|
|
100
|
+
[](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
|
-
>
|
|
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
|
-
|
|
60
|
-
|
|
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
|
-
[](https://pypi.org/project/textgraph-kg/)
|
|
3
|
+
[](https://pypi.org/project/textgraph-kg/)
|
|
75
4
|
[](https://pypi.org/project/textgraph-kg/)
|
|
76
|
-
[](https://github.com/krishddd/Wiki_textgraph/actions/workflows/test.yml)
|
|
6
|
+
[](https://github.com/krishddd/Wiki_textgraph/actions/workflows/determinism.yml)
|
|
7
|
+
[](https://krishddd.github.io/Wiki_textgraph/)
|
|
8
|
+
[](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
|
-
>
|
|
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
|
-
|
|
131
|
-
|
|
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.
|
|
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.)
|
|
@@ -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.
|
|
3892
|
+
version = "6.15.0"
|
|
3893
3893
|
source = { registry = "https://pypi.org/simple" }
|
|
3894
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
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/
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/adr/adr-0007-case-linking.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{textgraph_kg-3.2.0 → textgraph_kg-3.2.1}/tests/fixtures/corpora/decision_chain/adr-0003-tooling.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|