interface VectorStorePGVectorNodeParameters {
embeddingBatchSize?: number;
id?: string;
includeDocumentMetadata?: boolean;
mode?:
| "load"
| "insert"
| "retrieve"
| "retrieve-as-tool";
options?: | {
collection?: {
values: {
collectionName: string;
collectionTableName: string;
useCollection?: boolean;
};
};
columnNames?: {
values: {
contentColumnName: string;
idColumnName: string;
metadataColumnName: string;
vectorColumnName: string;
};
};
}
| {
collection?: {
values: {
collectionName: string;
collectionTableName: string;
useCollection?: boolean;
};
};
columnNames?: {
values: {
contentColumnName: string;
idColumnName: string;
metadataColumnName: string;
vectorColumnName: string;
};
};
distanceStrategy?: | "cosine"
| "innerProduct"
| "euclidean";
metadata?: {
metadataValues: { name: string; value?: string }[];
};
};
prompt?: string;
tableName?: string;
toolDescription?: string;
toolName?: string;
topK?: number;
useReranker?: boolean;
}Properties§
§§§§§§§§§§
readonly embedding Batch Size?: number§
readonly id?: stringID of an embedding entry
readonly include Document Metadata?: booleanWhether or not to include document metadata Default: true
readonly mode?: "load" | "insert" | "retrieve" | "retrieve-as-tool"Default: "retrieve"
readonly options?:
| {
collection?: {
values: {
collectionName: string;
collectionTableName: string;
useCollection?: boolean;
};
};
columnNames?: {
values: {
contentColumnName: string;
idColumnName: string;
metadataColumnName: string;
vectorColumnName: string;
};
};
}
| {
collection?: {
values: {
collectionName: string;
collectionTableName: string;
useCollection?: boolean;
};
};
columnNames?: {
values: {
contentColumnName: string;
idColumnName: string;
metadataColumnName: string;
vectorColumnName: string;
};
};
distanceStrategy?: | "cosine"
| "innerProduct"
| "euclidean";
metadata?: {
metadataValues: { name: string; value?: string }[];
};
}Default: {}
readonly prompt?: stringSearch prompt to retrieve matching documents from the vector store using similarity-based ranking
readonly table Name?: stringThe table name to store the vectors in. If table does not exist, it will be created. Default: "n8n_vectors"
readonly tool Description?: stringExplain to the LLM what this tool does, a good, specific description would allow LLMs to produce expected results much more often Type options: {"rows":2}
readonly tool Name?: stringName of the vector store
readonly top K?: numberNumber of top results to fetch from vector store Default: 4
readonly use Reranker?: booleanWhether or not to rerank results
Number of documents to embed in a single batch Default: 200