Skip to content

Vector Store in Memory

Node: vectorStoreInMemory · Full type: @n8n/n8n-nodes-langchain.vectorStoreInMemory · Version: 1.3

Parameters

Parameter Type Default Details
mode options "retrieve" load, insert, retrieve, retrieve-as-tool
toolName string "" required
toolDescription string "" required
memoryKey string "vector_store_key"
embeddingBatchSize number 200
clearStore boolean false
prompt string "" required
topK number 4
includeDocumentMetadata boolean true
useReranker boolean false
id string "" required

Example

NODE "vectorStoreInMemory" AS "Vector Store in Memory" {
  toolName: {{ $json.toolName }},
  toolDescription: {{ $json.toolDescription }},
  prompt: {{ $json.prompt }},
  id: {{ $json.id }}
}