Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_semantic_bridge
Tests reference — tests/knowledge_graph/test_semantic_bridge.py
Module of tests/knowledge_graph, split out because the directory page would be too large.
Prose pending.
tests/knowledge_graph/test_semantic_bridge.py
source · 4 tests · 217 lines
Tests for the semantic-search bridge (Memgraph chunks → Neo4j file roots).
Covers: core.graph_factory, knowledge_graph.context_injector, knowledge_graph.semantic_bridge, semantic_graph.config
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSearchSemanticRoots |
82 | Real Memgraph + Neo4j tests for search_semantic_roots. |
| method | TestSearchSemanticRoots.test_returns_roots_for_matching_chunks |
85 | A chunk whose content matches the query maps to its Neo4j File root. |
| method | TestSearchSemanticRoots.test_returns_empty_when_memgraph_unreachable |
130 | An invalid Memgraph URI degrades to an empty list. |
| method | TestSearchSemanticRoots.test_render_semantic_roots |
147 | render_semantic_roots produces the expected markdown block. |
| class | TestContextInjectorSemanticBridge |
162 | Integration: ContextInjector wires semantic roots into graph_context. |
| method | TestContextInjectorSemanticBridge.test_inject_includes_semantic_files |
165 | When payload.text is present, semantic matches appear in graph_context. |