orchestrata_ultimate.semantic_graph.adapters
Reference › orchestrata_ultimate › semantic_graph › adapters
Semantic graph adapter implementations.
The adapters subpackage holds the two interchangeable implementations of the SemanticGraph protocol defined in interfaces, the contract for the shared semantic/RAG graph. memgraph is the production adapter: it talks Cypher over Bolt to the memgraph database, finds the current MAIN instance through main_discovery, keeps chunks under a native vector index and offers keyword, module and prominence lookups for hybrid retrieval. memory is a pure-Python adapter with a local cosine-similarity search, used for unit tests and local development. Both accept a SemanticGraphConfig and expose the same async methods, so ingestion, enrichment and retrieval code runs unchanged on either. Control reaches them through create_semantic_graph in repository, which picks one from the configured backend name, or through the re-exports in init. Start reading with memory to see the contract in its simplest form, then memgraph. The package story is on the semantic_graph module page.
3 modules, 1,378 lines of code.
Modules
| Module | Summary | LOC |
|---|---|---|
__init__ |
Semantic graph adapter implementations. | 10 |
memgraph |
Memgraph-backed semantic graph adapter. | 1146 |
memory |
In-memory semantic graph adapter for fast unit tests and local dev. | 222 |