orchestrata_ultimate.semantic_graph
Reference › orchestrata_ultimate › semantic_graph › init
The public facade of the semantic graph package, the shared semantic/RAG graph that lives in the memgraph database (not the operational orchkg graph handled by knowledge_graph). It re-exports the two adapters MemgraphSemanticGraph and InMemorySemanticGraph, the SemanticGraphConfig, the data models, the protocol interfaces, the exceptions and the create_semantic_graph factory, and its docstring shows the usual start: construct a MemgraphSemanticGraph, connect, then upsert_entities. See the package index and the curated narrative.
At a glance
| Source | src/orchestrata_ultimate/semantic_graph/__init__.py |
| Lines of code | 79 |
| Classes | 0 |
| Functions | 0 |
| Imports (internal) | orchestrata_ultimate.semantic_graph.adapters, orchestrata_ultimate.semantic_graph.config, orchestrata_ultimate.semantic_graph.exceptions, orchestrata_ultimate.semantic_graph.interfaces, orchestrata_ultimate.semantic_graph.models, orchestrata_ultimate.semantic_graph.repository, orchestrata_ultimate.semantic_graph.spec_trace_enricher, orchestrata_ultimate.semantic_graph.spec_trace_parser |
| Imported by | orchestrata_ultimate.semantic_graph.adapters.memgraph |
| Tests that import it | tests/semantic_graph/test_main_discovery.py, tests/semantic_graph/test_repository.py |
Class diagram
No classes; see Functions.
Dependency diagram
API
No public API: the module defines no classes, functions or constants.
Source
"""Semantic graph repository abstraction for RAG / GraphRAG.
Example:
from orchestrata_ultimate.semantic_graph import MemgraphSemanticGraph
graph = MemgraphSemanticGraph()
await graph.connect()
await graph.upsert_entities([Entity(id="doc-1", labels=["Document"])])
"""
from orchestrata_ultimate.semantic_graph.adapters import (
InMemorySemanticGraph,
MemgraphSemanticGraph,
)
from orchestrata_ultimate.semantic_graph.config import SemanticGraphConfig
from orchestrata_ultimate.semantic_graph.exceptions import (
ConnectionError,
EntityNotFoundError,
QueryError,
SemanticGraphError,
VectorSearchError,
)
from orchestrata_ultimate.semantic_graph.interfaces import (
GraphStore,
SemanticGraph,
VectorStore,
)
from orchestrata_ultimate.semantic_graph.models import (
Chunk,
Entity,
GraphRAGContext,
Relationship,
)
from orchestrata_ultimate.semantic_graph.repository import create_semantic_graph
from orchestrata_ultimate.semantic_graph.spec_trace_enricher import (
EnrichmentSummary,
SpecTraceEnricher,
enrich_project_with_specs_and_traces,
)
from orchestrata_ultimate.semantic_graph.spec_trace_parser import (
RequirementInfo,
SpecInfo,
StoryInfo,
build_trace_index,
collect_code_traces,
parse_all_specs,
parse_requirements_file,
parse_spec_file,
)
__all__ = [
"build_trace_index",
"collect_code_traces",
"EnrichmentSummary",
"enrich_project_with_specs_and_traces",
"parse_all_specs",
"parse_requirements_file",
"parse_spec_file",
"RequirementInfo",
"SpecInfo",
"SpecTraceEnricher",
"StoryInfo",
"Chunk",
"ConnectionError",
"create_semantic_graph",
"Entity",
"EntityNotFoundError",
"GraphRAGContext",
"GraphStore",
"InMemorySemanticGraph",
"MemgraphSemanticGraph",
"QueryError",
"Relationship",
"SemanticGraph",
"SemanticGraphConfig",
"SemanticGraphError",
"VectorStore",
"VectorSearchError",
]