Neo4jGraphStore

org.llm4s.knowledgegraph.neo4j.Neo4jGraphStore
See theNeo4jGraphStore companion class

Attributes

Companion
class
Source
Neo4jGraphStore.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Config(uri: String, user: String, password: Secret, database: String, maxPoolSize: Int, connectionTimeout: FiniteDuration)

Configuration for Neo4jGraphStore.

Configuration for Neo4jGraphStore.

Value parameters

connectionTimeout

How long the driver waits to open a connection (default 30 seconds, the driver's own)

database

Target database (default "neo4j")

maxPoolSize

Maximum number of connections in the driver pool (default 10)

password

Database password (default "")

uri

Bolt URI, e.g. bolt://localhost:7687

user

Database user (default "neo4j")

Attributes

Source
Neo4jGraphStore.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

Creates a Neo4jGraphStore from a Config, and its schema (see Neo4jGraphStore). A failure to connect or to create the schema is a Left, and the driver is closed.

Creates a Neo4jGraphStore from a Config, and its schema (see Neo4jGraphStore). A failure to connect or to create the schema is a Left, and the driver is closed.

Attributes

Source
Neo4jGraphStore.scala
def apply(uri: String, user: String, password: Secret, database: String): Result[Neo4jGraphStore]

Creates a Neo4jGraphStore from individual connection parameters.

Creates a Neo4jGraphStore from individual connection parameters.

Attributes

Source
Neo4jGraphStore.scala
def apply(driver: Driver, database: String): Result[Neo4jGraphStore]

Creates a Neo4jGraphStore from an existing driver, and its schema (see Neo4jGraphStore); a failure to create the schema is a Left. The driver will NOT be closed when the store is closed.

Creates a Neo4jGraphStore from an existing driver, and its schema (see Neo4jGraphStore); a failure to create the schema is a Left. The driver will NOT be closed when the store is closed.

Value parameters

database

Target database

driver

Existing Neo4j driver (caller manages lifecycle)

Attributes

Source
Neo4jGraphStore.scala
def local(user: String, password: Secret): Result[Neo4jGraphStore]

Connects to bolt://localhost:7687 with the given credentials.

Connects to bolt://localhost:7687 with the given credentials.

Attributes

Source
Neo4jGraphStore.scala