org.llm4s.knowledgegraph.neo4j

Members list

Type members

Classlikes

final class Neo4jGraphStore extends GraphStore

Neo4j implementation of GraphStore.

Neo4j implementation of GraphStore.

Maps GraphStore operations to Cypher queries via the official Neo4j Java driver. All nodes carry the :LLM4S label for namespace isolation alongside any user-defined label stored as the llm4s_label property.

Connection management: each GraphStore call acquires a single session, executes the query, then closes the session — mirroring the PgVectorStore pattern. The driver (and its internal connection pool) is managed externally; pass ownsDriver = true only when this store should close the driver on close().

Thread-safety: the Neo4j Java driver is thread-safe; this class inherits that.

Value parameters

database

Target database name (default "neo4j")

driver

Neo4j Java driver instance

ownsDriver

Whether to close the driver on close() (default true)

Attributes

Companion
object
Supertypes
trait GraphStore
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type