3 Commits
Author SHA1 Message Date
KaifAhmad1 c2a6e944fe Improve context explainability outputs 2026-03-13 06:31:38 +05:30
KaifAhmad1andClaude Sonnet 4.6 af93dd29a8 fix: resolve code review issues from PR utils branch
- Pass extraction_method="llm_typed" in structured JSON fallback path of
  extract_relations_llm so fallback-produced relations carry consistent
  metadata regardless of which parse path succeeds
- Reduce NodeEmbedder test params (dim=16, walk_length=10, num_walks=2,
  epochs=1) to avoid unnecessary Node2Vec/Word2Vec training time in CI

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 01:26:17 +05:30
KaifAhmad1andClaude Sonnet 4.6 78c52eb099 fix: resolve 0.3.0 bugs and add comprehensive real-world tests
- Export ProvenanceTracker from semantica/kg/__init__.py (was missing)
- Remove duplicate relation creation in _parse_relation_result (legacy orphaned block)
- Add extraction_method param to _parse_relation_result; pass 'llm_typed' from typed path
- Clear _result_cache in test setUp to prevent cross-test cache pollution
- Add tests/test_030_realworld_comprehensive.py: 85 real-world tests covering all
  0.3.0-alpha/beta features (ContextGraph, decision tracking, KG algorithms,
  PolicyEngine, dedup v2, RDF export, Reasoner, Pipeline, ProvenanceTracker,
  semantic extract, multi-hop investment chains, healthcare E2E)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 01:02:39 +05:30