Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

In-Memory Vector Store

ai.vector_store_memory · version 1.3 · AI

Keep document embeddings in this server’s memory; good for testing and small datasets.

Ports

PortKindLabelRequiredMax connections
input 0ai_embeddingEmbeddingyes1
output 0ai_vectorStore

The number of ports depends on the parameters; the table shows the default set.

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
modeoptions"retrieve"Operation Mode. One of insert, load, retrieve, retrieve-as-tool.
toolNamestringmode = retrieve-as-toolTool Name. Name the agent sees for this tool.
toolDescriptionstringmode = retrieve-as-toolTool Description. Tell the agent what this knowledge base contains and when to search it.
promptstringmode = loadQuery. Text to search for.
topKnumber4mode = load, retrieve-as-toolLimit. How many matching documents to return.
includeDocumentMetadatabooleantruemode = load, retrieve-as-toolInclude Metadata.
memoryKeystring"vector_store_key"Store Key. Nodes using the same key share the same documents (within a project).
clearStorebooleanfalsemode = insertClear Store First. Remove existing documents under this key before inserting.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.vectorStoreInMemory1unverified