Add Neo4j as an optional graph-native storage layer (ingestion profile). Introduces infra/neo4j with a singleton async driver wrapper and an idempotent bootstrap of constraints + indexes, wired into the FastAPI lifespan. Integration tests skip when no live Neo4j is reachable. Refs #186
10 lines
380 B
Python
10 lines
380 B
Python
"""Neo4j storage adapter — graph-native document structure.
|
|
|
|
Provides a thin driver wrapper, idempotent schema bootstrap, and
|
|
walkers between DoclingDocument and the graph model.
|
|
"""
|
|
|
|
from infra.neo4j.driver import Neo4jDriver, close_driver, get_driver
|
|
from infra.neo4j.schema import bootstrap_schema
|
|
|
|
__all__ = ["Neo4jDriver", "bootstrap_schema", "close_driver", "get_driver"]
|