Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions libs/langchain-community/src/vectorstores/neo4j_vector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ interface Neo4jVectorStoreArgs {
const DEFAULT_SEARCH_TYPE = "vector";
const DEFAULT_INDEX_TYPE = "NODE";
const DEFAULT_DISTANCE_STRATEGY = "cosine";
const DEFAULT_NODE_EMBEDDING_PROPERTY = "embedding";

/**
* @security *Security note*: Make sure that the database connection uses credentials
Expand Down Expand Up @@ -102,7 +103,7 @@ export class Neo4jVectorStore extends VectorStore {
preDeleteCollection = false,
nodeLabel = "Chunk",
textNodeProperty = "text",
embeddingNodeProperty = "embedding",
embeddingNodeProperty = DEFAULT_NODE_EMBEDDING_PROPERTY,
keywordIndexName = "keyword",
indexName = "vector",
retrievalQuery = "",
Expand Down Expand Up @@ -333,7 +334,7 @@ export class Neo4jVectorStore extends VectorStore {
) {
const {
textNodeProperties = [],
embeddingNodeProperty,
embeddingNodeProperty = DEFAULT_NODE_EMBEDDING_PROPERTY,
searchType = DEFAULT_SEARCH_TYPE,
retrievalQuery = "",
nodeLabel,
Expand Down