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: use 'is not None' for relation cache hit check to handle empty list results
KaifAhmad1fdea0762d6b7
diff --git a/semantica/semantic_extract/methods.py b/semantica/semantic_extract/methods.pyindex 648e9809..e0858c7e 100644--- a/semantica/semantic_extract/methods.py+++ b/semantica/semantic_extract/methods.py@@ -1682,7 +1682,7 @@ def extract_relations_llm("entities_hash": hash(tuple(sorted([e.text for e in entities]))) if entities else 0}cached_result = _result_cache.get("relations", text, **cache_params)- if cached_result:+ if cached_result is not None:logger.debug(f"Cache hit for relation extraction ({len(cached_result)} relations)")return cached_result