@n8n/n8n-nodes-langchain
Version:

44 lines (39 loc) • 1.25 kB
text/typescript
/**
* MongoDB Atlas Vector Store Node - Version 1.3
* Discriminator: mode=update
*/
interface Credentials {
mongoDb: CredentialReference;
}
/** Update documents in vector store by ID */
export type LcVectorStoreMongoDBAtlasV13UpdateParams = {
mode: 'update';
mongoCollection?: { __rl: true; mode: 'list' | 'name'; value: string; cachedResultName?: string };
/**
* The field with the embedding array
* @default embedding
*/
embedding?: string | Expression<string> | PlaceholderValue;
/**
* The text field of the raw data
* @default text
*/
metadata_field?: string | Expression<string> | PlaceholderValue;
/**
* The name of the vector index
*/
vectorIndexName: string | Expression<string> | PlaceholderValue;
/**
* ID of an embedding entry
*/
id: string | Expression<string> | PlaceholderValue;
};
export interface LcVectorStoreMongoDBAtlasV13UpdateSubnodeConfig {
embedding: EmbeddingInstance | EmbeddingInstance[];
}
export type LcVectorStoreMongoDBAtlasV13UpdateNode = {
type: '@n8n/n8n-nodes-langchain.vectorStoreMongoDBAtlas';
version: 1.3;
credentials?: Credentials;
config: NodeConfig<LcVectorStoreMongoDBAtlasV13UpdateParams> & { subnodes: LcVectorStoreMongoDBAtlasV13UpdateSubnodeConfig };
};