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
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | ai_embedding | Embedding | yes | 1 |
| output 0 | ai_vectorStore |
The number of ports depends on the parameters; the table shows the default set.
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
mode | options | "retrieve" | Operation Mode. One of insert, load, retrieve, retrieve-as-tool. | ||
toolName | string | mode = retrieve-as-tool | Tool Name. Name the agent sees for this tool. | ||
toolDescription | string | mode = retrieve-as-tool | Tool Description. Tell the agent what this knowledge base contains and when to search it. | ||
prompt | string | mode = load | Query. Text to search for. | ||
topK | number | 4 | mode = load, retrieve-as-tool | Limit. How many matching documents to return. | |
includeDocumentMetadata | boolean | true | mode = load, retrieve-as-tool | Include Metadata. | |
memoryKey | string | "vector_store_key" | Store Key. Nodes using the same key share the same documents (within a project). | ||
clearStore | boolean | false | mode = insert | Clear 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 type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.vectorStoreInMemory | 1 | unverified |