Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
fix: resolve code review issues from PR utils branch
KaifAhmad1af93dd29a895
diff --git a/semantica/semantic_extract/methods.py b/semantica/semantic_extract/methods.pyindex 27a05b61..10c3af4a 100644--- a/semantica/semantic_extract/methods.py+++ b/semantica/semantic_extract/methods.py@@ -1982,7 +1982,7 @@ Entities found in text: {entities_str}"""import sysprint(" [methods.extract_relations_llm] Typed result empty, attempting structured JSON fallback...", flush=True, file=sys.stdout)raw_json = llm.generate_structured(prompt, **call_kwargs)- relations = _parse_relation_result(raw_json, original_entities, text, provider, model)+ relations = _parse_relation_result(raw_json, original_entities, text, provider, model, extraction_method="llm_typed")except Exception as _e:# Keep relations as empty if fallback failspassdiff --git a/tests/test_030_realworld_comprehensive.py b/tests/test_030_realworld_comprehensive.pyindex b7bff123..5a23d900 100644--- a/tests/test_030_realworld_comprehensive.py+++ b/tests/test_030_realworld_comprehensive.py@@ -819,7 +819,7 @@ class TestKGAlgorithmsRealWorld:def test_node_embedder_generates_embeddings(self):G = _build_nx_tech_graph()- embedder = NodeEmbedder()+ embedder = NodeEmbedder(embedding_dimension=16, walk_length=10, num_walks=2, epochs=1)node_labels = list({data.get("type", "entity") for _, data in G.nodes(data=True)})rel_types = list({data.get("type", "related_to") for _, _, data in G.edges(data=True)})embeddings = embedder.compute_embeddings(G, node_labels=node_labels, relationship_types=rel_types)