torchcell.database.connection.Neo4jConnectionSettings
- class Neo4jConnectionSettings(*, uri: str, username: str, password: str, version: str = 'latest')[source]
Bases:
BaseModelWhere torchcell clients find the served knowledge graph, and which version.
Resolved by
neo4j_connection_settings()fromNEO4J_URI,NEO4J_USER,NEO4J_PASSWORD(the same names the serving container’sdatabase/.envuses) andTORCHCELL_KG_VERSION, falling back to the local instance andlatest. One line in.envretargets every query path – the serving host has moved twice (radiant -> GilaHyper) with the old host hardcoded at each call site, which is what this exists to end – and one more pins a whole run to a release.- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].