Skip to content
GitHub

Configuration

Config section: graph:
Env prefix: LEX_GRAPH__

KeyTypeDefaultEnv VariableDescription
enabledbooltrueLEX_GRAPH__ENABLEDEnable graph store subsystem
backendstr"memory"LEX_GRAPH__BACKENDGraph backend (memory or neo4j)
default_traversal_max_depthint10LEX_GRAPH__DEFAULT_TRAVERSAL_MAX_DEPTHDefault traversal max depth
default_query_limitint100LEX_GRAPH__DEFAULT_QUERY_LIMITDefault query result limit
bulk_batch_sizeint1000LEX_GRAPH__BULK_BATCH_SIZEBatch size for bulk operations
max_retriesint3LEX_GRAPH__MAX_RETRIESMax retries for operations
retry_delayfloat1.0LEX_GRAPH__RETRY_DELAYDelay between retries (seconds)
neo4jNeo4jConfigdefaultsLEX_GRAPH__NEO4J__*Neo4j-specific settings
memoryMemoryConfigdefaultsLEX_GRAPH__MEMORY__*In-memory specific settings
KeyTypeDefaultEnv VariableDescription
uristr"bolt://localhost:7687"LEX_GRAPH__NEO4J__URINeo4j BOLT URI
usernamestr"neo4j"LEX_GRAPH__NEO4J__USERNAMENeo4j username
passwordSecretStr""LEX_GRAPH__NEO4J__PASSWORDNeo4j password
databasestr"neo4j"LEX_GRAPH__NEO4J__DATABASETarget database name
max_connection_pool_sizeint100LEX_GRAPH__NEO4J__MAX_CONNECTION_POOL_SIZEMax connection pool size
connection_timeoutfloat30.0LEX_GRAPH__NEO4J__CONNECTION_TIMEOUTConnection timeout (seconds)
max_transaction_retry_timefloat30.0LEX_GRAPH__NEO4J__MAX_TRANSACTION_RETRY_TIMEMax transaction retry time
fetch_sizeint100LEX_GRAPH__NEO4J__FETCH_SIZEDefault fetch size
encryptedboolfalseLEX_GRAPH__NEO4J__ENCRYPTEDUse SSL/TLS encryption
truststr"TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"LEX_GRAPH__NEO4J__TRUSTTrust strategy for SSL
KeyTypeDefaultEnv VariableDescription
max_nodesint1000000LEX_GRAPH__MEMORY__MAX_NODESMaximum nodes in memory
max_edgesint5000000LEX_GRAPH__MEMORY__MAX_EDGESMaximum edges in memory

graph:
backend: memory
graph:
backend: neo4j
neo4j:
uri: bolt://neo4j.example.com:7687
username: neo4j
password: ${NEO4J_PASSWORD}
database: myapp
max_connection_pool_size: 50
encrypted: true
Terminal window
export LEX_GRAPH__BACKEND="neo4j"
export LEX_GRAPH__NEO4J__URI="bolt://neo4j-cluster:7687"
export LEX_GRAPH__NEO4J__PASSWORD="s3cret!"
export LEX_GRAPH__DEFAULT_TRAVERSAL_MAX_DEPTH=5