Class Neo4jEmbeddingStore

java.lang.Object
dev.langchain4j.store.embedding.neo4j.Neo4jEmbeddingStore
All Implemented Interfaces:
EmbeddingStore<TextSegment>

public class Neo4jEmbeddingStore extends Object implements EmbeddingStore<TextSegment>
Represents a Vector index as an embedding store. Annotated with `@Getter` to be used in Neo4jEmbeddingUtils
  • Constructor Details

    • Neo4jEmbeddingStore

      public Neo4jEmbeddingStore(org.neo4j.driver.SessionConfig config, org.neo4j.driver.Driver driver, int dimension, String label, String embeddingProperty, String idProperty, String metadataPrefix, String textProperty, String indexName, String databaseName, String retrievalQuery, long awaitIndexTimeout)
      Creates an instance of Neo4jEmbeddingStore
      Parameters:
      config - : the SessionConfig (optional, default is `SessionConfig.forDatabase(`databaseName`)`)
      driver - : the Driver (required)
      dimension - : the dimension (required)
      label - : the optional label name (default: "Document")
      embeddingProperty - : the optional embeddingProperty name (default: "embedding")
      idProperty - : the optional id property name (default: "id")
      metadataPrefix - : the optional metadata prefix (default: "")
      textProperty - : the optional textProperty property name (default: "text")
      indexName - : the optional index name (default: "vector")
      databaseName - : the optional database name (default: "neo4j")
      retrievalQuery - : the optional retrieval query (default: "RETURN properties(node) AS metadata, node.`idProperty` AS `idProperty`, node.`textProperty` AS `textProperty`, node.`embeddingProperty` AS `embeddingProperty`, score")
  • Method Details