arango-entity-resolution 3.10.0__tar.gz → 3.10.2__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.
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/.gitignore +11 -1
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/CHANGELOG.md +75 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/PKG-INFO +38 -24
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/README.md +24 -16
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/pyproject.toml +20 -7
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/config/er_config.py +13 -0
- arango_entity_resolution-3.10.2/src/entity_resolution/core/async_pipeline.py +216 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/core/configurable_pipeline.py +0 -1
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/reasoning/llm_verifier.py +69 -9
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/batch_similarity_service.py +1 -1
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/onnx_model_exporter.py +2 -2
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/similarity/weighted_field_similarity.py +6 -4
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/constants.py +16 -27
- arango_entity_resolution-3.10.2/tests/test_async_pipeline_integration.py +103 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_categorical_u_from_random_pairs.py +6 -3
- arango_entity_resolution-3.10.2/tests/test_dependency_licenses.py +141 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_docs_conformance.py +54 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_llm_provider_config.py +42 -0
- arango_entity_resolution-3.10.2/tests/test_llm_verifier_cost_accounting.py +129 -0
- arango_entity_resolution-3.10.2/tests/test_measure_llm_band.py +60 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_published_results_conformance.py +70 -3
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_top3_features.py +32 -63
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_weighted_field_similarity.py +16 -0
- arango_entity_resolution-3.10.0/src/entity_resolution/core/async_pipeline.py +0 -282
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/LICENSE +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/SECURITY.md +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/canonical_hub/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/canonical_hub/arango_vector_provider.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/canonical_hub/resolver.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/cli.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/config/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/core/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/core/address_pipeline.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/core/collective_resolver.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/core/entity_resolver.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/core/incremental_maintainer.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/core/incremental_resolver.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/core/orchestrator.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/data/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/data/data_manager.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/demo/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/demo/demo_manager.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/enrichments/README.md +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/enrichments/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/enrichments/acronym_handler.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/enrichments/context_resolver.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/enrichments/relationship_sweeper.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/enrichments/type_constraints.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/etl/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/etl/arangoimport.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/etl/canonical_resolver.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/etl/normalizers.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/etl/provenance.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/learning/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/learning/em_estimator.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/learning/fellegi_sunter_scorer.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/learning/field_profiler.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/learning/model_parameter_estimator.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/learning/threshold_selection.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/connection.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/contracts.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/demo.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/normalization.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/resources/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/resources/collections.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/server.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/tools/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/tools/advisor.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/tools/cluster.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/tools/entity.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/mcp/tools/pipeline.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/migrations/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/migrations/registry.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/migrations/runner.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/py.typed +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/reasoning/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/reasoning/feedback.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/reasoning/graph_rag.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/ab_evaluation_harness.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/ab_evaluation_runner.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/address_er_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/base_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/blocking_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/bulk_blocking_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/cluster_export_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/cluster_metrics.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/cluster_repair_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_backends/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_backends/aql_graph.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_backends/base.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_backends/gae_connection.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_backends/gae_wcc.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_backends/python_dfs.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_backends/python_sparse.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_backends/python_union_find.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/clustering_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/cross_collection_matching_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/curation_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/embedding_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/evaluation_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/fabric_arango_vector_provider_wp13.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/fabric_canonical_hub_resolver_wp13.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/feedback_application_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/golden_record_persistence_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/golden_record_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/node2vec_embedding_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/onnx_embedding_backend.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_activation_evidence_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_benchmark_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_compare_report_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_profile_registry.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_quality_benchmark_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_quality_gate_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_quality_policy_calibration_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_quality_policy_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/runtime_telemetry_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/similarity_edge_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/similarity_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/tuple_embedding_serializer.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/services/wcc_clustering_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/similarity/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/similarity/ann_adapter.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/similarity/geospatial_validator.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/similarity/graph_context.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/base_strategy.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/bm25_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/collect_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/geographic_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/graph_embedding_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/graph_traversal_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/hybrid_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/lsh_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/shard_parallel_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/strategies/vector_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/app.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/auth.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/models/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/models/schemas.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/clusters.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/collections.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/config.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/curation.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/export.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/golden.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/metrics.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/pipeline.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/profile.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/resolve.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/review.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/ui/routes/ws.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/__init__.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/algorithms.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/aql_builders.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/config.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/config_utils.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/database.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/graph_utils.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/logging.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/pipeline_utils.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/validation.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/validation_utils.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/src/entity_resolution/utils/view_utils.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/conftest.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/enrichments/test_components.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/fabric_canonical_hub_precision_wp13.json +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/security/test_aql_injection.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/security/test_mcp_sse_auth.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/security/test_ui_auth.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/security/test_ui_export_paths.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_ab_evaluation_harness.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_ab_evaluation_runner.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_active_learning_config_wiring.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_address_er_service_arangoimport_redaction.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_address_er_service_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_address_pipeline.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_algorithms_comprehensive.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_ann_adapter.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_ann_adapter_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_ann_adapter_vector_index.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_aql_builders_filter_builder.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_arangoimport_helper.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_auto_backend_selection.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_binary_u_from_comparisons.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_blocking_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_blocking_service_legacy_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_blocking_strategies.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_bm25_chunked_blocking_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_bm25_fields_fallback.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_bulk_blocking_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_calibrate_runtime_quality_policy_cli.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_canonical_hub_public_api.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_canonical_hub_shared_checks.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_canonical_resolver.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_canonical_resolver_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_categorical_em.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_check_scorecard.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_cli.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_cluster_export_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_cluster_repair_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_cluster_repair_service_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_cluster_validation_oversize_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_clustering_backends.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_clustering_backends_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_clustering_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_collective_resolver.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_collective_resolver_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_comparison_band_selection.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_computed_fields.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_config.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_config_utils.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_configurable_pipeline_blocking_fields.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_configurable_pipeline_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_cross_collection_matching_service_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_cross_collection_matching_service_validation.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_curation_audit_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_curation_routes_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_curation_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_curation_service_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_data_manager_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_database_manager_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_device_resolution.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_em_estimator.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_em_gamma_domain.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_embedding_service_identifier_validation.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_embedding_service_multi_resolution.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_entity_resolver_pipeline_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_er_config.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_estimator_sampling_determinism.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_evaluation_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_evaluation_service_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_fabric_canonical_hub_wp13.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_feedback.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_feedback_application_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_feedback_application_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_fellegi_sunter_scorer.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_field_profiler.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_field_profiler_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_field_weight_learning_gate.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_gae_clustering.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_gae_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_geographic_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_geospatial_validator.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_golden_record_override_survival_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_golden_record_persistence_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_golden_record_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_graph_context_similarity.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_graph_context_similarity_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_graph_embedding_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_graph_embedding_blocking_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_graph_rag.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_hybrid_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_hybrid_blocking_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_incremental_maintainer.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_incremental_maintainer_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_llm_healthcheck.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_llm_verifier.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_lsh_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_matching_quality_gate.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_mcp_cascade_unresolved_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_mcp_normalization.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_mcp_tools.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_migrations.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_migrations_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_model_parameter_estimator.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_model_parameter_estimator_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_node2vec_embedding_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_node2vec_embedding_service_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_normalizers.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_onnx_embedding_backend.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_onnx_encode_and_export.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_orchestrator.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_pipeline_statistics_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_pipeline_utils.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_profile_route_integration.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_activation_evidence_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_benchmark_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_compare_report_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_profile_registry.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_quality_benchmark_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_quality_gate_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_quality_policy_calibration_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_quality_policy_ci.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_runtime_quality_policy_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_scan_secrets.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_shard_parallel_blocking.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_similarity_edge_service_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_similarity_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_similarity_service_legacy_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_similarity_service_resilient.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_test_environment_safety.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_threshold_selection.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_tuple_embedding_serializer.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_ui_core_additions.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_ui_routes.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_ui_schemas.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_upstream_markers.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_validation.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_validation_utils_full.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_vector_blocking_strategy_unit.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_view_utils_full.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_view_utils_validation.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_wcc_clustering_service.py +0 -0
- {arango_entity_resolution-3.10.0 → arango_entity_resolution-3.10.2}/tests/test_wiring_conformance.py +0 -0
|
@@ -143,7 +143,13 @@ COVERAGE_SUMMARY.txt
|
|
|
143
143
|
detailed_coverage_analysis_*.json
|
|
144
144
|
|
|
145
145
|
# Local Claude Code harness config (per-user, not project-shared)
|
|
146
|
-
.claude
|
|
146
|
+
.claude/*
|
|
147
|
+
# Skills are source and meant to be shared -- but only ones reviewed for private
|
|
148
|
+
# content (absolute paths, internal endpoints) are un-ignored, one at a time.
|
|
149
|
+
!.claude/skills/
|
|
150
|
+
.claude/skills/*
|
|
151
|
+
!.claude/skills/pr-review/
|
|
152
|
+
!.claude/skills/code-quality-review/
|
|
147
153
|
# .cursor/ is per-user, except the estate-wide rules that are reviewed and tracked.
|
|
148
154
|
# (A directory pattern like `.cursor/` cannot be re-included from, hence `/*`.)
|
|
149
155
|
.cursor/*
|
|
@@ -171,3 +177,7 @@ ui/.playwright/
|
|
|
171
177
|
|
|
172
178
|
# Session-mined candidate memories awaiting /pattern-save triage
|
|
173
179
|
.pattern-capture-queue/
|
|
180
|
+
.cursor/rules/*.mdc.pre-update.*
|
|
181
|
+
|
|
182
|
+
# Personal author bio for outreach drafts; never commit
|
|
183
|
+
docs/outreach/author-bio.md
|
|
@@ -7,6 +7,81 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.10.2] - 2026-12-01
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **No GPL code in a default install.** This package is Apache-2.0, but two of
|
|
15
|
+
its required dependencies were GPL: `fuzzywuzzy` (GPLv2), which nothing
|
|
16
|
+
imported, and `python-Levenshtein` (GPL-2.0-or-later), which supplied the one
|
|
17
|
+
`distance` call behind `WeightedFieldSimilarity(algorithm="levenshtein")`.
|
|
18
|
+
Both are removed. The edit distance now comes from `rapidfuzz` (MIT), which
|
|
19
|
+
gives identical results (checked on 20,005 string pairs, including accented
|
|
20
|
+
and CJK text), so no score changes. If you imported `Levenshtein` or
|
|
21
|
+
`fuzzywuzzy` yourself through this package, add them to your own requirements.
|
|
22
|
+
- Dependencies that were imported but never declared are now declared:
|
|
23
|
+
`requests` and `urllib3` (required); `pydantic` in `[ui]`; `transformers` in
|
|
24
|
+
`[onnx]`. A new `[onnx-export]` extra installs `optimum[onnxruntime]` and
|
|
25
|
+
`onnx`, which `onnx_model_exporter` needs and no extra provided.
|
|
26
|
+
- `python-dotenv` and `rich` are no longer required: nothing imports them.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- `entity_resolution.__version__` and `arango-er --version` reported `3.8.0`
|
|
31
|
+
in every release since 3.8.0: they read `VERSION_INFO`, a second copy of the
|
|
32
|
+
version that the release checklist never moved. It is now derived from
|
|
33
|
+
`__version__`, and a test checks the version the package and CLI report.
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- `tests/test_dependency_licenses.py` fails if anything a user installs (the
|
|
38
|
+
required dependencies, or a runtime extra, followed transitively) carries a
|
|
39
|
+
GPL or AGPL licence, or if `src/` imports a third-party package that no
|
|
40
|
+
dependency list declares.
|
|
41
|
+
|
|
42
|
+
## [3.10.1] - 2026-11-19
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- `AsyncERPipeline` could not complete a run: every stage passed arguments its
|
|
47
|
+
strategy or service does not accept, called a method that does not exist, or
|
|
48
|
+
read a config attribute that does not exist. It now runs
|
|
49
|
+
`ConfigurableERPipeline` in the executor and streams its stage events, so an
|
|
50
|
+
async run returns exactly what a sync run returns. `run_blocking_concurrent()`
|
|
51
|
+
runs each strategy through `ConfigurableERPipeline.run_blocking()`. Its
|
|
52
|
+
results now use the sync pipeline's keys (`blocking.candidate_pairs`,
|
|
53
|
+
`similarity.matches_found`, ...); the old ones were never returned by a run
|
|
54
|
+
that completed.
|
|
55
|
+
- The README quick start read `results['blocking']['candidates_found']`, which
|
|
56
|
+
`run()` never returns, so it raised `KeyError`; it now reads `candidate_pairs`.
|
|
57
|
+
The README's Performance table claimed 1M records in ~3 minutes, which was never
|
|
58
|
+
measured; it now quotes the four measured benchmark rows. Two architecture
|
|
59
|
+
diagrams dropped a "400x faster than Levenshtein" label from the phrase-match
|
|
60
|
+
defect. The PyPI project URLs now point at arango-solutions-org.
|
|
61
|
+
- `scripts/measure_llm_band.py` counted an LLM reply it could not parse as a
|
|
62
|
+
"no_match" verdict, crediting the model with every non-matching pair it failed
|
|
63
|
+
to answer. It now counts it as an abstention and reports McNemar significance.
|
|
64
|
+
- The LLM-judge table in `docs/BENCHMARKS.md` is re-measured with every per-pair
|
|
65
|
+
verdict committed (`docs/benchmark_results_llm_band_*.json`) and is now checked
|
|
66
|
+
against those files, as is the README Performance table.
|
|
67
|
+
- `LLMMatchVerifier` recorded $0 for a model litellm cannot price (including
|
|
68
|
+
gemini-3.8-flash and claude-opus-5 through OpenRouter), so `stats()` reported
|
|
69
|
+
paid calls as free and `max_cost_usd` never tripped. It now uses the charge the
|
|
70
|
+
provider reports, then litellm's price map. A call neither can price is
|
|
71
|
+
counted in the new `unpriced_calls` stat, and `cost_usd` becomes `None`
|
|
72
|
+
(`cost_usd_known` holds what was priced).
|
|
73
|
+
|
|
74
|
+
### Changed
|
|
75
|
+
|
|
76
|
+
- A `max_cost_usd` budget now fails closed: once a call cannot be priced, the
|
|
77
|
+
run's spend is unknown, so the verifier stops calling the LLM and routes the
|
|
78
|
+
remaining uncertain pairs to review. Models litellm prices at $0 (local
|
|
79
|
+
Ollama models) are unaffected. Without a cost budget nothing changes except
|
|
80
|
+
the reported stats.
|
|
81
|
+
- Setting `LLMProviderConfig.fallback_provider` now raises a `UserWarning`. The
|
|
82
|
+
field was always parsed and validated, but nothing reads it: a failed LLM call
|
|
83
|
+
is not retried against another provider. Configs that set it still load.
|
|
84
|
+
|
|
10
85
|
## [3.10.0] - 2026-10-21
|
|
11
86
|
|
|
12
87
|
### Added
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: arango-entity-resolution
|
|
3
|
-
Version: 3.10.
|
|
3
|
+
Version: 3.10.2
|
|
4
4
|
Summary: A production-ready entity resolution system for ArangoDB using record blocking, graph algorithms, and AI.
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
6
|
-
Project-URL: Documentation, https://github.com/
|
|
7
|
-
Project-URL: Issues, https://github.com/
|
|
5
|
+
Project-URL: Homepage, https://github.com/arango-solutions-org/arango-entity-resolution
|
|
6
|
+
Project-URL: Documentation, https://github.com/arango-solutions-org/arango-entity-resolution#readme
|
|
7
|
+
Project-URL: Issues, https://github.com/arango-solutions-org/arango-entity-resolution/issues
|
|
8
8
|
Author: Entity Resolution Team
|
|
9
9
|
License-Expression: Apache-2.0
|
|
10
10
|
License-File: LICENSE
|
|
@@ -19,16 +19,15 @@ Classifier: Topic :: Database
|
|
|
19
19
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
20
|
Requires-Python: >=3.10
|
|
21
21
|
Requires-Dist: click>=8.1.7
|
|
22
|
-
Requires-Dist: fuzzywuzzy>=0.18.0
|
|
23
22
|
Requires-Dist: jellyfish>=1.0.3
|
|
24
23
|
Requires-Dist: numpy>=1.24.4
|
|
25
24
|
Requires-Dist: pandas>=2.1.4
|
|
26
25
|
Requires-Dist: python-arango>=8.0.0
|
|
27
|
-
Requires-Dist: python-dotenv>=1.0.0
|
|
28
|
-
Requires-Dist: python-levenshtein>=0.23.0
|
|
29
26
|
Requires-Dist: pyyaml>=6.0
|
|
30
|
-
Requires-Dist:
|
|
27
|
+
Requires-Dist: rapidfuzz>=3.0.0
|
|
28
|
+
Requires-Dist: requests>=2.28.0
|
|
31
29
|
Requires-Dist: scikit-learn>=1.3.2
|
|
30
|
+
Requires-Dist: urllib3>=1.26.0
|
|
32
31
|
Provides-Extra: dev
|
|
33
32
|
Requires-Dist: black>=23.11.0; extra == 'dev'
|
|
34
33
|
Requires-Dist: flake8>=6.1.0; extra == 'dev'
|
|
@@ -42,6 +41,12 @@ Requires-Dist: sentence-transformers>=2.2.0; extra == 'ml'
|
|
|
42
41
|
Requires-Dist: torch>=2.0.0; extra == 'ml'
|
|
43
42
|
Provides-Extra: onnx
|
|
44
43
|
Requires-Dist: onnxruntime>=1.16.0; extra == 'onnx'
|
|
44
|
+
Requires-Dist: transformers>=4.30.0; extra == 'onnx'
|
|
45
|
+
Provides-Extra: onnx-export
|
|
46
|
+
Requires-Dist: onnx>=1.14.0; extra == 'onnx-export'
|
|
47
|
+
Requires-Dist: onnxruntime>=1.16.0; extra == 'onnx-export'
|
|
48
|
+
Requires-Dist: optimum[onnxruntime]>=1.16.0; extra == 'onnx-export'
|
|
49
|
+
Requires-Dist: transformers>=4.30.0; extra == 'onnx-export'
|
|
45
50
|
Provides-Extra: sparse
|
|
46
51
|
Requires-Dist: scipy>=1.11.0; extra == 'sparse'
|
|
47
52
|
Provides-Extra: test
|
|
@@ -50,15 +55,16 @@ Requires-Dist: pytest-mock>=3.0.0; extra == 'test'
|
|
|
50
55
|
Requires-Dist: pytest>=7.4.3; extra == 'test'
|
|
51
56
|
Provides-Extra: ui
|
|
52
57
|
Requires-Dist: fastapi>=0.115; extra == 'ui'
|
|
58
|
+
Requires-Dist: pydantic>=2.0; extra == 'ui'
|
|
53
59
|
Requires-Dist: uvicorn[standard]>=0.34; extra == 'ui'
|
|
54
60
|
Requires-Dist: websockets>=14.0; extra == 'ui'
|
|
55
61
|
Description-Content-Type: text/markdown
|
|
56
62
|
|
|
57
63
|
# ArangoDB Entity Resolution
|
|
58
64
|
|
|
59
|
-
|
|
65
|
+
An entity resolution library for ArangoDB that identifies and links records referring to the same real-world entity across multiple data sources, using record blocking, field-level and probabilistic scoring, graph clustering, and optional LLM verification. Matching quality and speed are measured on public benchmarks up to 66,879 records; see [Benchmark Results](#benchmark-results) and the [scale limits](docs/BENCHMARKS.md#scale-limits).
|
|
60
66
|
|
|
61
|
-
**Version 3.10.
|
|
67
|
+
**Version 3.10.2** | [Changelog](CHANGELOG.md) | [PyPI](https://pypi.org/project/arango-entity-resolution/)
|
|
62
68
|
|
|
63
69
|
## Installation
|
|
64
70
|
|
|
@@ -100,7 +106,7 @@ config = ERPipelineConfig.from_yaml("config/er_config.example.yaml")
|
|
|
100
106
|
pipeline = ConfigurableERPipeline(config=config, db=db)
|
|
101
107
|
results = pipeline.run()
|
|
102
108
|
|
|
103
|
-
print(f"Candidates: {results['blocking']['
|
|
109
|
+
print(f"Candidates: {results['blocking']['candidate_pairs']}")
|
|
104
110
|
print(f"Clusters: {results['clustering']['clusters_found']}")
|
|
105
111
|
```
|
|
106
112
|
|
|
@@ -219,14 +225,14 @@ When similarity scoring produces ambiguous pairs (default 0.55–0.80 confidence
|
|
|
219
225
|
|
|
220
226
|
| Judge | Accuracy on those pairs | Cost / 1,000 pairs |
|
|
221
227
|
|---|---|---|
|
|
222
|
-
| score threshold alone | 0.
|
|
223
|
-
| `ollama/llama3.1:8b` (local) | **0.
|
|
224
|
-
| `openrouter/google/gemini-3.8-flash` | **0.
|
|
225
|
-
| `openrouter/anthropic/claude-opus-5` | **0.
|
|
228
|
+
| score threshold alone | 0.565 | — |
|
|
229
|
+
| `ollama/llama3.1:8b` (local) | **0.510** | $0 |
|
|
230
|
+
| `openrouter/google/gemini-3.8-flash` | **0.810** | ~$2.00 |
|
|
231
|
+
| `openrouter/anthropic/claude-opus-5` | **0.820** | ~$11.20 |
|
|
226
232
|
|
|
227
|
-
Two things follow. A competent model is worth a lot — +0.25 accuracy on exactly the pairs the score cannot settle. And **a small local model is not competent at this**: llama3.1:8b answered "match" for
|
|
233
|
+
Two things follow. A competent model is worth a lot — +0.25 accuracy on exactly the pairs the score cannot settle. And **a small local model is not competent at this**: llama3.1:8b answered "match" for 87% of pairs when 38% were matches, and scored below the threshold it was meant to improve on (not a significant difference, but no evidence it helps). Verify on your own data before trusting a local model here.
|
|
228
234
|
|
|
229
|
-
Note also what improves: these models raise accuracy by recovering **recall**. All three *over-merge* — precision is their weakest dimension (0.68 for the two that work). If precision is your constraint, this tier is not the fix.
|
|
235
|
+
Note also what improves: these models raise accuracy by recovering **recall**. All three *over-merge* — precision is their weakest dimension (0.67 and 0.68 for the two that work). If precision is your constraint, this tier is not the fix.
|
|
230
236
|
|
|
231
237
|
The default 0.55–0.80 band is also narrow. On Amazon-Google it contains only 8.5% of the matcher's errors, so verification there has little to work with; a wider band (0.30–0.95) reaches 61%. Tune it to your score distribution rather than accepting the default.
|
|
232
238
|
|
|
@@ -259,7 +265,8 @@ records except those starting with `_`. Fields listed in `mask_fields` are sent
|
|
|
259
265
|
as a stable hash instead, so the model can still see that two values are equal
|
|
260
266
|
but never sees the values. Masking costs verdict quality on anything fuzzy, so
|
|
261
267
|
reserve it for identifiers. A local `ollama/` model sends nothing off the machine.
|
|
262
|
-
`fallback_provider` is
|
|
268
|
+
`fallback_provider` is not implemented: the config still parses it, but a failed
|
|
269
|
+
call is not retried against another provider, and setting it raises a `UserWarning`.
|
|
263
270
|
|
|
264
271
|
The LLM receives both records, the overall similarity score, and field-level scores, and returns a structured JSON verdict with decision, confidence, and reasoning. When the LLM overrides a score, the system synthesises a new score that pushes the pair above or below the thresholds so downstream clustering reflects the decision.
|
|
265
272
|
|
|
@@ -429,13 +436,20 @@ comparison caveats are in [docs/BENCHMARKS.md](docs/BENCHMARKS.md).
|
|
|
429
436
|
|
|
430
437
|
## Performance
|
|
431
438
|
|
|
432
|
-
|
|
439
|
+
Blocking turns the quadratic comparison into a short candidate list. Measured on an
|
|
440
|
+
Apple Silicon laptop against single-node ArangoDB 3.12 (detail and method in
|
|
441
|
+
[docs/BENCHMARKS.md](docs/BENCHMARKS.md)):
|
|
433
442
|
|
|
434
|
-
| Records |
|
|
435
|
-
|
|
436
|
-
|
|
|
437
|
-
|
|
|
438
|
-
|
|
|
443
|
+
| Dataset | Records | Possible pairs | Candidate pairs | Blocking | Scoring |
|
|
444
|
+
|---------|---------|----------------|-----------------|----------|---------|
|
|
445
|
+
| Abt-Buy | 2,173 | 1.2M | 10,895 | 1.7s | 0.2s |
|
|
446
|
+
| Amazon-Google | 4,589 | 4.4M | 25,808 | 16.2s | 1.0s |
|
|
447
|
+
| DBLP-ACM | 4,910 | 6.0M | 32,278 | 7.1s | 0.3s |
|
|
448
|
+
| DBLP-Scholar | 66,879 | 168M | 68,057 | 1160s | 0.8s |
|
|
449
|
+
|
|
450
|
+
Blocking time grows faster than the data: DBLP-Scholar has ~13x the records of
|
|
451
|
+
DBLP-ACM and takes ~140x as long. Throughput beyond these sizes has not been
|
|
452
|
+
measured.
|
|
439
453
|
|
|
440
454
|
Clustering backends scale from Union-Find (general purpose) through scipy sparse (large dense graphs) to GAE enterprise (millions of edges on dedicated compute).
|
|
441
455
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# ArangoDB Entity Resolution
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An entity resolution library for ArangoDB that identifies and links records referring to the same real-world entity across multiple data sources, using record blocking, field-level and probabilistic scoring, graph clustering, and optional LLM verification. Matching quality and speed are measured on public benchmarks up to 66,879 records; see [Benchmark Results](#benchmark-results) and the [scale limits](docs/BENCHMARKS.md#scale-limits).
|
|
4
4
|
|
|
5
|
-
**Version 3.10.
|
|
5
|
+
**Version 3.10.2** | [Changelog](CHANGELOG.md) | [PyPI](https://pypi.org/project/arango-entity-resolution/)
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -44,7 +44,7 @@ config = ERPipelineConfig.from_yaml("config/er_config.example.yaml")
|
|
|
44
44
|
pipeline = ConfigurableERPipeline(config=config, db=db)
|
|
45
45
|
results = pipeline.run()
|
|
46
46
|
|
|
47
|
-
print(f"Candidates: {results['blocking']['
|
|
47
|
+
print(f"Candidates: {results['blocking']['candidate_pairs']}")
|
|
48
48
|
print(f"Clusters: {results['clustering']['clusters_found']}")
|
|
49
49
|
```
|
|
50
50
|
|
|
@@ -163,14 +163,14 @@ When similarity scoring produces ambiguous pairs (default 0.55–0.80 confidence
|
|
|
163
163
|
|
|
164
164
|
| Judge | Accuracy on those pairs | Cost / 1,000 pairs |
|
|
165
165
|
|---|---|---|
|
|
166
|
-
| score threshold alone | 0.
|
|
167
|
-
| `ollama/llama3.1:8b` (local) | **0.
|
|
168
|
-
| `openrouter/google/gemini-3.8-flash` | **0.
|
|
169
|
-
| `openrouter/anthropic/claude-opus-5` | **0.
|
|
166
|
+
| score threshold alone | 0.565 | — |
|
|
167
|
+
| `ollama/llama3.1:8b` (local) | **0.510** | $0 |
|
|
168
|
+
| `openrouter/google/gemini-3.8-flash` | **0.810** | ~$2.00 |
|
|
169
|
+
| `openrouter/anthropic/claude-opus-5` | **0.820** | ~$11.20 |
|
|
170
170
|
|
|
171
|
-
Two things follow. A competent model is worth a lot — +0.25 accuracy on exactly the pairs the score cannot settle. And **a small local model is not competent at this**: llama3.1:8b answered "match" for
|
|
171
|
+
Two things follow. A competent model is worth a lot — +0.25 accuracy on exactly the pairs the score cannot settle. And **a small local model is not competent at this**: llama3.1:8b answered "match" for 87% of pairs when 38% were matches, and scored below the threshold it was meant to improve on (not a significant difference, but no evidence it helps). Verify on your own data before trusting a local model here.
|
|
172
172
|
|
|
173
|
-
Note also what improves: these models raise accuracy by recovering **recall**. All three *over-merge* — precision is their weakest dimension (0.68 for the two that work). If precision is your constraint, this tier is not the fix.
|
|
173
|
+
Note also what improves: these models raise accuracy by recovering **recall**. All three *over-merge* — precision is their weakest dimension (0.67 and 0.68 for the two that work). If precision is your constraint, this tier is not the fix.
|
|
174
174
|
|
|
175
175
|
The default 0.55–0.80 band is also narrow. On Amazon-Google it contains only 8.5% of the matcher's errors, so verification there has little to work with; a wider band (0.30–0.95) reaches 61%. Tune it to your score distribution rather than accepting the default.
|
|
176
176
|
|
|
@@ -203,7 +203,8 @@ records except those starting with `_`. Fields listed in `mask_fields` are sent
|
|
|
203
203
|
as a stable hash instead, so the model can still see that two values are equal
|
|
204
204
|
but never sees the values. Masking costs verdict quality on anything fuzzy, so
|
|
205
205
|
reserve it for identifiers. A local `ollama/` model sends nothing off the machine.
|
|
206
|
-
`fallback_provider` is
|
|
206
|
+
`fallback_provider` is not implemented: the config still parses it, but a failed
|
|
207
|
+
call is not retried against another provider, and setting it raises a `UserWarning`.
|
|
207
208
|
|
|
208
209
|
The LLM receives both records, the overall similarity score, and field-level scores, and returns a structured JSON verdict with decision, confidence, and reasoning. When the LLM overrides a score, the system synthesises a new score that pushes the pair above or below the thresholds so downstream clustering reflects the decision.
|
|
209
210
|
|
|
@@ -373,13 +374,20 @@ comparison caveats are in [docs/BENCHMARKS.md](docs/BENCHMARKS.md).
|
|
|
373
374
|
|
|
374
375
|
## Performance
|
|
375
376
|
|
|
376
|
-
|
|
377
|
+
Blocking turns the quadratic comparison into a short candidate list. Measured on an
|
|
378
|
+
Apple Silicon laptop against single-node ArangoDB 3.12 (detail and method in
|
|
379
|
+
[docs/BENCHMARKS.md](docs/BENCHMARKS.md)):
|
|
377
380
|
|
|
378
|
-
| Records |
|
|
379
|
-
|
|
380
|
-
|
|
|
381
|
-
|
|
|
382
|
-
|
|
|
381
|
+
| Dataset | Records | Possible pairs | Candidate pairs | Blocking | Scoring |
|
|
382
|
+
|---------|---------|----------------|-----------------|----------|---------|
|
|
383
|
+
| Abt-Buy | 2,173 | 1.2M | 10,895 | 1.7s | 0.2s |
|
|
384
|
+
| Amazon-Google | 4,589 | 4.4M | 25,808 | 16.2s | 1.0s |
|
|
385
|
+
| DBLP-ACM | 4,910 | 6.0M | 32,278 | 7.1s | 0.3s |
|
|
386
|
+
| DBLP-Scholar | 66,879 | 168M | 68,057 | 1160s | 0.8s |
|
|
387
|
+
|
|
388
|
+
Blocking time grows faster than the data: DBLP-Scholar has ~13x the records of
|
|
389
|
+
DBLP-ACM and takes ~140x as long. Throughput beyond these sizes has not been
|
|
390
|
+
measured.
|
|
383
391
|
|
|
384
392
|
Clustering backends scale from Union-Find (general purpose) through scipy sparse (large dense graphs) to GAE enterprise (millions of edges on dedicated compute).
|
|
385
393
|
|
|
@@ -23,18 +23,21 @@ classifiers = [
|
|
|
23
23
|
"Topic :: Database",
|
|
24
24
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
25
25
|
]
|
|
26
|
+
# Every required dependency must carry a permissive licence: this package is
|
|
27
|
+
# Apache-2.0, and a GPL requirement would reach every user who installs it.
|
|
28
|
+
# tests/test_dependency_licenses.py enforces that, and that every third-party
|
|
29
|
+
# import under src/ is declared here or in an extra.
|
|
26
30
|
dependencies = [
|
|
27
31
|
"python-arango>=8.0.0",
|
|
28
32
|
"pandas>=2.1.4",
|
|
29
33
|
"numpy>=1.24.4",
|
|
30
|
-
"
|
|
34
|
+
"rapidfuzz>=3.0.0",
|
|
31
35
|
"jellyfish>=1.0.3",
|
|
32
|
-
"fuzzywuzzy>=0.18.0",
|
|
33
36
|
"scikit-learn>=1.3.2",
|
|
34
|
-
"python-dotenv>=1.0.0",
|
|
35
37
|
"click>=8.1.7",
|
|
36
|
-
"rich>=13.7.0",
|
|
37
38
|
"PyYAML>=6.0",
|
|
39
|
+
"requests>=2.28.0",
|
|
40
|
+
"urllib3>=1.26.0",
|
|
38
41
|
]
|
|
39
42
|
|
|
40
43
|
[project.optional-dependencies]
|
|
@@ -44,6 +47,15 @@ ml = [
|
|
|
44
47
|
]
|
|
45
48
|
onnx = [
|
|
46
49
|
"onnxruntime>=1.16.0",
|
|
50
|
+
"transformers>=4.30.0",
|
|
51
|
+
]
|
|
52
|
+
# Exporting a sentence-transformers model to ONNX (onnx_model_exporter); the
|
|
53
|
+
# [onnx] extra alone is enough to run an exported model.
|
|
54
|
+
onnx-export = [
|
|
55
|
+
"onnxruntime>=1.16.0",
|
|
56
|
+
"transformers>=4.30.0",
|
|
57
|
+
"optimum[onnxruntime]>=1.16.0",
|
|
58
|
+
"onnx>=1.14.0",
|
|
47
59
|
]
|
|
48
60
|
sparse = [
|
|
49
61
|
"scipy>=1.11.0",
|
|
@@ -64,6 +76,7 @@ test = [
|
|
|
64
76
|
]
|
|
65
77
|
ui = [
|
|
66
78
|
"fastapi>=0.115",
|
|
79
|
+
"pydantic>=2.0",
|
|
67
80
|
"uvicorn[standard]>=0.34",
|
|
68
81
|
"websockets>=14.0",
|
|
69
82
|
]
|
|
@@ -104,6 +117,6 @@ arango-er-demo = "entity_resolution.demo:run_presentation_demo"
|
|
|
104
117
|
arango-er-mcp = "entity_resolution.mcp.server:main"
|
|
105
118
|
|
|
106
119
|
[project.urls]
|
|
107
|
-
Homepage = "https://github.com/
|
|
108
|
-
Documentation = "https://github.com/
|
|
109
|
-
Issues = "https://github.com/
|
|
120
|
+
Homepage = "https://github.com/arango-solutions-org/arango-entity-resolution"
|
|
121
|
+
Documentation = "https://github.com/arango-solutions-org/arango-entity-resolution#readme"
|
|
122
|
+
Issues = "https://github.com/arango-solutions-org/arango-entity-resolution/issues"
|
|
@@ -980,6 +980,19 @@ class LLMProviderConfig:
|
|
|
980
980
|
self.healthcheck_on_start = healthcheck_on_start
|
|
981
981
|
self.fallback_provider = fallback_provider
|
|
982
982
|
|
|
983
|
+
if fallback_provider is not None:
|
|
984
|
+
import warnings
|
|
985
|
+
|
|
986
|
+
# Parsed and validated so existing configs still load, but nothing
|
|
987
|
+
# reads it: a failed call is not retried against another provider.
|
|
988
|
+
warnings.warn(
|
|
989
|
+
f"LLMProviderConfig.fallback_provider={fallback_provider!r} has no "
|
|
990
|
+
"effect: provider fallback is not implemented, so a failed LLM "
|
|
991
|
+
"call is not retried against another provider.",
|
|
992
|
+
UserWarning,
|
|
993
|
+
stacklevel=2,
|
|
994
|
+
)
|
|
995
|
+
|
|
983
996
|
def to_litellm_model_string(self) -> Optional[str]:
|
|
984
997
|
"""Return the litellm model string, or ``None`` if model is unset."""
|
|
985
998
|
if not self.model:
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Async/streaming ER pipeline.
|
|
3
|
+
|
|
4
|
+
Runs ``ConfigurableERPipeline`` in a thread-pool executor so callers can:
|
|
5
|
+
|
|
6
|
+
- await the full pipeline without blocking the event loop;
|
|
7
|
+
- iterate pipeline stages as they complete (async generator);
|
|
8
|
+
- run several blocking strategies concurrently and merge their candidates.
|
|
9
|
+
|
|
10
|
+
It wraps the synchronous pipeline rather than reimplementing it, so an async
|
|
11
|
+
run does exactly what a sync run does. An earlier version reimplemented every
|
|
12
|
+
stage, and every stage was broken: it passed arguments the strategies and
|
|
13
|
+
services do not accept, called a method that does not exist, and read a config
|
|
14
|
+
attribute that does not exist. Its tests replaced all three stages with
|
|
15
|
+
patches, so nothing noticed.
|
|
16
|
+
|
|
17
|
+
Usage (await full run)::
|
|
18
|
+
|
|
19
|
+
pipeline = AsyncERPipeline(db, config=cfg)
|
|
20
|
+
results = await pipeline.run() # same dict as ConfigurableERPipeline.run()
|
|
21
|
+
|
|
22
|
+
Usage (streaming stages)::
|
|
23
|
+
|
|
24
|
+
async for stage_name, stage_result in pipeline.run_streaming():
|
|
25
|
+
print(f"{stage_name}: {stage_result}")
|
|
26
|
+
|
|
27
|
+
Usage (concurrent blocking strategies)::
|
|
28
|
+
|
|
29
|
+
candidates = await pipeline.run_blocking_concurrent(strategies=["exact", "bm25"])
|
|
30
|
+
"""
|
|
31
|
+
from __future__ import annotations
|
|
32
|
+
|
|
33
|
+
import asyncio
|
|
34
|
+
import copy
|
|
35
|
+
import logging
|
|
36
|
+
from concurrent.futures import ThreadPoolExecutor
|
|
37
|
+
from pathlib import Path
|
|
38
|
+
from typing import Any, AsyncIterator, Dict, List, Optional, Tuple, Union
|
|
39
|
+
|
|
40
|
+
logger = logging.getLogger(__name__)
|
|
41
|
+
|
|
42
|
+
# Shared executor — reused across pipeline instances for efficiency
|
|
43
|
+
_EXECUTOR = ThreadPoolExecutor(max_workers=4, thread_name_prefix="arango-er")
|
|
44
|
+
|
|
45
|
+
_DONE = object()
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class AsyncERPipeline:
|
|
49
|
+
"""
|
|
50
|
+
Async wrapper around ``ConfigurableERPipeline``.
|
|
51
|
+
|
|
52
|
+
All database work runs in a thread-pool executor so it never blocks the
|
|
53
|
+
event loop. Results are those of ``ConfigurableERPipeline.run()``.
|
|
54
|
+
|
|
55
|
+
Parameters
|
|
56
|
+
----------
|
|
57
|
+
db:
|
|
58
|
+
An authenticated python-arango ``Database`` handle.
|
|
59
|
+
config:
|
|
60
|
+
An ``ERPipelineConfig`` instance.
|
|
61
|
+
config_path:
|
|
62
|
+
Path to a YAML/JSON config file (used if *config* is not provided).
|
|
63
|
+
executor:
|
|
64
|
+
Optional ``ThreadPoolExecutor``. Defaults to a module-level shared one.
|
|
65
|
+
progress_callback:
|
|
66
|
+
Optional ``async`` callable ``(stage: str, result: dict) -> None``
|
|
67
|
+
called after each stage completes.
|
|
68
|
+
pipeline:
|
|
69
|
+
Optional pre-built ``ConfigurableERPipeline`` (or anything with the same
|
|
70
|
+
``run(on_progress=...)`` and ``run_blocking()`` methods). Built from
|
|
71
|
+
*db* and the config when omitted.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
def __init__(
|
|
75
|
+
self,
|
|
76
|
+
db,
|
|
77
|
+
config=None,
|
|
78
|
+
config_path: Optional[Union[str, Path]] = None,
|
|
79
|
+
executor: Optional[ThreadPoolExecutor] = None,
|
|
80
|
+
progress_callback=None,
|
|
81
|
+
pipeline=None,
|
|
82
|
+
) -> None:
|
|
83
|
+
from entity_resolution.config.er_config import ERPipelineConfig
|
|
84
|
+
from entity_resolution.core.configurable_pipeline import ConfigurableERPipeline
|
|
85
|
+
|
|
86
|
+
self.db = db
|
|
87
|
+
self.executor = executor or _EXECUTOR
|
|
88
|
+
self.progress_callback = progress_callback
|
|
89
|
+
|
|
90
|
+
if config is not None:
|
|
91
|
+
self.config = config
|
|
92
|
+
elif config_path is not None:
|
|
93
|
+
config_path = Path(config_path)
|
|
94
|
+
if config_path.suffix.lower() == ".json":
|
|
95
|
+
self.config = ERPipelineConfig.from_json(config_path)
|
|
96
|
+
else:
|
|
97
|
+
self.config = ERPipelineConfig.from_yaml(config_path)
|
|
98
|
+
else:
|
|
99
|
+
raise ValueError("Either config or config_path must be provided")
|
|
100
|
+
|
|
101
|
+
self._pipeline = pipeline or ConfigurableERPipeline(db=db, config=self.config)
|
|
102
|
+
self._results: Optional[Dict[str, Any]] = None
|
|
103
|
+
|
|
104
|
+
# ------------------------------------------------------------------
|
|
105
|
+
# Public API
|
|
106
|
+
# ------------------------------------------------------------------
|
|
107
|
+
|
|
108
|
+
async def run(self) -> Dict[str, Any]:
|
|
109
|
+
"""Run the full pipeline without blocking the event loop.
|
|
110
|
+
|
|
111
|
+
Returns exactly what ``ConfigurableERPipeline.run()`` returns.
|
|
112
|
+
"""
|
|
113
|
+
async for _stage, _result in self.run_streaming():
|
|
114
|
+
pass
|
|
115
|
+
assert self._results is not None
|
|
116
|
+
return self._results
|
|
117
|
+
|
|
118
|
+
async def run_streaming(self) -> AsyncIterator[Tuple[str, Dict[str, Any]]]:
|
|
119
|
+
"""Yield ``(stage_name, stage_result)`` as each pipeline stage completes.
|
|
120
|
+
|
|
121
|
+
Stages arrive in the order the sync pipeline runs them (``blocking``,
|
|
122
|
+
``similarity``, ``edges``, ``clustering``, plus ``embedding`` and
|
|
123
|
+
``collective`` when configured). A failure in the pipeline is raised
|
|
124
|
+
here, after the stages that completed have been yielded. A consumer
|
|
125
|
+
that stops iterating early does not stop the run: the pipeline keeps
|
|
126
|
+
going in its worker thread, because a thread cannot be cancelled.
|
|
127
|
+
"""
|
|
128
|
+
loop = asyncio.get_running_loop()
|
|
129
|
+
events: asyncio.Queue = asyncio.Queue()
|
|
130
|
+
|
|
131
|
+
def on_progress(event: Dict[str, Any]) -> None: # called in the worker thread
|
|
132
|
+
loop.call_soon_threadsafe(events.put_nowait, event)
|
|
133
|
+
|
|
134
|
+
def work() -> Dict[str, Any]:
|
|
135
|
+
try:
|
|
136
|
+
return self._pipeline.run(on_progress=on_progress)
|
|
137
|
+
finally:
|
|
138
|
+
loop.call_soon_threadsafe(events.put_nowait, _DONE)
|
|
139
|
+
|
|
140
|
+
future = loop.run_in_executor(self.executor, work)
|
|
141
|
+
while True:
|
|
142
|
+
event = await events.get()
|
|
143
|
+
if event is _DONE:
|
|
144
|
+
break
|
|
145
|
+
if event.get("type") != "stage_complete":
|
|
146
|
+
continue
|
|
147
|
+
stage, result = event["stage"], event.get("result") or {}
|
|
148
|
+
if self.progress_callback:
|
|
149
|
+
await self.progress_callback(stage, result)
|
|
150
|
+
yield stage, result
|
|
151
|
+
self._results = await future # re-raises a pipeline failure
|
|
152
|
+
|
|
153
|
+
async def run_blocking_concurrent(
|
|
154
|
+
self, strategies: Optional[List[str]] = None
|
|
155
|
+
) -> Dict[str, Any]:
|
|
156
|
+
"""Run several blocking strategies concurrently and merge their candidates.
|
|
157
|
+
|
|
158
|
+
Each strategy runs through ``ConfigurableERPipeline.run_blocking()`` on a
|
|
159
|
+
copy of the config with ``blocking.strategy`` replaced, so each behaves
|
|
160
|
+
exactly as a configured run would. Defaults to the configured strategy.
|
|
161
|
+
A failing strategy is reported in ``strategy_stats`` without failing
|
|
162
|
+
the others.
|
|
163
|
+
"""
|
|
164
|
+
from entity_resolution.config.er_config import BlockingConfig
|
|
165
|
+
from entity_resolution.core.configurable_pipeline import ConfigurableERPipeline
|
|
166
|
+
|
|
167
|
+
names = list(dict.fromkeys(strategies or [self.config.blocking.strategy]))
|
|
168
|
+
unknown = [n for n in names if n not in BlockingConfig.VALID_STRATEGIES]
|
|
169
|
+
if unknown:
|
|
170
|
+
raise ValueError(
|
|
171
|
+
f"unknown blocking strategies {unknown}; valid: {list(BlockingConfig.VALID_STRATEGIES)}"
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
def blocking_for(name: str) -> list:
|
|
175
|
+
config = copy.deepcopy(self.config)
|
|
176
|
+
config.blocking.strategy = name
|
|
177
|
+
return ConfigurableERPipeline(db=self.db, config=config).run_blocking()
|
|
178
|
+
|
|
179
|
+
loop = asyncio.get_running_loop()
|
|
180
|
+
outcomes = await asyncio.gather(
|
|
181
|
+
*(loop.run_in_executor(self.executor, blocking_for, name) for name in names),
|
|
182
|
+
return_exceptions=True,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
merged: set = set()
|
|
186
|
+
strategy_stats: Dict[str, Any] = {}
|
|
187
|
+
for name, outcome in zip(names, outcomes):
|
|
188
|
+
if isinstance(outcome, BaseException):
|
|
189
|
+
logger.warning("Blocking strategy '%s' failed: %s", name, outcome)
|
|
190
|
+
strategy_stats[name] = {"error": str(outcome)}
|
|
191
|
+
continue
|
|
192
|
+
pairs = {_pair_key(candidate) for candidate in outcome}
|
|
193
|
+
pairs.discard(None)
|
|
194
|
+
merged.update(pairs)
|
|
195
|
+
strategy_stats[name] = {"pairs_found": len(pairs)}
|
|
196
|
+
|
|
197
|
+
return {
|
|
198
|
+
"strategies_run": names,
|
|
199
|
+
"strategy_stats": strategy_stats,
|
|
200
|
+
"total_unique_pairs": len(merged),
|
|
201
|
+
"merged_pairs": sorted(merged),
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
def _pair_key(candidate: Any) -> Optional[Tuple[str, str]]:
|
|
206
|
+
"""An order-independent key for a candidate pair in any strategy's format."""
|
|
207
|
+
if isinstance(candidate, dict):
|
|
208
|
+
a, b = candidate.get("doc1_key"), candidate.get("doc2_key")
|
|
209
|
+
elif isinstance(candidate, (list, tuple)) and len(candidate) >= 2:
|
|
210
|
+
a, b = candidate[0], candidate[1]
|
|
211
|
+
else:
|
|
212
|
+
return None
|
|
213
|
+
if a is None or b is None or a == b:
|
|
214
|
+
return None
|
|
215
|
+
a, b = str(a), str(b)
|
|
216
|
+
return (a, b) if a < b else (b, a)
|