@n8n/n8n-nodes-langchain
Version:

73 lines (68 loc) • 2.04 kB
text/typescript
/**
* Pinecone Vector Store Node - Version 1.3
* Discriminator: mode=load
*/
interface Credentials {
pineconeApi: CredentialReference;
}
/** Get many ranked documents from vector store for query */
export type LcVectorStorePineconeV13LoadParams = {
mode: 'load';
pineconeIndex?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/**
* Search prompt to retrieve matching documents from the vector store using similarity-based ranking
*/
prompt: string | Expression<string> | PlaceholderValue;
/**
* Number of top results to fetch from vector store
* @default 4
*/
topK?: number | Expression<number>;
/**
* Whether or not to include document metadata
* @default true
*/
includeDocumentMetadata?: boolean | Expression<boolean>;
/**
* Whether or not to rerank results
* @default false
*/
useReranker?: boolean | Expression<boolean>;
/**
* Options
* @default {}
*/
options?: {
/** Partition the records in an index into namespaces. Queries and other operations are then limited to one namespace, so different requests can search different subsets of your index.
*/
pineconeNamespace?: string | Expression<string> | PlaceholderValue;
/** Metadata to filter the document by
* @default {}
*/
metadata?: {
/** Fields to Set
*/
metadataValues?: Array<{
/** Name
*/
name?: string | Expression<string> | PlaceholderValue;
/** Value
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
};
};
export interface LcVectorStorePineconeV13LoadSubnodeConfig {
embedding: EmbeddingInstance | EmbeddingInstance[];
/**
* @displayOptions.show { useReranker: [true] }
*/
reranker: RerankerInstance;
}
export type LcVectorStorePineconeV13LoadNode = {
type: '@n8n/n8n-nodes-langchain.vectorStorePinecone';
version: 1.3;
credentials?: Credentials;
config: NodeConfig<LcVectorStorePineconeV13LoadParams> & { subnodes: LcVectorStorePineconeV13LoadSubnodeConfig };
};