Skip to main content
Version: 0.0.7

agrag.graphdb.settings.FalkorDBSettings

Bases: BaseSettings

FalkorDB connection configuration.

Attributes:

  • url (str) – The Redis connection URL, including scheme (rediss:// for TLS). Env: FALKORDB_URL.
  • password (SecretStr | None) – The Redis password, or None for a server without one. Env: FALKORDB_PASSWORD.
  • graph (str) – The name of the graph (the Redis key) that holds all data. Env: FALKORDB_GRAPH.
  • max_connections (int) – The size of the connection pool. Env: FALKORDB_MAX_CONNECTIONS.

Raises:

  • ValueError – url is plaintext (redis://) and points at a non-local host while password is set. Use rediss:// for a remote instance.

graph​

graph: str = 'agrag'

max_connections​

max_connections: int = 16

model_config​

model_config = SettingsConfigDict(env_prefix='FALKORDB_', env_file='.env', extra='ignore', hide_input_in_errors=True)

password​

password: SecretStr | None = None

url​

url: str = 'redis://localhost:6379'